[PATCH] dt-bindings: usb: usb-device: fix typo in required properties

2021-02-09 Thread Mans Rullgard
Fix typo in 'compatible' property name. Signed-off-by: Mans Rullgard --- Documentation/devicetree/bindings/usb/usb-device.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/usb/usb-device.yaml b/Documentation/devicetree/bindin

[PATCH] serial: 8250: add option to disable registration of legacy ISA ports

2021-01-28 Thread Mans Rullgard
On systems that do not have the traditional PC ISA serial ports, the 8250 driver still creates non-functional device nodes. This change makes only ports that actually exist (PCI, DT, ...) get device nodes. Signed-off-by: Mans Rullgard --- drivers/tty/serial/8250/8250_core.c | 26

[PATCH] ARM: dts: am33xx: add aliases for mmc interfaces

2021-01-28 Thread Mans Rullgard
index via device tree alias" for more discussion. Signed-off-by: Mans Rullgard --- arch/arm/boot/dts/am33xx.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi index 4c2298024137..f09a61cac2dc 100644 --- a/arch/arm/boot/

[PATCH] i2c: core: check returned size of emulated smbus block read

2020-06-13 Thread Mans Rullgard
of the supplied data buffer, thus causing Bad Things to happen. To prevent this, check the size before copying the data block and return an error if it is too large. Fixes: 209d27c3b167 ("i2c: Emulate SMBus block read over I2C") Signed-off-by: Mans Rullgard --- drivers/i2c/i2c-core-s

[PATCH v2] net: ethernet: dwmac-sun8i: show message only when switching to promisc

2019-10-18 Thread Mans Rullgard
Printing the info message every time more than the max number of mac addresses are requested generates unnecessary log spam. Showing it only when the hw is not already in promiscous mode is equally informative without being annoying. Signed-off-by: Mans Rullgard --- Changed in v2: - test only

[PATCH] net: ethernet: dwmac-sun8i: show message only when switching to promisc

2019-10-18 Thread Mans Rullgard
Printing the info message every time more than the max number of mac addresses are requested generates unnecessary log spam. Showing it only when the hw is not already in promiscous mode is equally informative without being annoying. Signed-off-by: Mans Rullgard --- drivers/net/ethernet

[PATCH] auxdisplay: charlcd: add help text for backlight initial state

2019-07-04 Thread Mans Rullgard
While the individual CHARLCD_BL_xxx options have help texts, the menu itself does not. Fix this. Signed-off-by: Mans Rullgard --- drivers/auxdisplay/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/auxdisplay/Kconfig b/drivers/auxdisplay/Kconfig index c52c738e554a

[RESEND][PATCH] i2c: imx: add support for I2C_M_STOP flag

2019-07-03 Thread Mans Rullgard
Add support for the I2C_M_STOP flag to the i2c-imx driver. This allows devices requiring a stop between messages to work with this controller. Signed-off-by: Mans Rullgard --- drivers/i2c/busses/i2c-imx.c | 26 ++ 1 file changed, 22 insertions(+), 4 deletions(-) diff

[PATCH] watchdog: gpio: add support for nowayout option

2019-05-28 Thread Mans Rullgard
Add support for the nowayout option in the gpio watchdog driver. Signed-off-by: Mans Rullgard --- drivers/watchdog/gpio_wdt.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/watchdog/gpio_wdt.c b/drivers/watchdog/gpio_wdt.c index ea77cae03c9d..63792bb70213 100644 --- a

[PATCH] ARM: dts: sun7i: fix typos in uart pin mux

2019-03-26 Thread Mans Rullgard
The recently added uart mux options had a few typos. Fix them. Fixes: 43d0fe112585 ("ARM: dts: sun7i: add pinctrl for missing uart mux options") Reported-by: Werner Böllmann Signed-off-by: Mans Rullgard --- arch/arm/boot/dts/sun7i-a20.dtsi | 8 1 file changed, 4 insert

[PATCH 3/3] auxdisplay: charlcd: make backlight initial state configurable

2019-03-01 Thread Mans Rullgard
The charlcd driver currently flashes the backlight once on init. This may not be desirable. Thus, add options for turning the backlight off or on as well. Signed-off-by: Mans Rullgard --- drivers/auxdisplay/Kconfig | 21 + drivers/auxdisplay/charlcd.c | 10 +- 2

[PATCH 2/3] auxdisplay: charlcd: simplify init message display

2019-03-01 Thread Mans Rullgard
If CONFIG_PANEL_CHANGE_MESSAGE is set, CONFIG_PANEL_BOOT_MESSAGE will also be defined, so the double ifdef is pointless. Simplify the code further by using an intermediate macro rather duplicating most of the line. Signed-off-by: Mans Rullgard --- drivers/auxdisplay/charlcd.c | 15

[PATCH 1/3] auxdisplay: deconfuse configuration

2019-03-01 Thread Mans Rullgard
, rename its Kconfig symbol and keep the old one such that make oldconfig will not disable the driver. Signed-off-by: Mans Rullgard --- drivers/auxdisplay/Kconfig | 17 - drivers/auxdisplay/Makefile | 2 +- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/drivers/

[PATCH v2] usb: core: make default autosuspend delay configurable

2019-03-01 Thread Mans Rullgard
Make the default autosuspend delay configurable at build time. This is useful for systems that require a non-standard value as it avoids relying on the command line being properly set. Signed-off-by: Mans Rullgard --- Changes in v2: - add explanatory text to Kconfig help --- drivers/usb/core

[PATCH] usb: core: make default autosuspend delay configurable

2019-03-01 Thread Mans Rullgard
Make the default autosuspend delay configurable at build time. This is useful for systems that require a non-standard value as it avoids relying on the command line being properly set. Signed-off-by: Mans Rullgard --- drivers/usb/core/Kconfig | 8 drivers/usb/core/usb.c | 4 ++-- 2

[PATCH 2/2] usb: hub: use non-removable-ports DT property

2019-02-28 Thread Mans Rullgard
Mark any ports listed in the non-removable-ports DT property as hardwired. This is useful for boards with built-in USB devices that cannot be (or have not been) marked as fixed in hardware. Signed-off-by: Mans Rullgard --- drivers/usb/core/hub.c | 14 ++ 1 file changed, 14

[PATCH 1/2] dt-bindings: usb: add non-removable-ports hub property

2019-02-28 Thread Mans Rullgard
Add a non-removable-ports property that lists the hardwired downstream ports of a hub. Although hubs can provide this information, they are not always configured correctly. An alternate means of indicating this for built-in USB devices is thus useful. Signed-off-by: Mans Rullgard

[RFC][PATCH] dt-bindings: usb: add non-removable device property

2019-02-28 Thread Mans Rullgard
Add a boolean property indicating that a device is hardwired to the upstream port. Although hubs can provide this information, they are not always configured correctly. An alternate means of indicating this for built-in USB devices is thus useful. Signed-off-by: Mans Rullgard --- I have a

[PATCH] usb: musb: sunxi: propagate devicetree node to glue pdev

2019-02-28 Thread Mans Rullgard
In order for devicetree nodes to be correctly associated with attached devices, the controller node needs to be propagated to the glue device. Signed-off-by: Mans Rullgard --- This depends on 2c1ea6abde88 ("platform: set of_node in platform_device_register_full()") which is currently w

[PATCH] i2c: imx: add support for I2C_M_STOP flag

2019-02-27 Thread Mans Rullgard
Add support for the I2C_M_STOP flag to the i2c-imx driver. This allows devices requiring a stop between messages to work with this controller. Signed-off-by: Mans Rullgard --- drivers/i2c/busses/i2c-imx.c | 26 ++ 1 file changed, 22 insertions(+), 4 deletions(-) diff

[PATCH] USB: serial: option: set driver_info for SIM5218 and compatibles

2019-02-26 Thread Mans Rullgard
The SIMCom SIM5218 and compatible devices have 5 USB interfaces, only 4 of which are serial ports. The fifth is a network interface supported by the qmi-wwan driver. Furthermore, the serial ports do not support modem control signals. Add driver_info flags to reflect this. Signed-off-by: Mans

[PATCH v3] platform: set of_node in platform_device_register_full()

2019-02-21 Thread Mans Rullgard
sb and similar drivers to easily propagate the DT node to child devices as required. Signed-off-by: Mans Rullgard --- Changes in v3: - handle of_node_reused --- drivers/base/platform.c | 2 ++ include/linux/platform_device.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/base/

[PATCH 2/3] ARM: dts: sun7i: add pinctrl for EMAC in PH bank

2019-02-20 Thread Mans Rullgard
This adds pinctrl settings the EMAC using pins in the PH block. Signed-off-by: Mans Rullgard --- arch/arm/boot/dts/sun7i-a20.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi index 4528c91ef837..e4d927a8a984

[PATCH 3/3] ARM: dts: sun7i: add /omit-if-no-ref/ tags to pin group nodes

2019-02-20 Thread Mans Rullgard
Since only one alternative at a time is used, and some functions may not be used at all, this cuts down the size of the board dtb files a bit. Signed-off-by: Mans Rullgard --- arch/arm/boot/dts/sun7i-a20.dtsi | 42 1 file changed, 42 insertions(+) diff --git a

[PATCH 1/3] ARM: dts: sun7i: add pinctrl for CAN in PA bank

2019-02-20 Thread Mans Rullgard
This adds pinctrl settings for the CAN controller using pins PA16 and PA17. Signed-off-by: Mans Rullgard --- arch/arm/boot/dts/sun7i-a20.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi index 76d0c961f01e

[PATCH v2] ARM: dts: sun7i: add pinctrl for missing uart mux options

2019-02-20 Thread Mans Rullgard
This adds pinctrl settings for various missing uart options. Signed-off-by: Mans Rullgard --- Changed in v2: - add /omit-if-no-ref/ tags to new nodes --- arch/arm/boot/dts/sun7i-a20.dtsi | 54 1 file changed, 54 insertions(+) diff --git a/arch/arm/boot/dts

[PATCH] platform: set of_node in platform_device_register_full()

2019-02-20 Thread Mans Rullgard
ange will allow sunxi-musb and similar driver to easily propagate the DT node to child devices as required. Signed-off-by: Mans Rullgard --- drivers/base/platform.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/base/platform.c b/drivers/base/platform.c index dff82a3c2caa..853a1d0e58

[PATCH v2] usb: core: skip interfaces disabled in devicetree

2019-02-19 Thread Mans Rullgard
If an interface has an associated devicetree node with status disabled, do not register the device. This is useful for boards with a built-in multifunction USB device where some functions are broken or otherwise undesired. Signed-off-by: Mans Rullgard --- Changed in v2: - print message about

[PATCH] ARM: dts: sun7i: add pinctrl for missing uart mux options

2019-02-16 Thread Mans Rullgard
This adds pinctrl settings for various missing uart options. Signed-off-by: Mans Rullgard --- arch/arm/boot/dts/sun7i-a20.dtsi | 45 1 file changed, 45 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi index

[PATCH] usb: core: skip interfaces disabled in devicetree

2019-02-16 Thread Mans Rullgard
If an interface has an associated devicetree node with status disabled, do not register the device. This is useful for boards with a built-in multifunction USB device where some functions are broken or otherwise undesired. Signed-off-by: Mans Rullgard --- drivers/usb/core/message.c | 4 1

[PATCH] platform: set of_node in platform_device_register_full()

2019-02-16 Thread Mans Rullgard
If the provided fwnode is an OF node, set dev.of_node as well. Signed-off-by: Mans Rullgard --- drivers/base/platform.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/base/platform.c b/drivers/base/platform.c index dff82a3c2caa..853a1d0e5845 100644 --- a/drivers/base/platform.c

[PATCH] USB: serial: ftdi_sio: add ID for Hjelmslund Electronics USB485

2019-02-14 Thread Mans Rullgard
This adds the USB ID of the Hjelmslund Electronics USB485 Iso stick. Signed-off-by: Mans Rullgard --- drivers/usb/serial/ftdi_sio.c | 2 ++ drivers/usb/serial/ftdi_sio_ids.h | 6 ++ 2 files changed, 8 insertions(+) diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial

[PATCH] USB: serial: cp210x: support all gpios on CP2102N QFN28 package

2019-01-24 Thread Mans Rullgard
The QFN28 package version of the CP2102N has three additional gpio pins. Add support for these. Signed-off-by: Mans Rullgard --- drivers/usb/serial/cp210x.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial

[PATCH] auxdisplay: charlcd: fix x/y command parsing

2018-12-05 Thread Mans Rullgard
first x or y character. This reinstates the check for a final semicolon. Whereas the original code use strchr(), this is wasteful seeing as the semicolon is always at the end of the buffer. Thus check this character directly instead. Signed-off-by: Mans Rullgard --- drivers/auxdisplay/cha

[PATCH] mm: fix insert_pfn() return value

2018-11-27 Thread Mans Rullgard
Commit 9b5a8e00d479 ("mm: convert insert_pfn() to vm_fault_t") accidentally made insert_pfn() always return an error. Fix this. Fixes: 9b5a8e00d479 ("mm: convert insert_pfn() to vm_fault_t") Signed-off-by: Mans Rullgard --- mm/memory.c | 5 - 1 file changed, 4 inser

[PATCH] dmaengine: enable mxs-dma for imx6sx

2017-08-17 Thread Mans Rullgard
The mxs-dma unit is also used on i.MX6SX. Make it selectable. Signed-off-by: Mans Rullgard --- drivers/dma/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig index 24e8597b2c3e..cb7ec780892d 100644 --- a/drivers/dma/Kconfig

[PATCH v2] ASoC: mxs-saif: add mclk enable/disable ops

2016-12-22 Thread Mans Rullgard
changes mxs-saif can be used together with the simple-card driver. Signed-off-by: Mans Rullgard --- v2: add #include needed by some configs --- sound/soc/mxs/mxs-saif.c | 144 +++ sound/soc/mxs/mxs-saif.h | 3 + 2 files changed, 99 insertions(+), 48

[PATCH] avr32: fix asm operand constraint in cmpxchg()

2016-03-10 Thread Mans Rullgard
If the 'old' operand to cmpxchg() is a constant wider than 21 bits, linking fails with a "relocation truncated to fit: R_AVR32_21S" error. Fix this by replacing the "i" constraint with "Ks21" which makes the compiler use a temporary register for out

[PATCH] ASoC: mxs-saif: check BUSY bit in hw_params() only if not mclk_in_use

2016-02-03 Thread Mans Rullgard
->mclk_in_use. Signed-off-by: Mans Rullgard --- sound/soc/mxs/mxs-saif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/mxs/mxs-saif.c b/sound/soc/mxs/mxs-saif.c index a6c7b8d87cd2..13631003cb7c 100644 --- a/sound/soc/mxs/mxs-saif.c +++ b/sound/soc/mxs/mxs-saif.c @@ -41

[PATCH] ASoC: mxs-saif: add mclk enable/disable ops

2016-01-25 Thread Mans Rullgard
changes mxs-saif can be used together with the simple-card driver. Signed-off-by: Mans Rullgard --- sound/soc/mxs/mxs-saif.c | 144 +++ sound/soc/mxs/mxs-saif.h | 2 + 2 files changed, 98 insertions(+), 48 deletions(-) diff --git a/sound/soc/mxs/mxs

[PATCH] ASoC: wm8974: configure pll and mclk divider automatically

2016-01-25 Thread Mans Rullgard
drivers calling set_pll() and set_clkdiv() directly are unaffected. Signed-off-by: Mans Rullgard --- sound/soc/codecs/wm8974.c | 93 +++ 1 file changed, 93 insertions(+) diff --git a/sound/soc/codecs/wm8974.c b/sound/soc/codecs/wm8974.c index

[PATCH 04/15] dmaengine: dw: set src and dst master select according to xfer direction

2016-01-24 Thread Mans Rullgard
On some architectures the DMA controller can have two masters connected to different buses and thus access to memory is possible only through one and to peripheral through the other. This patch changes the src and dst master setting to match the direction of the transfer. Signed-off-by: Mans

[PATCH 09/15] dmaengine: dw: keep entire platform data in struct dw_dma

2016-01-24 Thread Mans Rullgard
From: Andy Shevchenko Keep the entire platform data in the struct dw_dma. It makes the driver a bit cleaner. Signed-off-by: Andy Shevchenko Signed-off-by: Mans Rullgard --- drivers/dma/dw/core.c| 31 --- drivers/dma/dw/platform.c| 4

[PATCH 11/15] dmaengine: dw: platform: use field-by-field initialization

2016-01-24 Thread Mans Rullgard
From: Andy Shevchenko This is a simple stylish change that allows to use less lines of code. Signed-off-by: Andy Shevchenko --- I'm a little ambivalent on this one. While the patch is correct as such, the change means that if struct dw_dma_slave gains new members in future, these will not be i

[PATCH 15/15] dmaengine: dw: set cdesc to NULL when free cyclic transfers

2016-01-24 Thread Mans Rullgard
From: Andy Shevchenko To be sure we have the cyclic transfers already gone we set cdesc to NULL. It will prevent the double free. Signed-off-by: Andy Shevchenko Signed-off-by: Mans Rullgard --- drivers/dma/dw/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/dma/dw/core.c

[PATCH 14/15] dmaengine: dw: move residue to a descriptor

2016-01-24 Thread Mans Rullgard
From: Andy Shevchenko Residue is a property of any active descriptor. So, any descriptor may be in different state but residue is a feature of active descriptor. Check if the asked descriptor is active and return proper residue value for it. Signed-off-by: Andy Shevchenko Signed-off-by: Mans

[PATCH 13/15] dmaengine: dw: move dwc->initialized to dwc->flags

2016-01-24 Thread Mans Rullgard
From: Andy Shevchenko We have already dedicated variable for flags, therefore no need to create an additional storage for that. Covert dwc->initialized to use dwc->flags. Signed-off-by: Andy Shevchenko Signed-off-by: Mans Rullgard --- drivers/dma/dw/core.c | 8 drivers/dma/dw/

[PATCH 08/15] dmaengine: dw: define counter variables as unsigned int

2016-01-24 Thread Mans Rullgard
unsigned drivers/dma/dw/core.c: In function ‘dw_dma_probe’: drivers/dma/dw/core.c:1574: warning: comparison between signed and unsigned There is no functional change. Signed-off-by: Andy Shevchenko Signed-off-by: Mans Rullgard --- drivers/dma/dw/core.c | 10 +- 1 file changed, 5 insertions

[PATCH 10/15] dmaengine: dw: pass platform data via struct dw_dma_chip

2016-01-24 Thread Mans Rullgard
From: Andy Shevchenko We pass struct dw_dma_chip to the dw_dma_probe() anyway, thus we may use it to pass platform data as well. Signed-off-by: Andy Shevchenko Signed-off-by: Mans Rullgard --- drivers/ata/sata_dwc_460ex.c | 2 +- drivers/dma/dw/core.c | 3

[PATCH 12/15] dmaengine: dw: move dwc->paused to dwc->flags

2016-01-24 Thread Mans Rullgard
From: Andy Shevchenko We have already dedicated variable for flags, therefore no need to create an additional storage for that. Convert dwc->paused to use dwc->flags. Signed-off-by: Andy Shevchenko Signed-off-by: Mans Rullgard --- drivers/dma/dw/core.c | 12 +--- drivers/

[PATCH 02/15] dmaengine: dw: clear LLP_[SD]_EN bits in last descriptor of a chain

2016-01-24 Thread Mans Rullgard
The datasheet requires that the LLP_[SD]_EN bits be cleared whenever LLP.LOC is zero, i.e. in the last descriptor of a multi-block chain. Make the driver do this. Signed-off-by: Mans Rullgard --- drivers/dma/dw/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/dma/dw/core.c b

[PATCH 01/15] dmaengine: dw: fix byte order of hw descriptor fields

2016-01-24 Thread Mans Rullgard
always be correct. Signed-off-by: Mans Rullgard --- drivers/dma/dw/core.c | 105 -- drivers/dma/dw/regs.h | 32 +++ 2 files changed, 76 insertions(+), 61 deletions(-) diff --git a/drivers/dma/dw/core.c b/drivers/dma/dw/core.c index

[PATCH 07/15] dmaengine: dw: revisit data_width property

2016-01-24 Thread Mans Rullgard
, we still might return to distinct values when there is a use case. - Rename data_width to data-width in the device tree bindings. - While here, replace dwc_fast_ffs() by __ffs(). Signed-off-by: Andy Shevchenko Signed-off-by: Mans Rullgard --- This patch changes the DT binding, so it

[PATCH 03/15] dmaengine: dw: rename masters to reflect actual topology

2016-01-24 Thread Mans Rullgard
n the assumption that src_master and dst_master are reflecting a connection to the memory and peripheral correspondently on all platforms except 460ex. Signed-off-by: Andy Shevchenko Signed-off-by: Mans Rullgard --- Documentation/devicetree/bindings/dma/snps-dma.txt | 4 ++-- arch/avr32/mach-a

[PATCH 06/15] dmaengine: dw: substitute dma_read_byaddr by dma_readl_native

2016-01-24 Thread Mans Rullgard
From: Andy Shevchenko Since struct dw_dma is allocated and regs member is assigned properly we can use standard IO accessors to the DMA registers. Signed-off-by: Andy Shevchenko Signed-off-by: Mans Rullgard --- drivers/dma/dw/core.c | 8 +++- drivers/dma/dw/regs.h | 4 2 files

[PATCH 05/15] dmaengine: dw: set LMS field in descriptors

2016-01-24 Thread Mans Rullgard
The LMS field indicates from which master the descriptor is to be read. This patch assumes this is always the same as the memory side in a peripheral transfer which is true for all known systems. Signed-off-by: Mans Rullgard Signed-off-by: Andy Shevchenko --- drivers/dma/dw/core.c | 19

[PATCH 00/15] dmaengine: dw: various fixes and cleanups

2016-01-24 Thread Mans Rullgard
ne: dw: platform: use field-by-field initialization dmaengine: dw: move dwc->paused to dwc->flags dmaengine: dw: move dwc->initialized to dwc->flags dmaengine: dw: move residue to a descriptor dmaengine: dw: set cdesc to NULL when free cyclic transfers Mans Rullgard (4): dmae

[TROLL PATCH] spi: add option to create spidev nodes for unclaimed chip selects

2016-01-21 Thread Mans Rullgard
This adds an option to create spidev nodes for any chip selects not bound to a driver via DT/ACPI. It probably doesn't play nicely with modules. Signed-off-by: Mans Rullgard --- drivers/spi/Kconfig | 4 drivers/spi/spi.c | 29 + 2 files change

[PATCH] ASoC: mxs-saif: fix clk_prepare() without matching clk_unprepare()

2016-01-21 Thread Mans Rullgard
() function and adding a shutdown() function with a matching clk_unprepare() as these operations are already correctly bracketed by soc-core. Signed-off-by: Mans Rullgard --- sound/soc/mxs/mxs-saif.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/sound/soc/mxs/mxs

[PATCH v4 1/2] devicetree: add binding for Sigma Designs SMP86xx interrupt controller

2016-01-20 Thread Mans Rullgard
This adds a binding for the secondary interrupt controller in Sigma Designs SMP86xx and SMP87xx chips. Signed-off-by: Mans Rullgard --- Changes: - not included in v3 --- .../interrupt-controller/sigma,smp8642-intc.txt| 49 ++ 1 file changed, 49 insertions(+) create mode

[PATCH v4 2/2] irqchip: add support for Sigma Designs SMP86xx/SMP87xx interrupt controller

2016-01-20 Thread Mans Rullgard
This adds support for the secondary interrupt controller used in Sigma Designs SMP86xx and SMP87xx chips. Signed-off-by: Mans Rullgard --- Changes from v3: - use of_address_to_resource() rather accessing "reg" property directly Boot tested on SMP8643 (tango3) and SMP8759 (tango4) --

[PATCH] avr32: wire up accept4 syscall

2016-01-05 Thread Mans Rullgard
The accept4 syscall is missing on AVR32. Fix this. Signed-off-by: Mans Rullgard --- arch/avr32/include/uapi/asm/unistd.h | 1 + arch/avr32/kernel/syscall_table.S| 1 + 2 files changed, 2 insertions(+) diff --git a/arch/avr32/include/uapi/asm/unistd.h b/arch/avr32/include/uapi/asm

[PATCH] dmaengine: dw: clear LLP_[SD]_EN bits in last descriptor of a chain

2015-12-21 Thread Mans Rullgard
The datasheet requires that the LLP_[SD]_EN bits be cleared whenever LLP.LOC is zero, i.e. in the last descriptor of a multi-block chain. Make the driver do this. Signed-off-by: Mans Rullgard --- drivers/dma/dw/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/dma/dw/core.c b

[PATCH] ata: sata_dwc_460ex: remove incorrect locking

2015-12-21 Thread Mans Rullgard
] check_partition+0x140/0x274 [<901bba60>] rescan_partitions+0xa0/0x2b0 [<9011ff68>] __blkdev_get+0x264/0x380 [<901201ac>] blkdev_get+0x128/0x36c [<901b9378>] add_disk+0x3c0/0x4bc [<90268268>] sd_probe_async+0x100/0x224 [<90043a44>] async_run_entry_fn+0x50/0x124 [&l

[PATCH] dmaengine: dw: fix potential memory leak in dw_dma_parse_dt()

2015-12-17 Thread Mans Rullgard
until the device is removed. Fix this by deferring the allocation until after checking the "dma-channels" property. Signed-off-by: Mans Rullgard --- This has only been compile-tested as I have no suitable hardware. --- drivers/dma/dw/platform.c | 7 +-- 1 file changed, 5 insert

[PATCH] devicetree: sound: add binding for WM8974 codec

2015-12-16 Thread Mans Rullgard
This adds a binding for the Wolfson WM8974 mono audio codec. Signed-off-by: Mans Rullgard --- Sending this patch again, this time including Mark Brown. --- Documentation/devicetree/bindings/sound/wlf,wm8974.txt | 15 +++ 1 file changed, 15 insertions(+) create mode 100644

[PATCH 2/2] ASoC: wm8974: add devicetree support

2015-12-16 Thread Mans Rullgard
This adds devicetree support to the wm8974 codec driver. With a DT-based kernel, there is no board-specific setting to select the driver so allow it to be manually chosen. Signed-off-by: Mans Rullgard --- sound/soc/codecs/Kconfig | 3 ++- sound/soc/codecs/wm8974.c | 7 +++ 2 files changed

[PATCH 1/2] devicetree: sound: add binding for WM8974 codec

2015-12-16 Thread Mans Rullgard
This adds a binding for the Wolfson WM8974 mono audio codec. Signed-off-by: Mans Rullgard --- The Linux driver for this device currently only supports I2C, but SPI could easily be added if necessary, and DT bindings are supposed to be generic. --- Documentation/devicetree/bindings/sound/wlf

[PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel

2015-12-15 Thread Mans Rullgard
ck on the old way so existing device trees can continue to work. With this change, there is no longer any reason to depend on the 460EX machine type so drop that from Kconfig. Signed-off-by: Mans Rullgard --- drivers/ata/Kconfig | 10 ++- drivers/ata/sa

[PATCH 2/3] ata: sata_dwc_460ex: add phy support

2015-12-15 Thread Mans Rullgard
This adds support for powering on an optional PHY when activating the device. Signed-off-by: Mans Rullgard --- drivers/ata/Kconfig | 1 + drivers/ata/sata_dwc_460ex.c | 21 + 2 files changed, 22 insertions(+) diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig

[PATCH 3/3] ata: sata_dwc_460ex: get rid of global data

2015-12-15 Thread Mans Rullgard
This moves all global data into the driver private struct, thus permitting multiple devices of this type to be used. Signed-off-by: Mans Rullgard --- drivers/ata/sata_dwc_460ex.c | 80 1 file changed, 36 insertions(+), 44 deletions(-) diff --git a

[PATCH v2 1/2] i2c: xlr: fix extra read/write at end of rx transfer

2015-12-15 Thread Mans Rullgard
the number of bytes requested unless this is zero, which is not supported by the hardware and is thus refused. Signed-off-by: Mans Rullgard --- Changes: - refuse zero-length transfers and stop advertising I2C_FUNC_SMBUS_QUICK --- drivers/i2c/busses/i2c-xlr.c | 50

[PATCH v2 2/2] i2c: xlr: add interrupt support for Sigma Designs chips

2015-12-15 Thread Mans Rullgard
. Signed-off-by: Mans Rullgard --- Changes: - rebase onto v2 of previous patch --- drivers/i2c/busses/i2c-xlr.c | 119 +++ 1 file changed, 119 insertions(+) diff --git a/drivers/i2c/busses/i2c-xlr.c b/drivers/i2c/busses/i2c-xlr.c index 2cfaba7..613c3a4 100644

[PATCH 2/2] video: mxsfb: manage LCD_RESET signal according to reset-active property

2015-12-15 Thread Mans Rullgard
Activate/deactivate the LCD_RESET signal as specified by the reset-active DT property when the controller is disabled/enabled. If the property is missing, leave the signal unchanged. Signed-off-by: Mans Rullgard --- drivers/video/fbdev/mxsfb.c | 28 +--- 1 file changed

[PATCH 1/2] devicetree: mxsfb: add reset-active property

2015-12-15 Thread Mans Rullgard
ired polarity of the LCD_RESET pin. Signed-off-by: Mans Rullgard --- Documentation/devicetree/bindings/display/mxsfb.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/display/mxsfb.txt b/Documentation/devicetree/bindings/display/mxsfb.txt index 96e

[PATCH] ARM: dts: imx28: add alternate auart4 pinmux

2015-12-11 Thread Mans Rullgard
Add auart4 2-pin configuration on auart0 rts/cts pads. Signed-off-by: Mans Rullgard --- arch/arm/boot/dts/imx28.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/imx28.dtsi b/arch/arm/boot/dts/imx28.dtsi index c5b57d4..fae7b90 100644 --- a/arch/arm/boot/dts

[PATCH] ASoC: wm8974: set cache type for regmap

2015-12-11 Thread Mans Rullgard
Attempting to use this codec driver triggers a BUG() in regcache_sync() since no cache type is set. The register map of this device is fairly small and has few holes so a flat cache is suitable. Signed-off-by: Mans Rullgard --- sound/soc/codecs/wm8974.c | 1 + 1 file changed, 1 insertion

[PATCH v4] watchdog: add support for Sigma Designs SMP86xx/SMP87xx

2015-11-19 Thread Mans Rullgard
This adds support for the Sigma Designs SMP86xx/SMP87xx family built-in watchdog. Signed-off-by: Mans Rullgard --- Changes: - #include bitops.h - clk_disable_unprepare() on failure --- drivers/watchdog/Kconfig | 10 ++ drivers/watchdog/Makefile | 1 + drivers/watchdog/tangox_wdt.c

[PATCH 2/2] irqchip: add support for Sigma Designs SMP86xx interrupt controller

2015-11-19 Thread Mans Rullgard
This adds support for the secondary interrupt controller used in Sigma Designs SMP86xx and SMP87xx chips. Signed-off-by: Mans Rullgard --- drivers/irqchip/Kconfig | 5 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-tangox.c | 232

[PATCH 1/2] devicetree: add binding for Sigma Designs SMP86xx interrupt controller

2015-11-19 Thread Mans Rullgard
This adds a binding for the secondary interrupt controller in Sigma Designs SMP86xx and SMP87xx chips. Signed-off-by: Mans Rullgard --- .../interrupt-controller/sigma,smp8642-intc.txt| 47 ++ 1 file changed, 47 insertions(+) create mode 100644 Documentation/devicetree

[PATCH 0/2] Support for Sigma Designs SMP86xx interrupt controller

2015-11-19 Thread Mans Rullgard
this controller. Mans Rullgard (2): devicetree: add binding for Sigma Designs SMP86xx interrupt controller irqchip: add support for Sigma Designs SMP86xx interrupt controller .../interrupt-controller/sigma,smp8642-intc.txt| 47 + drivers/irqchip/Kconfig

[PATCH v3] watchdog: add support for Sigma Designs SMP86xx/SMP87xx

2015-11-19 Thread Mans Rullgard
This adds support for the Sigma Designs SMP86xx/SMP87xx family built-in watchdog. Signed-off-by: Mans Rullgard --- Changes: - deactivate initially if disable bit is set so as to avoid accidentally resetting if the counter is expired --- drivers/watchdog/Kconfig | 10 ++ drivers/watchdog

[PATCH v8] net: ethernet: add driver for Aurora VLSI NB8800 Ethernet controller

2015-11-19 Thread Mans Rullgard
This adds a driver for the Aurora VLSI NB8800 Ethernet controller. It is an almost complete rewrite of a driver originally found in a Sigma Designs 2.6.22 tree. Signed-off-by: Mans Rullgard --- Changes: - make some variables unsigned --- drivers/net/ethernet/Kconfig |1 + drivers

[PATCH v2 1/2] devicetree: watchdog: add binding for Sigma Designs SMP8642 watchdog

2015-11-18 Thread Mans Rullgard
This adds a binding for the watchdog in Sigma Designs SMP8642 and similar devices. Signed-off-by: Mans Rullgard --- Changes: - add timeout-sec property --- .../devicetree/bindings/watchdog/sigma,smp8642-wdt.txt | 18 ++ 1 file changed, 18 insertions(+) create mode 100644

[PATCH v2 2/2] watchdog: add support for Sigma Designs SMP86xx/SMP87xx

2015-11-18 Thread Mans Rullgard
This adds support for the Sigma Designs SMP86xx/SMP87xx family built-in watchdog. Signed-off-by: Mans Rullgard --- Changes: - combine start and ping functions - use watchdog_init_timeout() - calculate max timeout from clock rate - add get_timeleft callback - check if already running on startup

[PATCH v7] net: ethernet: add driver for Aurora VLSI NB8800 Ethernet controller

2015-11-18 Thread Mans Rullgard
This adds a driver for the Aurora VLSI NB8800 Ethernet controller. It is an almost complete rewrite of a driver originally found in a Sigma Designs 2.6.22 tree. Signed-off-by: Mans Rullgard --- Changes: - fix int / unsigned int mismatch - spell out "unsigned int" --- drivers/ne

[PATCH v6] net: ethernet: add driver for Aurora VLSI NB8800 Ethernet controller

2015-11-16 Thread Mans Rullgard
This adds a driver for the Aurora VLSI NB8800 Ethernet controller. It is an almost complete rewrite of a driver originally found in a Sigma Designs 2.6.22 tree. Signed-off-by: Mans Rullgard --- Changes: - Use napi_gro_receive() - Ignore xmit_more if using last tx descriptor - Perform tx cleanup

[RESEND][PATCH] watchdog: add support for Sigma Designs SMP86xx

2015-11-13 Thread Mans Rullgard
This adds support for the Sigma Designs SMP86xx family built-in watchdog. Signed-off-by: Mans Rullgard --- drivers/watchdog/Kconfig | 7 ++ drivers/watchdog/Makefile | 1 + drivers/watchdog/tangox_wdt.c | 185 ++ 3 files changed, 193

[PATCH] net: phy: vitesse: add support for VSC8601

2015-11-12 Thread Mans Rullgard
This adds support for the Vitesse VSC8601 PHY. Generic functions are used for everything except interrupt handling. Signed-off-by: Mans Rullgard --- drivers/net/phy/vitesse.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/drivers/net/phy/vitesse.c b/drivers

[PATCH] net: phy: at803x: support interrupt on 8030 and 8035

2015-11-12 Thread Mans Rullgard
Commit 77a993942 "phy/at8031: enable at8031 to work on interrupt mode" added interrupt support for the 8031 PHY but left out the other two chips supported by this driver. This patch sets the .ack_interrupt and .config_intr functions for the 8030 and 8035 drivers as well. Signed-of

[PATCH v5] net: ethernet: add driver for Aurora VLSI NB8800 Ethernet controller

2015-11-10 Thread Mans Rullgard
This adds a driver for the Aurora VLSI NB8800 Ethernet controller. It is an almost complete rewrite of a driver originally found in a Sigma Designs 2.6.22 tree. Signed-off-by: Mans Rullgard --- Changes: - Refactored mdio access functions - Refactored register access helpers - Improved error

[PATCH v2] ARM: debug: add support for Palmchip BK-310x UART

2015-11-08 Thread Mans Rullgard
to work with this type of UART. Signed-off-by: Mans Rullgard --- Changes: - moved #defines to a separate file --- arch/arm/Kconfig.debug| 9 + arch/arm/include/debug/palmchip.S | 11 +++ 2 files changed, 20 insertions(+) create mode 100644 arch/arm/include/debug

[PATCH 3/3] i2c: xlr: add interrupt support for Sigma Designs chips

2015-11-01 Thread Mans Rullgard
. Signed-off-by: Mans Rullgard --- drivers/i2c/busses/i2c-xlr.c | 119 +++ 1 file changed, 119 insertions(+) diff --git a/drivers/i2c/busses/i2c-xlr.c b/drivers/i2c/busses/i2c-xlr.c index c1afc3e..dd48c1e 100644 --- a/drivers/i2c/busses/i2c-xlr.c +++ b/drivers

[PATCH 1/3] i2c: xlr: add support for Sigma Designs controller variant

2015-11-01 Thread Mans Rullgard
sets the correct clock divisor if a clk is provided. The bus frequency is optionally speficied in the device tree node. Signed-off-by: Mans Rullgard --- drivers/i2c/busses/Kconfig | 6 ++-- drivers/i2c/busses/i2c-xlr.c | 81 +--- 2 files changed, 80

[PATCH 2/3] i2c: xlr: fix extra read/write at end of rx transfer

2015-11-01 Thread Mans Rullgard
to a dummy location allows making the main loops less convoluted. In other words, this patch makes the driver transfer the number of bytes requested unless this is zero, which is not supported by the hardware, in which case one byte is transferred instead. Signed-off-by: Mans Rullgard --- drivers/

[PATCH 1/2] devicetree: i2c: add binding for Sigma Designs SMP8642 I2C master

2015-10-31 Thread Mans Rullgard
This adds a binding for the Sigma Designs SMP8642 built-in I2C master controller. Signed-off-by: Mans Rullgard --- .../devicetree/bindings/i2c/sigma,smp8642-i2c.txt | 24 ++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/sigma

[PATCH 2/2] i2c: add driver for Sigma Designs SMP8642 I2C master

2015-10-31 Thread Mans Rullgard
. Signed-off-by: Mans Rullgard --- drivers/i2c/busses/Kconfig | 8 + drivers/i2c/busses/Makefile | 1 + drivers/i2c/busses/i2c-tangox.c | 330 3 files changed, 339 insertions(+) create mode 100644 drivers/i2c/busses/i2c-tangox.c diff --git a

[PATCH v4] net: ethernet: add driver for Aurora VLSI NB8800 Ethernet controller

2015-10-29 Thread Mans Rullgard
This adds a driver for the Aurora VLSI NB8800 Ethernet controller. It is an almost complete rewrite of a driver originally found in a Sigma Designs 2.6.22 tree. Signed-off-by: Mans Rullgard --- Changes: - Make ethtool_ops const - Fix race in tx path on smp systems - Use different interrupt

[PATCH 1/2] devicetree: watchdog: add binding for Sigma Designs SMP8642 watchdog

2015-10-27 Thread Mans Rullgard
This adds a binding for the watchdog in Sigma Designs SMP8642 and similar devices. Signed-off-by: Mans Rullgard --- .../devicetree/bindings/watchdog/sigma,8642-wdt.txt| 14 ++ 1 file changed, 14 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog

[PATCH 2/2] watchdog: add support for Sigma Designs SMP86xx

2015-10-27 Thread Mans Rullgard
This adds support for the Sigma Designs SMP86xx family built-in watchdog. Signed-off-by: Mans Rullgard --- drivers/watchdog/Kconfig | 7 ++ drivers/watchdog/Makefile | 1 + drivers/watchdog/tangox_wdt.c | 185 ++ 3 files changed, 193

  1   2   >