[PATCH v2 2/2] sierra_net: Skip validating irrelevant fields for IDLE LSIs

2017-02-06 Thread Stefan Brüns
When the context is deactivated, the link_type is set to 0xff, which triggers a warning message, and results in a wrong link status, as the LSI is ignored. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- drivers/net/usb/sierra_net.c | 14 +++--- 1 file chan

[PATCH v2 1/2] sierra_net: Add support for IPv6 and Dual-Stack Link Sense Indications

2017-02-06 Thread Stefan Brüns
erent link type. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- v2: Do not overwrite protocol field in rx_fixup Example LSI LINK UP indication: 00 ed 78 00 04 01 00 e9 0a 14 00 54 00 65 00 6c ..xT.e.l 0010 00 65 00 6b 00 6f 00 6d 00 2e 00 64 00 65 48 03

[PATCH v2 0/2] Fixes for sierra_net driver

2017-02-06 Thread Stefan Brüns
, APN internet.telekom, IPv4v6 PDP type. Both IPv4 and IPv6 connections work. v2: Do not overwrite protocol field in rx_fixup Stefan Brüns (2): sierra_net: Add support for IPv6 and Dual-Stack Link Sense Indications sierra_net: Skip validating irrelevant fields for IDLE LSIs drivers/net/usb

[PATCH 2/2] sierra_net: Skip validating irrelevant fields for IDLE LSIs

2017-02-06 Thread Stefan Brüns
When the context is deactivated, the link_type is set to 0xff, which triggers a warning message, and results in a wrong link status, as the LSI is ignored. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- drivers/net/usb/sierra_net.c | 14 +++--- 1 file chan

[PATCH 0/2] Fixes for sierra_net driver

2017-02-06 Thread Stefan Brüns
, APN internet.telekom, IPv4v6 PDP type. Stefan Brüns (2): sierra_net: Add support for IPv6 and Dual-Stack Link Sense Indications sierra_net: Skip validating irrelevant fields for IDLE LSIs drivers/net/usb/sierra_net.c | 92 ++-- 1 file changed, 63

[PATCH 1/2] sierra_net: Add support for IPv6 and Dual-Stack Link Sense Indications

2017-02-06 Thread Stefan Brüns
erent link type. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- Example LSI LINK UP indication: 00 ed 78 00 04 01 00 e9 0a 14 00 54 00 65 00 6c ..xT.e.l 0010 00 65 00 6b 00 6f 00 6d 00 2e 00 64 00 65 48 03 .e.k.o.m...d.eH. 0020 c8 be d1 00 62 00 00 00 2c 8

[PATCH 2/2] [media] dvb-usb-firmware: don't do DMA on stack

2017-02-05 Thread Stefan Brüns
The USB control messages require DMA to work. We cannot pass a stack-allocated buffer, as it is not warranted that the stack would be into a DMA enabled area. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- drivers/media/usb/dvb-usb/dvb-usb-firmware.

[PATCH v3 2/2] sierra_net: Skip validating irrelevant fields for IDLE LSIs

2017-02-07 Thread Stefan Brüns
When the context is deactivated, the link_type is set to 0xff, which triggers a warning message, and results in a wrong link status, as the LSI is ignored. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- drivers/net/usb/sierra_net.c | 14 +++--- 1 file chan

[PATCH v3 0/2] Fixes for sierra_net driver

2017-02-07 Thread Stefan Brüns
, APN internet.telekom, IPv4v6 PDP type. Both IPv4 and IPv6 connections work. v2: Do not overwrite protocol field in rx_fixup v3: Remove leftover struct ethhdr *eth declaration Stefan Brüns (2): sierra_net: Add support for IPv6 and Dual-Stack Link Sense Indications sierra_net: Skip validating

[PATCH v3 1/2] sierra_net: Add support for IPv6 and Dual-Stack Link Sense Indications

2017-02-07 Thread Stefan Brüns
erent link type. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- v2: Do not overwrite protocol field in rx_fixup v3: Remove leftover struct ethhdr *eth declaration Example LSI LINK UP indication: 00 ed 78 00 04 01 00 e9 0a 14 00 54 00 65 00 6c ..xT.e.l 0010 0

[PATCH 1/2] [media] cxusb: Use a dma capable buffer also for reading

2017-02-05 Thread Stefan Brüns
elf, avoid calling it using the dvb_usb_generic_read wrapper function. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- drivers/media/usb/dvb-usb/cxusb.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/media/usb/dvb-usb/cxusb.c b/drive

[PATCH v3 1/3] [media] si2157: Add support for Si2141-A10

2017-02-16 Thread Stefan Brüns
The Si2141 needs two distinct commands for powerup/reset, otherwise it will not respond to chip revision requests. It also needs a firmware to run properly. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- drivers/media/tuners/si2157.c | 23 +-- d

[PATCH v3 2/3] [media] si2168: add support for Si2168-D60

2017-02-16 Thread Stefan Brüns
Add handling for new revision, requiring new firmware. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- drivers/media/dvb-frontends/si2168.c | 4 drivers/media/dvb-frontends/si2168_priv.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/drivers/media/dvb-fro

[PATCH v3 3/3] [media] dvbsky: MyGica T230C support

2017-02-16 Thread Stefan Brüns
Mygica T230 DVB-T/T2/C USB stick support. It uses the same FX2/Si2168 bridge/demodulator combo as the other devices supported by the driver, but uses the Si2141 tuner. Several DVB-T (MPEG2) and DVB-T2 (H.265) channels were tested, as well as the included remote control. Signed-off-by: Stefan

[PATCH v3 0/3] Add support for MyGica T230C DVB-T2 stick

2017-02-16 Thread Stefan Brüns
The required command sequence for the new tuner (Si2141) was traced from the current Windows driver and verified with a small python script/libusb. The changes to the Si2168 and dvbsky driver are mostly additions of the required IDs and some glue code. Stefan Brüns (3): [media] si2157: Add

[PATCH 3/3] [media] cxusb: MyGica T230C support

2017-02-12 Thread Stefan Brüns
Mygica T230 DVB-T/T2/C USB stick support. It uses the same FX2/Si2168 bridge/demodulator combo as the T230, but uses the Si2141 tuner. Factor out the common code and pass the tuner type and if port as parameter, to avoid duplicating the initialization code. Signed-off-by: Stefan Brüns <stefan.

[PATCH 0/3] Add support for MyGica T230C DVB-T2 stick

2017-02-12 Thread Stefan Brüns
The required command sequence for the new tuner (Si2141) was traced from the current Windows driver and verified with a small python script/libusb. The changes to the Si2168 and cxusb driver are mostly addition of the required IDs and some glue code. Stefan Brüns (3): [media] si2157: Add

[PATCH 2/3] [media] si2168: add support for Si2168-D60

2017-02-12 Thread Stefan Brüns
Add handling for new revision, requiring new firmware. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- drivers/media/dvb-frontends/si2168.c | 4 drivers/media/dvb-frontends/si2168_priv.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/drivers/media/dvb-fro

[PATCH 1/3] [media] si2157: Add support for Si2141-A10

2017-02-12 Thread Stefan Brüns
The Si2141 needs two distinct commands for powerup/reset, otherwise it will not respond to chip revision requests. It also needs a firmware to run properly. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- drivers/media/tuners/si2157.c | 23 +-- d

[PATCH v2] [media] dvb-usb-firmware: don't do DMA on stack

2017-02-12 Thread Stefan Brüns
The buffer allocation for the firmware data was changed in commit 43fab9793c1f ("dvb-usb: don't use stack for firmware load"), but the same applies for the reset value. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- This patch replaces the earlier submis

[PATCH v2 1/3] [media] si2157: Add support for Si2141-A10

2017-02-14 Thread Stefan Brüns
The Si2141 needs two distinct commands for powerup/reset, otherwise it will not respond to chip revision requests. It also needs a firmware to run properly. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- drivers/media/tuners/si2157.c | 23 +-- d

[PATCH v2 3/3] [media] dvbsky: MyGica T230C support

2017-02-14 Thread Stefan Brüns
Mygica T230 DVB-T/T2/C USB stick support. It uses the same FX2/Si2168 bridge/demodulator combo as the other devices supported by the driver, but uses the Si2141 tuner. Several DVB-T (MPEG2) and DVB-T2 (H.265) channels were tested, as well as the include remote control. Signed-off-by: Stefan Brüns

[PATCH v2 2/3] [media] si2168: add support for Si2168-D60

2017-02-14 Thread Stefan Brüns
Add handling for new revision, requiring new firmware. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- drivers/media/dvb-frontends/si2168.c | 4 drivers/media/dvb-frontends/si2168_priv.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/drivers/media/dvb-fro

[PATCH v2 0/3] Add support for MyGica T230C DVB-T2 stick

2017-02-14 Thread Stefan Brüns
The required command sequence for the new tuner (Si2141) was traced from the current Windows driver and verified with a small python script/libusb. The changes to the Si2168 and dvbsky driver are mostly additions of the required IDs and some glue code. Stefan Brüns (3): [media] si2157: Add

[PATCH 1/2] iio: adc: Fix integration time/averaging for INA219/220

2017-04-11 Thread Stefan Brüns
for the INA219. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- drivers/iio/adc/ina2xx-adc.c | 179 ++- 1 file changed, 158 insertions(+), 21 deletions(-) diff --git a/drivers/iio/adc/ina2xx-adc.c b/drivers/iio/adc/ina2xx-adc.c index 326323

[PATCH 0/2] Enhancements for TI INA219/220 current/voltage monitors

2017-04-11 Thread Stefan Brüns
), and sets the config register accordingly. Stefan Brüns (2): iio: adc: Fix integration time/averaging for INA219/220 iio: adc: Allow setting Shunt Voltage PGA gain and Bus Voltage range drivers/iio/adc/ina2xx-adc.c | 344 --- 1 file changed, 322 insertions

[PATCH 2/2] iio: adc: Allow setting Shunt Voltage PGA gain and Bus Voltage range

2017-04-11 Thread Stefan Brüns
Reducing shunt and bus voltage range improves the accuracy, so allow altering the default settings. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- drivers/iio/adc/ina2xx-adc.c | 165 ++- 1 file changed, 164 insertions(+), 1 de

[PATCH 0/2] Enable SPI on A64/Pine64

2017-08-11 Thread Stefan Brüns
The A64 SPI controller is compatible to the H3/H5 controller, i.e. same registers and same queue depth. The Pine64 exposes both controllers on the PI-2 and Euler connectors. Tested/verified with logic analyser and spidev_test using MOSI/MISO loopback. Stefan Brüns (2): arm64: allwinner: a64

[PATCH 1/2] arm64: allwinner: a64: add SPI nodes

2017-08-11 Thread Stefan Brüns
The A64 SPI controllers are register compatible to the h3/h5 SPI controllers. The A64 has two SPI controllers, each with a single chip select. The handles for the DMA channels (23/24 for SPI0/SPI1) are omitted, as the A64 DMA support is currently missing. Signed-off-by: Stefan Brüns <stefan.

[PATCH 2/2] arm64: allwinner: pine64: Enable spi0/spi1

2017-08-11 Thread Stefan Brüns
The two spi channels/controllers are available on the PI-2 resp. Euler connector, enable both. Contrary to the Pi, the A64 SOC only supports one chip select, so the second chipselect is not available (though it can be emulated using gpio chipselect). Signed-off-by: Stefan Brüns <stefan.

[PATCH 2/2] iio: Documentation: Add ina2xx shunt_resistor attribute documentation

2017-07-16 Thread Stefan Brüns
The ina2xx driver appeared in the Linux kernel version 4.5, but provided no documentation. Contrary to other uses of resistance in IIO, ina2xx uses microohms instead of ohms in the sysfs attribute. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- Documentation/ABI/testing/sys

[PATCH 0/2] iio: Documentation enhancements

2017-07-16 Thread Stefan Brüns
use of ohms for resistance in IIO, thus is added as ina2xx specific documentation. Stefan Brüns (2): iio: Documentation: Add missing documentation for power attribute iio: Documentation: Add ina2xx shunt_resistor attribute documentation Documentation/ABI/testing/sysfs-bus-iio| 9

[PATCH 1/2] iio: Documentation: Add missing documentation for power attribute

2017-07-16 Thread Stefan Brüns
Commit c43a102e67db ("iio: ina2xx: add support for TI INA2xx Power Monitors") introduced the in_powerY_raw attribute, but omitted the corresponding documentation. The description is correct for the INA2xx and the MAX9611 IIO drivers. Signed-off-by: Stefan Brüns <stefan.bru...@r

[PATCH] iio: adc: ina219: Avoid underflow for sleeping time

2017-07-26 Thread Stefan Brüns
comparing with buffer_us. Fixes: 18edac2e22f4 ("iio: adc: Fix integration time/averaging for INA219/220") Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- drivers/iio/adc/ina2xx-adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/ad

[PATCH v2 2/3] iio: adc: Fix integration time/averaging for INA219/220

2017-05-23 Thread Stefan Brüns
for the INA219. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- drivers/iio/adc/ina2xx-adc.c | 204 ++- 1 file changed, 182 insertions(+), 22 deletions(-) diff --git a/drivers/iio/adc/ina2xx-adc.c b/drivers/iio/adc/ina2xx-adc.c index bba10a

[PATCH v2 1/3] iio: adc: ina2xx: Make use of attribute flags consistent on all channels

2017-05-23 Thread Stefan Brüns
Flags for shared channel attributes should be set on all channels of a channel set. I.e. SAMP_FREQUENCY and OVERSAMPLING_RATIO are set on the in_voltage{0,1} channels, thus should be set on in_power, in_current. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- drivers/i

[PATCH v2 0/3] Enhancements for TI INA219/220 current/voltage monitors

2017-05-23 Thread Stefan Brüns
/ averaging from INA219/220 - changed Patch v1 1/2 (now 2/3, feedback by Jonathan Cameron): * Use correct flags for all channels/chips * Improve readability of chip/channel handling in if statement - dropped Patch v1 2/2 for now - added Patch v2 3/3 Stefan Brüns (3): iio: adc: ina2xx

[PATCH v2 3/3] iio: adc: Fix polling of INA219 conversion ready flag

2017-05-23 Thread Stefan Brüns
While the INA226 has a conversion ready flag (CVRF) in the R/W Mask/Enable register with read-to-clear semantics, the corresponding bit of the INA219 (CNVR) is part of the bus voltage register. The flag is cleared by reading the power register. Signed-off-by: Stefan Brüns <stefan.bru...@r

[PATCH 0/2] iio: Trivial fixes for INA219, Documentation

2017-05-01 Thread Stefan Brüns
The following two patches fix some trivial issues, no functional changes: Stefan Brüns (2): iio: Documentation: Remove (partially) duplicate line iio: adc: Fix bad GENMASK use, typos, whitespace Documentation/ABI/testing/sysfs-bus-iio-meas-spec | 1 - drivers/iio/adc/ina2xx-adc.c

[PATCH 1/2] iio: Documentation: Remove (partially) duplicate line

2017-05-01 Thread Stefan Brüns
Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- Documentation/ABI/testing/sysfs-bus-iio-meas-spec | 1 - 1 file changed, 1 deletion(-) diff --git a/Documentation/ABI/testing/sysfs-bus-iio-meas-spec b/Documentation/ABI/testing/sysfs-bus-iio-meas-spec index 1a6265

[PATCH 2/2] iio: adc: Fix bad GENMASK use, typos, whitespace

2017-05-01 Thread Stefan Brüns
uot;Mask/Enable") for the register number define. Fix bad indentation for channel attributes. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- drivers/iio/adc/ina2xx-adc.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/iio/adc/ina2xx-adc.c b/dr

[PATCH v2 04/10] dmaengine: sun6i: Enable additional burst lengths/widths on H3

2017-09-16 Thread Stefan Brüns
The H3 supports bursts lengths of 1, 4, 8 and 16 transfers, each with a width of 1, 2, 4 or 8 bytes. The register value for the the width is log2-encoded, change the conversion function to provide the correct value for width == 8. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen

[PATCH v2 00/10] dmaengine: sun6i: Fixes for H3/A83T, enable A64

2017-09-16 Thread Stefan Brüns
ovided in config or devicetree Stefan Brüns (10): dmaengine: sun6i: Correct setting of clock autogating register for A83T/H3 dmaengine: sun6i: Correct burst length field offsets for H3 dmaengine: sun6i: Restructure code to allow extension for new SoCs dmaengine: sun6i: Enable additio

[PATCH v2 03/10] dmaengine: sun6i: Restructure code to allow extension for new SoCs

2017-09-16 Thread Stefan Brüns
these out of the conversion to distinct operations. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- drivers/dma/sun6i-dma.c | 66 - 1 file changed, 38 insertions(+), 28 deletions(-) diff --git a/drivers/dma/sun6i-dma.c b/drivers/dma

[PATCH v2 2/4] iio: light: vl6180: Avoid readback of integration time register

2017-09-23 Thread Stefan Brüns
Instead of reading the value from the register on each query, store the set value. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- drivers/iio/light/vl6180.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/iio/light/vl6180.c b/drive

[PATCH v2 1/4] iio: light: vl6180: Move range check to integration time setter, cleanup

2017-09-23 Thread Stefan Brüns
This improves code uniformity (range checks for als_gain are also done in the setter). Also unmangle rounding and calculation of register value. The calculated integration time it_ms is required in the next patch of the series. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de>

[PATCH v2 4/4] iio: light: vl6180: Correct ALS scale for non-default gain/integration time

2017-09-23 Thread Stefan Brüns
The reported scale was only correct for the default settings of 100 ms integration time and gain 1. This aligns the reported scale with the behaviour of any other IIO driver and the documented ABI, but may require userspace changes if someone uses non-default settings. Signed-off-by: Stefan

[PATCH v2 0/4] iio: light: vl6180: Several fixes and enhancements

2017-09-23 Thread Stefan Brüns
the register values. Use the saved values to report the correct scale value. v2: removed redundant parenthesis, add missing spaces Stefan Brüns (4): iio: light: vl6180: Move range check to integration time setter, cleanup iio: light: vl6180: Avoid readback of integration time register iio: light

[PATCH v2 3/4] iio: light: vl6180: Cleanup als_gain lookup, avoid register readback

2017-09-23 Thread Stefan Brüns
Instead of manually iterating the array of allowed gain values, use find_closest. Storing the current gain setting avoids accessing the hardware on each query. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- v2: add missing spaces drivers/iio/light/vl6180.

[RFC PATCH] dmaengine: sh: Correct src_addr_widths/dst_addr_widths bitmask setting

2017-09-17 Thread Stefan Brüns
of BIT(), not BIT(log2), as it must be able to encode a width of 3 bytes. The corollary is, it is not possible to encode either a width of 32 or 64 bytes, as the field has a size of 32 bits, and only a subset of the controller capabilities can be exposed. Signed-off-by: Stefan Brüns <stefan.bru...@r

[PATCH] dmaengine: edma: Reject slave configs using a buswidth of 8 and larger

2017-09-17 Thread Stefan Brüns
The driver would happily accept buswidth of 16/32/64 bytes and program garbage to its registers. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- drivers/dma/edma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c

[PATCH v2 08/10] dmaengine: sun6i: Add support for Allwinner A64 and compatibles

2017-09-16 Thread Stefan Brüns
The A64 SoC has the same dma engine as the H3 (sun8i), with a reduced amount of physical channels. To allow future reuse of the compatible, leave the channel count etc. in the config data blank and retrieve it from the devicetree. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen

[PATCH v2 07/10] dmaengine: sun6i: Retrieve channel count/max request from devicetree

2017-09-16 Thread Stefan Brüns
with a sparse port mapping. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- drivers/dma/sun6i-dma.c | 37 - 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/drivers/dma/sun6i-dma.c b/drivers/dma/sun6i-dma.c index 245a147f718f..b5ecc9

[PATCH v2 06/10] arm64: allwinner: a64: Add devicetree binding for DMA controller

2017-09-16 Thread Stefan Brüns
layout defined maximum of 32 is used. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- .../devicetree/bindings/dma/sun6i-dma.txt | 26 ++ 1 file changed, 26 insertions(+) diff --git a/Documentation/devicetree/bindings/dma/sun6i-dma.txt b/Documen

[PATCH v2 10/10] arm64: allwinner: a64: add dma controller references to spi nodes

2017-09-16 Thread Stefan Brüns
The spi controller nodes omit the dma controller/channel references, add it. This does not yet enable DMA for SPI transfers, as the spi-sun6i driver lacks support for DMA, but always uses PIO to the FIFO. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- arch/arm64/bo

[PATCH v2 01/10] dmaengine: sun6i: Correct setting of clock autogating register for A83T/H3

2017-09-16 Thread Stefan Brüns
it in the controller config structure. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- drivers/dma/sun6i-dma.c | 31 ++- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/drivers/dma/sun6i-dma.c b/drivers/dma/sun6i-dma.c index bcd496

[PATCH v2 09/10] arm64: allwinner: a64: Add device node for DMA controller

2017-09-16 Thread Stefan Brüns
The A64 SoC has a DMA controller that supports 8 DMA channels to and from various peripherals. The last used DRQ port is 27. Add a device node for it. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 11 +++ 1 file c

[PATCH v2 02/10] dmaengine: sun6i: Correct burst length field offsets for H3

2017-09-16 Thread Stefan Brüns
-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- drivers/dma/sun6i-dma.c | 36 +++- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/drivers/dma/sun6i-dma.c b/drivers/dma/sun6i-dma.c index 45bcd5271d94..a6fc066a0ac6 100644 --- a/drivers/dma/sun6i-dma.c

[PATCH v2 05/10] dmaengine: sun6i: Move number of pchans/vchans/request to device struct

2017-09-16 Thread Stefan Brüns
Preparatory patch: If the same compatible is used for different SoCs which have a common register layout, but different number of channels, the channel count can no longer be stored in the config. Store it in the device structure instead. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen

[PATCH 2/4] iio: light: vl6180: Avoid readback of integration time register

2017-09-18 Thread Stefan Brüns
Instead of reading the value from the register on each query, store the set value. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- drivers/iio/light/vl6180.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/iio/light/vl6180.c b/drive

[PATCH 3/4] iio: light: vl6180: Cleanup als_gain lookup, avoid register readback

2017-09-18 Thread Stefan Brüns
Instead of manually iterating the array of allowed gain values, use find_closest. Storing the current gain setting avoids accessing the hardware on each query. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- drivers/iio/light/vl6180.

[PATCH 4/4] iio: light: vl6180: Correct ALS scale for non-default gain/integration time

2017-09-18 Thread Stefan Brüns
The reported scale was only correct for the default settings of 100 ms integration time and gain 1. This aligns the reported scale with the behaviour of any other IIO driver and the documented ABI, but may require userspace changes if someone uses non-default settings. Signed-off-by: Stefan

[PATCH 1/4] iio: light: vl6180: Move range check to integration time setter, cleanup

2017-09-18 Thread Stefan Brüns
This improves code uniformity (range checks for als_gain are also done in the setter). Also unmangle rounding and calculation of register value. The calculated integration time it_ms is required in the next patch of the series. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen

[PATCH 0/4] iio: light: vl6180: Several fixes and enhancements

2017-09-18 Thread Stefan Brüns
the register values. Use the saved values to report the correct scale value. Stefan Brüns (4): iio: light: vl6180: Move range check to integration time setter, cleanup iio: light: vl6180: Avoid readback of integration time register iio: light: vl6180: Cleanup als_gain lookup, avoid register readback

[PATCH v5 07/11] dmaengine: sun6i: Retrieve channel count/max request from devicetree

2017-10-16 Thread Stefan Brüns
with a sparse port mapping. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- Changes in v5: - Rebase on slave-dma/next tree Changes in v4: - remove range checks for dma-channels/dma-requests DT properties Changes

[RESEND PATCH 0/2] Enable SPI on A64/Pine64

2017-08-29 Thread Stefan Brüns
with the eMMC controller, as the MISO pin is also used for the HS400 eMMC data strobe. This is only a concern if the board uses eMMC (does not apply to the Pine64) *and* is using HS400 mode. The same pin conflict exists for the H5. Stefan Brüns (2): arm64: allwinner: a64: add SPI nodes arm64: allwinner

[RESEND PATCH 1/2] arm64: allwinner: a64: add SPI nodes

2017-08-29 Thread Stefan Brüns
The A64 SPI controllers are register compatible to the h3/h5 SPI controllers. The A64 has two SPI controllers, each with a single chip select. The handles for the DMA channels (23/24 for SPI0/SPI1) are omitted, as the A64 DMA controller node is currently missing. Signed-off-by: Stefan Brüns

[RESEND PATCH 2/2] arm64: allwinner: pine64: Enable spi0/spi1

2017-08-29 Thread Stefan Brüns
The two spi channels/controllers are available on the PI-2 resp. Euler connector, enable both. Contrary to the Pi, the A64 SOC only supports one chip select, so the second chipselect is not available (though it can be emulated using gpio chipselect). Signed-off-by: Stefan Brüns <stefan.

[PATCH 0/2] dmaengine: Correct some documentation

2017-09-11 Thread Stefan Brüns
Some small fixes for dmaengine documentation. Stefan Brüns (2): dmaengine: List all allowed values for src/dst_addr_width in kernel doc dmaengine: Mark struct dma_slave_caps kernel-doc correctly, clarify include/linux/dmaengine.h | 30 +- 1 file changed, 17

[PATCH 1/2] dmaengine: List all allowed values for src/dst_addr_width in kernel doc

2017-09-11 Thread Stefan Brüns
Commit 93c6ee94c140 ("dma: Support for 3 bytes word size") and commit 534a729866f9 ("dmaengine: Add 16 bytes, 32 bytes and 64 bytes bus widths") added additional values for the allowed word size, but omitted these from the struct dma_slave_config documentation. Signed-

[PATCH 2/2] dmaengine: Mark struct dma_slave_caps kernel-doc correctly, clarify

2017-09-11 Thread Stefan Brüns
mentations, and cleanup wording of the description. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- include/linux/dmaengine.h | 28 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h in

[PATCH v3 09/10] arm64: allwinner: a64: Add device node for DMA controller

2017-09-24 Thread Stefan Brüns
The A64 SoC has a DMA controller that supports 8 DMA channels to and from various peripherals. The last used DRQ port is 27. Add a device node for it. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- Changes in v3: - Drop leading 0 from dma controller unit name Changes

[PATCH v3 06/10] arm64: allwinner: a64: Add devicetree binding for DMA controller

2017-09-24 Thread Stefan Brüns
layout defined maximum of 32 is used. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> Acked-by: Rob Herring <r...@kernel.org> --- Changes in v3: - Drop leading 0 from unit name in DT example Changes in v2: None .../devicetree/bindings/dma/sun6i-dma.txt

[PATCH v3 08/10] dmaengine: sun6i: Add support for Allwinner A64 and compatibles

2017-09-24 Thread Stefan Brüns
The A64 SoC has the same dma engine as the H3 (sun8i), with a reduced amount of physical channels. To allow future reuse of the compatible, leave the channel count etc. in the config data blank and retrieve it from the devicetree. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de>

[PATCH v3 03/10] dmaengine: sun6i: Restructure code to allow extension for new SoCs

2017-09-24 Thread Stefan Brüns
these out of the conversion to distinct operations. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- Changes in v3: None Changes in v2: - Store burst lengths in config instead of device structure drivers/dma/sun6

[PATCH v3 04/10] dmaengine: sun6i: Enable additional burst lengths/widths on H3

2017-09-24 Thread Stefan Brüns
The H3 supports bursts lengths of 1, 4, 8 and 16 transfers, each with a width of 1, 2, 4 or 8 bytes. The register value for the the width is log2-encoded, change the conversion function to provide the correct value for width == 8. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de>

[PATCH v3 05/10] dmaengine: sun6i: Move number of pchans/vchans/request to device struct

2017-09-24 Thread Stefan Brüns
Preparatory patch: If the same compatible is used for different SoCs which have a common register layout, but different number of channels, the channel count can no longer be stored in the config. Store it in the device structure instead. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen

[PATCH v3 02/10] dmaengine: sun6i: Correct burst length field offsets for H3

2017-09-24 Thread Stefan Brüns
-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- Changes in v3: None Changes in v2: - Use controller specific callback for burst length setting drivers/dma/sun6i-dma.c | 36 +++- 1 file changed, 2

[PATCH v3 07/10] dmaengine: sun6i: Retrieve channel count/max request from devicetree

2017-09-24 Thread Stefan Brüns
with a sparse port mapping. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- Changes in v3: None Changes in v2: - Set default number of dma-request if not provided in config or devicetree drivers/dma/sun6i-dma.c | 37 - 1 file changed, 36 inse

[PATCH v3 00/10] Commit 3a03ea763a67 ("dmaengine: sun6i: Add support for Allwinner A83T

2017-09-24 Thread Stefan Brüns
ing - Store burst lengths in config instead of device structure - Store burst widths in config - Set default number of dma-request if not provided in config or devicetree Stefan Brüns (10): dmaengine: sun6i: Correct setting of clock autogating register for A83T/H3 dmaengine: sun6i: Correct b

[PATCH v3 3/4] iio: light: vl6180: Cleanup als_gain lookup, avoid register readback

2017-09-24 Thread Stefan Brüns
Instead of manually iterating the array of allowed gain values, use find_closest. Storing the current gain setting avoids accessing the hardware on each query. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- Changes in v3: None Changes in v2: - Add missing spaces drive

[PATCH v3 1/4] iio: light: vl6180: Move range check to integration time setter, cleanup

2017-09-24 Thread Stefan Brüns
This improves code uniformity (range checks for als_gain are also done in the setter). Also unmangle rounding and calculation of register value. The calculated integration time it_ms is required in the next patch of the series. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen

[PATCH v3 01/10] dmaengine: sun6i: Correct setting of clock autogating register for A83T/H3

2017-09-24 Thread Stefan Brüns
it in the controller config structure. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- Changes in v3: - Check for callback instead of using a no-op callback Changes in v2: - Use callback for autogating instead

[PATCH v3 10/10] arm64: allwinner: a64: add dma controller references to spi nodes

2017-09-24 Thread Stefan Brüns
The spi controller nodes omit the dma controller/channel references, add it. This does not yet enable DMA for SPI transfers, as the spi-sun6i driver lacks support for DMA, but always uses PIO to the FIFO. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- Changes in v3: None C

[PATCH 3/3] iio: adc: ina2xx: Allow setting Shunt Voltage PGA gain and Bus Voltage range

2017-10-01 Thread Stefan Brüns
a uniform API to userspace. As the gain settings are incorporated into the raw values by the sensor itself, adjusting of the scale attributes is not necessary. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- drivers/iio/adc/ina2xx-adc.c

[PATCH 1/3] iio: adc: ina2xx: Mask flag bits in bus voltage register

2017-10-01 Thread Stefan Brüns
Lower bits of the INA219/220 bus voltage register are conversion status flags, properly mask the value. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- drivers/iio/adc/ina2xx-adc.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/i

[PATCH 2/3] iio: adc: ina2xx: Adhere to documented ABI, use Ohm instead of uOhm

2017-10-01 Thread Stefan Brüns
the default value nor a value set from the devicetree. Minor change: Fix comment, 1mA is 10^-3A. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- drivers/iio/adc/ina2xx-adc.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/iio/adc/

[PATCH 0/3] iio: adc: ina2xx: Fixes and extensions

2017-10-01 Thread Stefan Brüns
. The third patch adds support for the INA219/220 specific bus voltage range and shunt voltage PGA. Stefan Brüns (3): iio: adc: ina2xx: Mask flag bits in bus voltage register iio: adc: ina2xx: Adhere to documented ABI, use Ohm instead of uOhm iio: adc: ina2xx: Allow setting Shunt Voltage

[PATCH v4 10/11] arm64: allwinner: a64: add dma controller references to spi nodes

2017-09-27 Thread Stefan Brüns
The spi controller nodes omit the dma controller/channel references, add it. This does not yet enable DMA for SPI transfers, as the spi-sun6i driver lacks support for DMA, but always uses PIO to the FIFO. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- Changes in v4: None C

[PATCH v4 08/11] dmaengine: sun6i: Add support for Allwinner A64 and compatibles

2017-09-27 Thread Stefan Brüns
The A64 SoC has the same dma engine as the H3 (sun8i), with a reduced amount of physical channels. To allow future reuse of the compatible, leave the channel count etc. in the config data blank and retrieve it from the devicetree. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de>

[PATCH v4 06/11] arm64: allwinner: a64: Add devicetree binding for DMA controller

2017-09-27 Thread Stefan Brüns
layout defined maximum of 32 is used. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> Acked-by: Rob Herring <r...@kernel.org> --- Changes in v4: None Changes in v3: - Drop leading 0 from unit name in DT example Changes in v2: None .../devicetree/bindings/dma/s

[PATCH v4 04/11] dmaengine: sun6i: Enable additional burst lengths/widths on H3

2017-09-27 Thread Stefan Brüns
The H3 supports bursts lengths of 1, 4, 8 and 16 transfers, each with a width of 1, 2, 4 or 8 bytes. The register value for the the width is log2-encoded, change the conversion function to provide the correct value for width == 8. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de>

[PATCH v4 07/11] dmaengine: sun6i: Retrieve channel count/max request from devicetree

2017-09-27 Thread Stefan Brüns
with a sparse port mapping. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- Changes in v4: - remove range checks for dma-channels/dma-requests DT properties Changes in v3: None Changes in v2: - Set default number of

[PATCH v4 11/11] arm: allwinner: Correct unit name in devicetree binding example

2017-09-27 Thread Stefan Brüns
Unit-names must not start with a leading 0. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- Changes in v4: - Split minor fix in devicetree example from patch 6/10 Changes in v3: None Changes in v2: None Documentation/devicetree/bindings/dma/sun6i-dma.txt | 2 +- 1 file c

[PATCH v4 09/11] arm64: allwinner: a64: Add device node for DMA controller

2017-09-27 Thread Stefan Brüns
The A64 SoC has a DMA controller that supports 8 DMA channels to and from various peripherals. The last used DRQ port is 27. Add a device node for it. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> --- Changes in v4: None Changes in v3: - Drop leading 0 from dma controlle

[PATCH v4 05/11] dmaengine: sun6i: Move number of pchans/vchans/request to device struct

2017-09-27 Thread Stefan Brüns
Preparatory patch: If the same compatible is used for different SoCs which have a common register layout, but different number of channels, the channel count can no longer be stored in the config. Store it in the device structure instead. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen

[PATCH v4 00/11] dmaengine: sun6i: Fixes for H3/A83T, enable A64

2017-09-27 Thread Stefan Brüns
e controller specific callback for burst length setting - Store burst lengths in config instead of device structure - Store burst widths in config - Set default number of dma-request if not provided in config or devicetree Stefan Brüns (11): dmaengine: sun6i: Correct setting of clock autog

[PATCH v4 01/11] dmaengine: sun6i: Correct setting of clock autogating register for A83T/H3

2017-09-27 Thread Stefan Brüns
it in the controller config structure. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- Changes in v4: - Correct callback function signature, pass pointer to controller - sun6i_dma_dev refers to sun6i_dma_con

[PATCH v4 02/11] dmaengine: sun6i: Correct burst length field offsets for H3

2017-09-27 Thread Stefan Brüns
-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- Changes in v4: - Pass reference to config instead of config itself - Fix config initialization Changes in v3: None Changes in v2: - Use controller specific callback for burst le

[PATCH v4 03/11] dmaengine: sun6i: Restructure code to allow extension for new SoCs

2017-09-27 Thread Stefan Brüns
these out of the conversion to distinct operations. Signed-off-by: Stefan Brüns <stefan.bru...@rwth-aachen.de> Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- Changes in v4: - Fix config initialization Changes in v3: None Changes in v2: - Store burst lengths in config inste

  1   2   3   4   >