Re: [PATCH 3/3] iio: wrapper: unit-converter: new driver

2018-03-27 Thread Peter Rosin
On 2018-03-27 15:22, Jonathan Cameron wrote: > On Tue, 27 Mar 2018 09:42:40 +0200 > Peter Rosin wrote: >> On 2018-03-24 15:03, Jonathan Cameron wrote: >>> On Mon, 19 Mar 2018 18:02:46 +0100 >>> Peter Rosin wrote: >>>> + if (iio_channel_has_info(pchan

Re: [RFC PATCH 1/2] i2c: Add i2c_verify_device_id() to verify device id

2018-04-08 Thread Peter Rosin
;> Use that function to verify the device ID of a given device. > > I am very open to these patches, just... > >> >> Cc: Peter Rosin >> Signed-off-by: Guenter Roeck >> --- >> RFC: >> - Compile tested only > > ... I would really like to have

Re: [RFC PATCH 1/2] i2c: Add i2c_verify_device_id() to verify device id

2018-04-08 Thread Peter Rosin
Sorry for replying to self... On 2018-04-08 11:08, Peter Rosin wrote: > On 2018-04-08 09:34, Wolfram Sang wrote: >> Hi, >> >> On Mon, Mar 19, 2018 at 09:10:58AM -0700, Guenter Roeck wrote: >>> Commit dde67eb1beeb ("i2c: add i2c_get_device_id() to get the s

Re: [PATCH linux dev-4.16 v2] i2c: muxes: pca9641: new driver

2018-04-11 Thread Peter Rosin
Hi Ken, It's been a couple of weeks and I wondered if you are making any progress? Simple lack of time perhaps, or are you stuck and need help? Cheers, Peter On 2018-03-20 10:31, Peter Rosin wrote: > On 2018-03-20 07:19, Ken Chen wrote: >> Signed-off-by: Ken Chen > > Ok,

Re: [PATCH 1/4] eeprom: at24: don't assign the i2c ID table to at24_driver

2018-04-11 Thread Peter Rosin
On 2018-04-10 15:12, Bartosz Golaszewski wrote: > We switched to using probe_new(), so this is no longer used > by i2c core. It seems to be used in i2c_device_match() ??? This could easily be me not understanding something... Cheers, Peter > Signed-off-by: Bartosz Golaszewski > --- > drivers/

Re: [PATCH 1/4] eeprom: at24: don't assign the i2c ID table to at24_driver

2018-04-11 Thread Peter Rosin
On 2018-04-11 12:09, Bartosz Golaszewski wrote: > 2018-04-11 11:56 GMT+02:00 Peter Rosin : >> On 2018-04-10 15:12, Bartosz Golaszewski wrote: >>> We switched to using probe_new(), so this is no longer used >>> by i2c core. >> >> It seems to be used in i2c_dev

Re: [PATCH 4/4] eeprom: at24: provide a separate routine for creating dummy i2c clients

2018-04-11 Thread Peter Rosin
On 2018-04-10 15:12, Bartosz Golaszewski wrote: > Move the code responsible for creating the dummy i2c clients used by > chips taking multiple slave addresses to a separate function. > > Signed-off-by: Bartosz Golaszewski > --- > drivers/misc/eeprom/at24.c | 47 ++

[PATCH 2/2] ASoC: tfa9879: switch to using .probe_new

2018-04-11 Thread Peter Rosin
Use the new probe style for i2c drivers. Signed-off-by: Peter Rosin --- sound/soc/codecs/tfa9879.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/tfa9879.c b/sound/soc/codecs/tfa9879.c index e7ca764b5729..15c769528d6d 100644 --- a/sound/soc/codecs

[PATCH 1/2] ASoC: max9860: switch to using .probe_new

2018-04-11 Thread Peter Rosin
Use the new probe style for i2c drivers. Signed-off-by: Peter Rosin --- sound/soc/codecs/max9860.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/max9860.c b/sound/soc/codecs/max9860.c index a2dc6a47f466..376bd48e4790 100644 --- a/sound/soc/codecs

[PATCH] mux: adg792a: switch to using .probe_new

2018-04-11 Thread Peter Rosin
Use the new probe style for i2c drivers. Signed-off-by: Peter Rosin --- drivers/mux/adg792a.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mux/adg792a.c b/drivers/mux/adg792a.c index 6a8725cf3d71..e8fc2fc1ab09 100644 --- a/drivers/mux/adg792a.c +++ b/drivers

[PATCH 1/2] iio: potentiometer: mcp4018: switch to using .probe_new

2018-04-11 Thread Peter Rosin
Use the new probe style for i2c drivers. Signed-off-by: Peter Rosin --- drivers/iio/potentiometer/mcp4018.c | 41 ++--- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/drivers/iio/potentiometer/mcp4018.c b/drivers/iio/potentiometer/mcp4018.c

[PATCH 2/2] iio: potentiometer: mcp4531: switch to using .probe_new

2018-04-11 Thread Peter Rosin
Use the new probe style for i2c drivers. Signed-off-by: Peter Rosin --- drivers/iio/potentiometer/mcp4531.c | 145 ++-- 1 file changed, 72 insertions(+), 73 deletions(-) diff --git a/drivers/iio/potentiometer/mcp4531.c b/drivers/iio/potentiometer/mcp4531.c

[PATCH 2/2] iio: afe: unit-converter: add support for adi,lt6106

2018-04-11 Thread Peter Rosin
This is a current sense amplifier from Analog Devices. Signed-off-by: Peter Rosin --- drivers/iio/afe/Kconfig | 3 +- drivers/iio/afe/iio-unit-converter.c | 54 2 files changed, 56 insertions(+), 1 deletion(-) diff --git a/drivers/iio/afe

[PATCH v3 0/2] iio: add unit converter

2018-04-11 Thread Peter Rosin
in". In the end I went with the resistors since while the normal case is an integer gain, that may not always be the case. And when it's not, that could get tricky. But I'm open for arguments on that. Cheers, Peter Peter Rosin (2): dt-bindings: iio: afe: add binding for adi,lt6

[PATCH 1/2] dt-bindings: iio: afe: add binding for adi,lt6106

2018-04-11 Thread Peter Rosin
This is a current sense amplifier from Analog Devices. Signed-off-by: Peter Rosin --- .../devicetree/bindings/iio/afe/adi,lt6106.txt | 50 ++ MAINTAINERS| 1 + 2 files changed, 51 insertions(+) create mode 100644 Documentation

Re: [PATCH] mtd: nand: raw: atmel: add module param to avoid using dma

2018-04-11 Thread Peter Rosin
ers, Peter On 2018-04-03 09:18, Boris Brezillon wrote: > On Tue, 3 Apr 2018 08:11:30 +0200 > Peter Rosin wrote: > >> On 2018-04-02 22:20, Boris Brezillon wrote: >>> On Mon, 2 Apr 2018 21:28:43 +0200 >>> Boris Brezillon wrote: >>> >>&g

Re: [PATCH] mtd: nand: raw: atmel: add module param to avoid using dma

2018-04-11 Thread Peter Rosin
On 2018-04-11 16:59, Boris Brezillon wrote: > On Wed, 11 Apr 2018 16:44:10 +0200 > Peter Rosin wrote: > >> Hi Nicolas, >> >> Boris asked for your input on this (the datasheet difference appears to >> have no bearing on the issue) elsewhere in the tree of messag

Re: [PATCH] mtd: nand: raw: atmel: add module param to avoid using dma

2018-04-12 Thread Peter Rosin
On 2018-04-11 17:34, Nicolas Ferre wrote: > On 11/04/2018 at 16:44, Peter Rosin wrote: >> Hi Nicolas, >> >> Boris asked for your input on this (the datasheet difference appears to >> have no bearing on the issue) elsewhere in the tree of messages. It's >> now

Re: [PATCH 2/2] iio: afe: unit-converter: add support for adi,lt6106

2018-04-12 Thread Peter Rosin
On 2018-04-11 17:43, Andrew F. Davis wrote: > On 04/11/2018 09:15 AM, Peter Rosin wrote: >> This is a current sense amplifier from Analog Devices. >> >> Signed-off-by: Peter Rosin >> --- >> drivers/iio/afe/Kconfig | 3 +- >> dr

Re: [PATCH 2/2] iio: afe: unit-converter: add support for adi,lt6106

2018-04-12 Thread Peter Rosin
On 2018-04-11 18:13, Andrew F. Davis wrote: > On 04/11/2018 10:51 AM, Lars-Peter Clausen wrote: >> On 04/11/2018 05:43 PM, Andrew F. Davis wrote: >>> On 04/11/2018 09:15 AM, Peter Rosin wrote: >>>> This is a current sense amplifier from Analog Devices. >&g

Re: [PATCH v2 0/3] eeprom: at24: last bits of the big refactoring

2018-04-12 Thread Peter Rosin
ped patch 1/4 because id_table is still needed as pointed out by > Peter Rosin > - fixed patch 3/3: we need to free the dummy client if regmap_init fails > > Bartosz Golaszewski (3): > eeprom: at24: use devm_nvmem_register() > eeprom: at24: provide and use a helper for relea

[PATCH v2 3/5] ASoC: max9860: switch to SPDX license tag

2018-04-12 Thread Peter Rosin
It's less overhead, clearer and generally neater. Signed-off-by: Peter Rosin --- sound/soc/codecs/max9860.c | 10 +- sound/soc/codecs/max9860.h | 10 +- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/sound/soc/codecs/max9860.c b/sound/soc/codecs/max9860.c

Re: [PATCH 2/2] ASoC: tfa9879: switch to using .probe_new

2018-04-12 Thread Peter Rosin
On 2018-04-12 18:16, Mark Brown wrote: > On Wed, Apr 11, 2018 at 02:42:38PM +0200, Peter Rosin wrote: > >> Use the new probe style for i2c drivers. > This doesn't apply against current code, please check and resend. That's not my fault. Somebody forgot to drop a note wit

[PATCH v2 1/5] ASoC: max9860: fix whitespace issues caused by mindless conversion

2018-04-12 Thread Peter Rosin
Long lines and bad alignment disturbs the reading pleasure. Signed-off-by: Peter Rosin --- sound/soc/codecs/max9860.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/max9860.c b/sound/soc/codecs/max9860.c index 5bbf889ad98e..53448b7b7b28 100644 --- a

[PATCH v2 4/5] ASoC: tfa9879: switch to SPDX license tag

2018-04-12 Thread Peter Rosin
It's less overhead, clearer and generally neater. Signed-off-by: Peter Rosin --- sound/soc/codecs/tfa9879.c | 7 +-- sound/soc/codecs/tfa9879.h | 7 +-- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/sound/soc/codecs/tfa9879.c b/sound/soc/codecs/tfa9879.c

[PATCH v2 5/5] ASoC: tfa9879: switch to using .probe_new

2018-04-12 Thread Peter Rosin
Use the new probe style for i2c drivers. Signed-off-by: Peter Rosin --- sound/soc/codecs/tfa9879.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/tfa9879.c b/sound/soc/codecs/tfa9879.c index 4d9b3f393808..d686e04bc5c7 100644 --- a/sound/soc/codecs

[PATCH v2 2/5] ASoC: tfa9879: fix whitespace issues caused by mindless conversion

2018-04-12 Thread Peter Rosin
Long lines and bad alignment disturbs the reading pleasure. Signed-off-by: Peter Rosin --- sound/soc/codecs/tfa9879.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/sound/soc/codecs/tfa9879.c b/sound/soc/codecs/tfa9879.c index 6d213c6d3920

Re: [PATCH 2/2] iio: afe: unit-converter: add support for adi,lt6106

2018-04-12 Thread Peter Rosin
On 2018-04-12 17:35, Andrew F. Davis wrote: > On 04/12/2018 09:29 AM, Peter Rosin wrote: >> On 2018-04-11 18:13, Andrew F. Davis wrote: >>> On 04/11/2018 10:51 AM, Lars-Peter Clausen wrote: >>>> On 04/11/2018 05:43 PM, Andrew F. Davis wrote: >>>>&

Re: [PATCH linux dev-4.16 v2] i2c: muxes: pca9641: new driver

2018-04-13 Thread Peter Rosin
On 2018-04-13 08:59, ChenKenYY 陳永營 TAO wrote: > Hi Peter, > > Sorry for late. Here has some event at my company which needs to pause > this work. > > If the status changed, I will update my patch. No worries, I just want to know how to handle my preparatory patches. If nothing changes, I think I

[PATCH v3 0/2] ASoC: max9860/tfa9879: switch to SPDX license tag

2018-04-13 Thread Peter Rosin
On 2018-04-13 13:19, Mark Brown wrote: > On Thu, Apr 12, 2018 at 11:14:35PM +0200, Peter Rosin wrote: > >> @@ -1,3 +1,4 @@ >> +// SPDX-License-Identifier: GPL-2.0 >> /* >> * Driver for the MAX9860 Mono Audio Voice Codec >> * > > Please don

[PATCH v3 2/2] ASoC: tfa9879: switch to SPDX license tag

2018-04-13 Thread Peter Rosin
It's less overhead, clearer and generally neater. Signed-off-by: Peter Rosin --- sound/soc/codecs/tfa9879.c | 18 ++ sound/soc/codecs/tfa9879.h | 7 +-- 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/sound/soc/codecs/tfa9879.c b/sound/soc/codecs/tfa9

[PATCH v3 1/2] ASoC: max9860: switch to SPDX license tag

2018-04-13 Thread Peter Rosin
It's less overhead, clearer and generally neater. Signed-off-by: Peter Rosin --- sound/soc/codecs/max9860.c | 31 +++ sound/soc/codecs/max9860.h | 10 +- 2 files changed, 12 insertions(+), 29 deletions(-) diff --git a/sound/soc/codecs/max9860.c b/soun

Re: [RFC PATCH 1/2] i2c: Add i2c_verify_device_id() to verify device id

2018-03-19 Thread Peter Rosin
On 2018-03-19 19:48, Guenter Roeck wrote: > On Mon, Mar 19, 2018 at 05:47:05PM +0100, Peter Rosin wrote: >> I also wonder if NXP will ever release a chip with part-id 0 and >> die-revision 0? If not, an all zero struct i2c_device_identity >> could be used instead of manufactur

Re: [RFC PATCH 1/2] i2c: Add i2c_verify_device_id() to verify device id

2018-03-19 Thread Peter Rosin
On 2018-03-19 21:50, Guenter Roeck wrote: > On Mon, Mar 19, 2018 at 08:55:55PM +0100, Peter Rosin wrote: >> On 2018-03-19 19:48, Guenter Roeck wrote: >>> On Mon, Mar 19, 2018 at 05:47:05PM +0100, Peter Rosin wrote: >>>> I also wonder if NXP will ever release a ch

[PATCH 3/3] i2c: mux: pca9541: prepare for PCA9641 support

2018-03-20 Thread Peter Rosin
Make the arbitrate and release_bus implementation chip specific. Signed-off-by: Peter Rosin --- drivers/i2c/muxes/i2c-mux-pca9541.c | 62 +++-- 1 file changed, 45 insertions(+), 17 deletions(-) diff --git a/drivers/i2c/muxes/i2c-mux-pca9541.c b/drivers/i2c

[PATCH 2/3] i2c: mux: pca9541: namespace cleanup

2018-03-20 Thread Peter Rosin
In preparation for PCA9641 support, convert the mybus and busoff macros to functions, and in the process prefix them with pca9541_. Also prefix remaining chip specific macros with PCA9541_. Signed-off-by: Peter Rosin --- drivers/i2c/muxes/i2c-mux-pca9541.c | 26 +++--- 1

Re: [PATCH linux dev-4.16 v2] i2c: muxes: pca9641: new driver

2018-03-20 Thread Peter Rosin
On 2018-03-20 07:19, Ken Chen wrote: > Signed-off-by: Ken Chen Ok, now that you are not adding a new driver, but instead modify an existing driver, the subject I requested in no longer relevant. Now I would like to see: i2c: mux: pca9541: add support for PCA9641 chips Or something like that. >

[PATCH 1/3] i2c: mux: pca9541: use the BIT macro

2018-03-20 Thread Peter Rosin
Because it looks nice! Signed-off-by: Peter Rosin --- drivers/i2c/muxes/i2c-mux-pca9541.c | 29 +++-- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/drivers/i2c/muxes/i2c-mux-pca9541.c b/drivers/i2c/muxes/i2c-mux-pca9541.c index 6a39adaf433f

Re: [PATCH 2/3] i2c: mux: pca9541: namespace cleanup

2018-03-20 Thread Peter Rosin
On 2018-03-20 14:20, Guenter Roeck wrote: > On 03/20/2018 02:31 AM, Peter Rosin wrote: >> +static int pca9541_mybus(int ctl) > > bool ? > >> +{ >> +if (!(ctl & PCA9541_MYBUS)) >> +return 1; > > true ? > >

Re: [PATCH 2/3] i2c: mux: pca9541: namespace cleanup

2018-03-20 Thread Peter Rosin
On 2018-03-21 00:24, Vladimir Zapolskiy wrote: > Hi Peter, > > On 03/20/2018 11:31 AM, Peter Rosin wrote: >> In preparation for PCA9641 support, convert the mybus and busoff macros >> to functions, and in the process prefix them with pca9541_. Also prefix >> remainin

Re: [PATCH 2/3] i2c: mux: pca9541: namespace cleanup

2018-03-21 Thread Peter Rosin
On 2018-03-21 07:54, Vladimir Zapolskiy wrote: > Hi Peter, > > On 03/21/2018 07:53 AM, Peter Rosin wrote: >> On 2018-03-21 00:24, Vladimir Zapolskiy wrote: >>> Hi Peter, >>> >>> On 03/20/2018 11:31 AM, Peter Rosin wrote: >>>> In preparation fo

Re: [PATCH 3/3] i2c: mux: pca9541: prepare for PCA9641 support

2018-03-21 Thread Peter Rosin
On 2018-03-21 08:01, Vladimir Zapolskiy wrote: > On 03/21/2018 03:19 AM, Guenter Roeck wrote: >> On 03/20/2018 04:17 PM, Vladimir Zapolskiy wrote: >>> Hi Peter, Ken, >>> >>> On 03/20/2018 11:32 AM, Peter Rosin wrote: >>>> Make the arbitr

[PATCH 1/3] ARM: dts: at91: fixes uart pinctrl, set pullup on rx, clear pullup on tx

2018-03-21 Thread Peter Rosin
Remove pullup on uart TX signals, they are push-pull outputs thus pullups are pointless. Add pullup on uart RX signals, they prevent the RX signals to be left floating and so consuming a useless extra amount of power in crowbarred state if nothing is connected to RX. Signed-off-by: Peter Rosin

[PATCH 3/3] ARM: dts: at91sam9260: pullup rx on usart0

2018-03-21 Thread Peter Rosin
For consistency with all other serial pins, add this pullup. It also prevents the signal from floating and so consuming a useless extra amount of power in crowbarred state if nothing is connected to RX. Signed-off-by: Peter Rosin --- arch/arm/boot/dts/at91sam9260.dtsi | 4 ++-- 1 file changed

[PATCH 2/3] ARM: dts: at91rm9200: pullup rx on uart0

2018-03-21 Thread Peter Rosin
For consistency with all other serial pins, add this pullup. It also prevents the signal from floating and so consuming a useless extra amount of power in crowbarred state if nothing is connected to RX. Signed-off-by: Peter Rosin --- arch/arm/boot/dts/at91rm9200.dtsi | 4 ++-- 1 file changed, 2

[PATCH 0/3] ARM: dts: at91: cleanup pullup on uarts

2018-03-21 Thread Peter Rosin
sign of confusion, so I lumped all those fixes in one big patch. One or two of the removed comments with duplicate info where wrong as well, i.e. the info was supposed to be duplicate but wasn't. Cheers, Peter Peter Rosin (3): ARM: dts: at91: fixes uart pinctrl, set pullup on rx, clear p

Re: [PATCH v3 05/11] dt-bindings: i3c: Document core bindings

2018-03-23 Thread Peter Rosin
On 2018-03-23 12:00, Boris Brezillon wrote: > From: Boris Brezillon > > A new I3C subsystem has been added and a generic description has been > created to represent the I3C bus and the devices connected on it. > > Document this generic representation. > > Signed-off-by: Boris Brezillon > --- >

Re: [PATCH 0/3] iio: add unit converter

2018-03-23 Thread Peter Rosin
On 2018-03-23 14:14, Jonathan Cameron wrote: > On Mon, 19 Mar 2018 18:02:43 +0100 > Peter Rosin wrote: > >> Hi! >> >> This moves the iio-mux driver to a new category, since I think >> it will be the single driver in that category forever, and now >> I

Re: [PATCH v2 0/5] allow override of bus format in bridges

2018-04-09 Thread Peter Rosin
On 2018-04-04 14:35, Peter Rosin wrote: > On 2018-04-04 11:07, Laurent Pinchart wrote: >> Hi Daniel, >> >> On Wednesday, 4 April 2018 09:34:41 EEST Daniel Vetter wrote: >>> On Wed, Apr 4, 2018 at 12:28 AM, Laurent Pinchart wrote: >>>> On Wednesday, 28 Ma

[PATCH 0/5] Add tda998x (HDMI) support to atmel-hlcdc

2018-04-09 Thread Peter Rosin
that). Anyway, this series solves some real issues for my HW. Cheers, Peter Peter Rosin (5): dt-bindings: display: bridge: lvds-transmitter: add ti,ds90c185 dt-bindings: display: atmel: add optional output-mode property drm/atmel-hlcdc: allow overriding the output mode drm/atmel-hlcdc: ad

[PATCH 2/5] dt-bindings: display: atmel: add optional output-mode property

2018-04-09 Thread Peter Rosin
Useful for beating cases where an output mode selection heuristic fails. Signed-off-by: Peter Rosin --- Documentation/devicetree/bindings/display/atmel/hlcdc-dc.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/display/atmel/hlcdc-dc.txt b

[PATCH 3/5] drm/atmel-hlcdc: allow overriding the output mode

2018-04-09 Thread Peter Rosin
connector does not advertize and format at all. Signed-off-by: Peter Rosin --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 12 ++-- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 19 +++ drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h | 8 3 files changed, 33

[PATCH 1/5] dt-bindings: display: bridge: lvds-transmitter: add ti,ds90c185

2018-04-09 Thread Peter Rosin
Start list of actual chips compatible with "lvds-encoder". Reviewed-by: Laurent Pinchart Signed-off-by: Peter Rosin --- .../devicetree/bindings/display/bridge/lvds-transmitter.txt | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/

[PATCH 4/5] drm/atmel-hlcdc: add support for connecting to tda998x HDMI encoder

2018-04-09 Thread Peter Rosin
When the of-graph points to a tda998x-compatible HDMI encoder, register as a component master and bind to the encoder/connector provided by the tda998x driver. Signed-off-by: Peter Rosin --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 81 -- drivers/gpu/drm/atmel-hlcdc

[PATCH 5/5] drm/atmel-hlcdc: fix broken release date

2018-04-09 Thread Peter Rosin
Bump the minor version while at it. Signed-off-by: Peter Rosin --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c index b411038890a9

Re: [PATCH v2 1/2] dt-bindings: iio: afe: add current-sense-cuicuit and voltage-divider

2018-04-09 Thread Peter Rosin
On 2018-04-08 18:50, Jonathan Cameron wrote: > On Tue, 3 Apr 2018 17:36:34 +0200 > Peter Rosin wrote: > > circuit in the patch title is spelled wrong. > >> An ADC is often used to measure other quantities indirectly. These >> bindings describe two cases, a current th

Re: [PATCH 0/5] Add tda998x (HDMI) support to atmel-hlcdc

2018-04-09 Thread Peter Rosin
On 2018-04-09 13:17, Russell King - ARM Linux wrote: > On Mon, Apr 09, 2018 at 12:59:13PM +0200, Peter Rosin wrote: >> During this, I found that the tda998x driver never sets the format in >> the connector display_info. Thus, the atmel-hlcdc driver fails to select >> outpu

Re: [PATCH 0/5] Add tda998x (HDMI) support to atmel-hlcdc

2018-04-09 Thread Peter Rosin
On 2018-04-09 14:02, Russell King - ARM Linux wrote: > On Mon, Apr 09, 2018 at 01:44:22PM +0200, Peter Rosin wrote: >> On 2018-04-09 13:17, Russell King - ARM Linux wrote: >>> On Mon, Apr 09, 2018 at 12:59:13PM +0200, Peter Rosin wrote: >>>> During this, I found that

Re: [PATCH v2 0/5] allow override of bus format in bridges

2018-04-09 Thread Peter Rosin
On 2018-04-09 14:51, Laurent Pinchart wrote: > Hi Peter, > > On Monday, 9 April 2018 10:04:05 EEST Peter Rosin wrote: >> On 2018-04-04 14:35, Peter Rosin wrote: >>> On 2018-04-04 11:07, Laurent Pinchart wrote: >>>> On Wednesday, 4 April 2018 09:34:41 EEST Dani

[PATCH v3 0/2] iio: add unit converter

2018-04-10 Thread Peter Rosin
writes to _RAW (sorry Phil) as I don't need it and have not tested it. It's easy to add back if needed. - Fail if the source channel does not support _RAW or _SCALE. - Fix various spelling issues. - Fix various code style issues. Peter Rosin (2): dt-bindings: iio: afe: add current-

[PATCH v3 1/2] dt-bindings: iio: afe: add current-sense-shunt and voltage-divider

2018-04-10 Thread Peter Rosin
An ADC is often used to measure other quantities indirectly. These bindings describe two cases, a current through a shunt resistor, and a "big" voltage measured with the help of a voltage divider. Signed-off-by: Peter Rosin --- .../bindings/iio/afe/current-sense-shunt.txt

[PATCH v3 2/2] iio: afe: unit-converter: new driver

2018-04-10 Thread Peter Rosin
the current through the resistor. This driver solves both problems by allowing to linearly scale a channel and by allowing changes to the type of the channel. Or both. Signed-off-by: Peter Rosin --- MAINTAINERS | 1 + drivers/iio/Kconfig | 1

Re: [PATCH] MAINTAINERS: remove me as maintainer for I2C host drivers

2018-04-10 Thread Peter Rosin
On 2018-04-10 16:11, Wolfram Sang wrote: > The number of I2C host controller drivers keeps increasing, and although > I had some success acquiring specific driver maintainers, my bandwidth > is by far not enough to act as a fallback for the rest of the drivers. > To reflect this status-quo in MAINT

Re: [PATCH] MAINTAINERS: remove me as maintainer for I2C host drivers

2018-04-10 Thread Peter Rosin
On 2018-04-10 17:52, Wolfram Sang wrote: > Hi Peter, > >> Hmm, I think you are ducking out from the i2c-mux-pinctrl driver as well. >> Was that the intent? > > Oops, nope! Sorry, I just forgot about the demux (I think you mean that > one) driver and will create a seperate entry for it. Right, I

[PATCH 0/2] iio: potentiometer: mcp4018: new driver

2018-03-08 Thread Peter Rosin
Hi! Here's an iio driver for Microchip MCP4018 potentiometers, that also covers a few variants (MCP4017 and MCP4019). I found no existing potentiometer driver with a compatible interface to piggyback on, so I did a new driver. Cheers, Peter Peter Rosin (2): dt-bindings: trivial: add va

[PATCH 1/2] dt-bindings: trivial: add various mcp4017/18/19 potentiometers

2018-03-08 Thread Peter Rosin
They come in 5 kOhm, 10 kOhm, 50 kOhm and 100 kOhm variations. Signed-off-by: Peter Rosin --- Documentation/devicetree/bindings/trivial-devices.txt | 12 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/trivial-devices.txt b/Documentation/devicetree

[PATCH 2/2] iio: potentiometer: mcp4018: driver for Microchip digital potentiometers

2018-03-08 Thread Peter Rosin
Add support for Microchip digital potentiometers and rheostats MCP4017, MCP4018, MCP4019 They all have one wiper with 128 steps and come in 5, 10, 50 and 100 kOhm variations. Datasheet: http://www.microchip.com/downloads/en/DeviceDoc/22147a.pdf Signed-off-by: Peter Rosin

Re: [PATCH 1/2] dt-bindings: i2c-omap: Add new compatible for AM654 SoCs

2018-09-26 Thread Peter Rosin
On 2018-09-26 13:57, Vignesh R wrote: > AM654 SoCs have similar I2C IP as OMAP SoCs. Add new compatible to > handle AM654 SoCs. > > Signed-off-by: Vignesh R > --- > Documentation/devicetree/bindings/i2c/i2c-omap.txt | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/Docu

Re: [PATCH] dt-bindings: i2c: Use correct vendor prefix for Atmel

2018-11-23 Thread Peter Rosin
On 2018-11-23 13:10, Thierry Reding wrote: > From: Thierry Reding > > The "at," prefix was never correct for Atmel, so fix the few occurrences > that got it wrong. Use "atmel," instead. Fully agreed. However, given that atmel,24c08 is documented in .../eeprom/at24.txt I think it would be better

Re: [PATCH v2] dt-bindings: i2c: Use correct vendor prefix for Atmel

2018-11-27 Thread Peter Rosin
instead. >> >> While at it, remove the at,24c08 compatible string from the list of >> trivial devices because it is already documented in eeprom/at24.txt. >> >> Signed-off-by: Thierry Reding > > Peter, I'd assume you are okay with me applying the patch directly? Absolutely, go ahead. Acked-by: Peter Rosin Cheers, Peter

Re: [PATCH v3] i2c: mux: remove duplicated i2c_algorithm

2018-11-27 Thread Peter Rosin
On 2018-11-18 12:13, Luca Ceresoli wrote: > Hi Peter, > > On 10/10/18 17:48, Luca Ceresoli wrote: >> Hi Peter, >> >> On 08/10/2018 23:43, Peter Rosin wrote: >>> On 2018-10-03 17:19, Luca Ceresoli wrote: >>>> From: Luca Ceresoli >>>> >

[PATCH] ARM: dts: at91: nattis: initialize the BLON pin as output-low early

2018-11-20 Thread Peter Rosin
. Signed-off-by: Peter Rosin --- arch/arm/boot/dts/at91-nattis-2-natte-2.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/at91-nattis-2-natte-2.dts b/arch/arm/boot/dts/at91-nattis-2-natte-2.dts index 911d2c7c1500..0f6d335125e2 100644 --- a/arch/arm/boot/dts/at91-nattis

Re: [PATCH] dt-bindings: i2c: use correct vendor prefix for atmel's at24 EEPROMs

2018-12-06 Thread Peter Rosin
On 2018-12-06 10:45, Bartosz Golaszewski wrote: > This is a follow-up to Thierry's patch which missed a few occurences. > > Cc: Thierry Reding > Signed-off-by: Bartosz Golaszewski Acked-by: Peter Rosin Wolfram, you can take this one as well, of course. Cheers, Peter >

Re: [2nd RESEND PATCH 1/2] i2c: enable buses to save their clock frequency in adapter

2018-12-07 Thread Peter Rosin
On 2018-12-07 12:29, tudor.amba...@microchip.com wrote: > From: "tudor.amba...@microchip.com" > > The clock-frequency property is not mandatory for the i2c buses. If it's > not present in the device tree, the buses __usually__ assume it's 100kHZ > (see altera, at91, axxia, etc.). Broadcom uses a

Re: [PATCH] i2c: mux: demux-pinctrl: handle failure case of devm_kstrdup()

2018-12-04 Thread Peter Rosin
Hi! This patch looks like a good idea. However, a nitpick below. On 2018-12-01 11:01, Nicholas Mc Guire wrote: > devm_kstrdup() may return NULL if internal allocation failed. > Thus using name, value is unsafe without being checked. As > i2c_demux_pinctrl_probe() can return -ENOMEM in other cas

Re: [PATCH] i2c: mux: demux-pinctrl: handle failure case of devm_kstrdup()

2018-12-04 Thread Peter Rosin
On 2018-12-04 13:13, Nicholas Mc Guire wrote: > On Tue, Dec 04, 2018 at 11:16:59AM +0000, Peter Rosin wrote: >> Hi! >> >> This patch looks like a good idea. However, a nitpick below. >> >> On 2018-12-01 11:01, Nicholas Mc Guire wrote: >>> devm_kstrdu

Re: [PATCH] i2c: mux: demux-pinctrl: handle failure case of devm_kstrdup()

2018-12-04 Thread Peter Rosin
Ho hmm. Had another look at this patch, or rather, the context of the patch so not really related, but... On 2018-12-01 11:01, Nicholas Mc Guire wrote: > devm_kstrdup() may return NULL if internal allocation failed. > Thus using name, value is unsafe without being checked. As > i2c_demux_pinctrl

Re: [PATCH] i2c: mux: demux-pinctrl: handle failure case of devm_kstrdup()

2018-12-04 Thread Peter Rosin
On 2018-12-04 15:25, Nicholas Mc Guire wrote: > On Tue, Dec 04, 2018 at 01:49:11PM +0000, Peter Rosin wrote: >> On 2018-12-04 13:13, Nicholas Mc Guire wrote: >>> On Tue, Dec 04, 2018 at 11:16:59AM +, Peter Rosin wrote: >>>> Hi! >>>> >>>>

Re: [PATCH] i2c: mux: demux-pinctrl: handle failure case of devm_kstrdup()

2018-12-04 Thread Peter Rosin
On 2018-12-04 15:36, Nicholas Mc Guire wrote: > On Tue, Dec 04, 2018 at 02:11:33PM +0000, Peter Rosin wrote: >> Ho hmm. Had another look at this patch, or rather, the context of the >> patch so not really related, but... >> >> On 2018-12-01 11:01, Nicholas Mc Guire wr

Re: [PATCH v3 2/6] arm64: dts: actions: Add Actions Semiconductor S900 I2C controller nodes

2018-06-30 Thread Peter Rosin
On June 30, 2018 3:33:26 PM GMT+02:00, Manivannan Sadhasivam wrote: >Add I2C controller nodes for Actions Semiconductor S900 SoC. > >Signed-off-by: Manivannan Sadhasivam >--- > arch/arm64/boot/dts/actions/s900.dtsi | 60 +++ > 1 file changed, 60 insertions(+) > >diff --git

Re: [PATCH v3 5/6] i2c: Add Actions Semiconductor Owl family S900 I2C driver

2018-06-30 Thread Peter Rosin
On June 30, 2018 3:33:29 PM GMT+02:00, Manivannan Sadhasivam wrote: >Add Actions Semiconductor Owl family S900 I2C driver. > >Signed-off-by: Manivannan Sadhasivam >--- > drivers/i2c/busses/Kconfig | 7 + > drivers/i2c/busses/Makefile | 1 + > drivers/i2c/busses/i2c-owl.c | 477 +

Re: [PATCH 1/5] i2c: smbus: add unlocked __i2c_smbus_xfer variant

2018-07-01 Thread Peter Rosin
On July 1, 2018 2:13:20 PM GMT+02:00, Wolfram Sang wrote: >On Wed, Jun 27, 2018 at 09:08:18AM +0200, Wolfram Sang wrote: >> >> > Because, thinking more about it, the problem with those allocs are >not >> > related to the locking details; adding another trylock to the mix >just >> > makes it so mu

Re: [PATCH v2 2/3] i2c: Add helper to ease DMA handling

2018-07-08 Thread Peter Rosin
On 2018-07-07 11:29, Jun Gao wrote: > From: Jun Gao > > This function is needed by i2c_get_dma_safe_msg_buf() potentially. > It is used to free DMA safe buffer when DMA operation fails. > > Signed-off-by: Jun Gao > --- > drivers/i2c/i2c-core-base.c | 14 ++ > include/linux/i2c.h

Re: [PATCH v2 2/3] i2c: Add helper to ease DMA handling

2018-07-08 Thread Peter Rosin
On 2018-07-08 13:58, Peter Rosin wrote: > On 2018-07-07 11:29, Jun Gao wrote: >> From: Jun Gao >> >> This function is needed by i2c_get_dma_safe_msg_buf() potentially. >> It is used to free DMA safe buffer when DMA operation fails. >> >> Signed-off-by: J

Re: [PATCH 1/5] i2c: smbus: add unlocked __i2c_smbus_xfer variant

2018-06-26 Thread Peter Rosin
On June 26, 2018 4:37:58 AM GMT+02:00, Wolfram Sang wrote: > >> This is not perfectly equivalent, since i2c_smbus_xfer was callable >from >> atomic/irq context if you happened to end up emulating SMBus with an >I2C >> transfer, and that is no longer the case with this patch. It is >unknown >> (to

Re: [PATCH 1/5] i2c: smbus: add unlocked __i2c_smbus_xfer variant

2018-06-26 Thread Peter Rosin
On June 26, 2018 3:46:07 PM GMT+02:00, Wolfram Sang wrote: >> I don't think it's that easy as I just thought about another problem >> with lifting the locking from the emulation function. It calls >> kzalloc(..., GFP_KERNEL), at least in some cases, and that's not a >> very good idea from atomic/i

Re: [PATCH v2 0/6] Add Actions Semi S900 I2C support

2018-06-28 Thread Peter Rosin
On June 28, 2018 8:10:36 PM GMT+02:00, Manivannan Sadhasivam wrote: >This patchset adds I2C controller support for Actions Semi S900 SoC. >This driver has been structured in a way such that there will be only >one controller driver for the whole OWL family series (S500, S700 and >S900 SoCs). > >T

Re: [PATCH v2 5/6] i2c: Add Actions Semi OWL family S900 I2C driver

2018-06-28 Thread Peter Rosin
On June 28, 2018 8:10:41 PM GMT+02:00, Manivannan Sadhasivam wrote: >Add Actions Semi OWL family S900 I2C driver. > >Signed-off-by: Manivannan Sadhasivam >--- > drivers/i2c/busses/Kconfig | 7 + > drivers/i2c/busses/Makefile | 1 + > drivers/i2c/busses/i2c-owl.c | 471 ++

Re: [PATCH v2 0/6] Add Actions Semi S900 I2C support

2018-06-28 Thread Peter Rosin
On June 29, 2018 6:44:39 AM GMT+02:00, Manivannan Sadhasivam wrote: >Hi Peter, > >On Fri, Jun 29, 2018 at 06:13:31AM +0200, Peter Rosin wrote: >> Hi! >> >> I don't know for sure, but over here the arch/arm64/boot/dts/actions >folder has no pinctrl nodes a

Re: [PATCH 1/3] i2c: mux: pca954x: merge calls to of_match_device and of_device_get_match_data

2018-05-24 Thread Peter Rosin
On 2018-05-21 11:49, Julia Lawall wrote: > Drop call to of_match_device, which is subsumed by the subsequent > call to of_device_get_match_data. The code becomes simpler, and a > temporary variable can be dropped. Thanks for your patch! Applied to i2c-mux/for-next Cheers, Peter

Re: [PATCH] i2c-mux-reg: Delete an error message for a failed memory allocation in i2c_mux_reg_probe_dt()

2018-05-24 Thread Peter Rosin
On 2018-02-01 17:24, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 1 Feb 2018 17:17:19 +0100 > > Omit an extra message for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring Applied to i2

[PATCH v3 0/2] Re: Problem: lockdep warning with nested instances of i2c-mux

2018-05-24 Thread Peter Rosin
Cheers, Peter Peter Rosin (2): rtmutex: allow specifying a subclass for nested locking i2c: mux: annotate the nested rt_mutex usage drivers/i2c/i2c-core-base.c | 2 +- drivers/i2c/i2c-mux.c | 4 ++-- include/linux/rtmutex.h | 7 +++ kernel/locking/rtm

[PATCH v3 2/2] i2c: mux: annotate the nested rt_mutex usage

2018-05-24 Thread Peter Rosin
/0x70 my2c_init+0xa2/0x1000 [my2c] do_one_initcall+0x51/0x192 do_init_module+0x62/0x216 load_module+0x20f9/0x2b50 SYSC_init_module+0x19a/0x1c0 SyS_init_module+0xe/0x10 do_syscall_64+0x6c/0x1a0 entry_SYSCALL_64_after_hwframe+0x42/0xb7 Reported-by: John Sperbeck Signed-off-by: Peter

[PATCH v3 1/2] rtmutex: allow specifying a subclass for nested locking

2018-05-24 Thread Peter Rosin
Needed for annotating rt_mutex locks. Signed-off-by: Peter Rosin --- include/linux/rtmutex.h | 7 +++ kernel/locking/rtmutex.c | 29 + 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/include/linux/rtmutex.h b/include/linux/rtmutex.h index

Re: [PATCH 1/2] i2c: ibm_iic: don't check number of messages in the driver

2018-05-24 Thread Peter Rosin
On 2018-05-20 08:50, Wolfram Sang wrote: > Since commit 1eace8344c02 ("i2c: add param sanity check to > i2c_transfer()"), the I2C core does this check now. We can remove it > from drivers. Reviewed-by: Peter Rosin > > Signed-off-by: Wolfram Sang > --- > > On

Re: [PATCH 2/2] i2c: opal: don't check number of messages in the driver

2018-05-24 Thread Peter Rosin
On 2018-05-20 08:50, Wolfram Sang wrote: > Since commit 1eace8344c02 ("i2c: add param sanity check to > i2c_transfer()") and b7f625840267 ("i2c: add quirk checks to core"), the > I2C core does this check now. We can remove it here. > > Signed-off-by: Wolf

Re: [PATCH] mtd: nand: raw: atmel: add module param to avoid using dma

2018-05-26 Thread Peter Rosin
On 2018-05-25 16:51, Tudor Ambarus wrote: > Hi, Peter, > > On 04/11/2018 06:34 PM, Nicolas Ferre wrote: >> I'll try to move forward with your detailed explanation and with my >> contacts within the "product" team internally. > > We have talked with the hardware team, looks like there is an error

Re: [PATCH] mtd: nand: raw: atmel: add module param to avoid using dma

2018-05-27 Thread Peter Rosin
On 2018-05-25 16:51, Tudor Ambarus wrote: > We think the best way is to keep LCD on DDR Ports 2 and 3 (8th and 9th > slaves), to have maximum bandwidth and to use DMA on DDR port 1 for NAND > (7th slave). Exactly how do I accomplish that? I can see how I can move the LCD between slave DDR port 2

Re: [PATCH] mtd: nand: raw: atmel: add module param to avoid using dma

2018-05-27 Thread Peter Rosin
On 2018-05-27 11:18, Peter Rosin wrote: > On 2018-05-25 16:51, Tudor Ambarus wrote: >> We think the best way is to keep LCD on DDR Ports 2 and 3 (8th and 9th >> slaves), to have maximum bandwidth and to use DMA on DDR port 1 for NAND >> (7th slave). > > Exactly how d

Re: [PATCH v2] usb: chipidea: Hook into mux framework to toggle usb switch

2018-05-14 Thread Peter Rosin
On 2018-04-18 07:48, yos...@codeaurora.org wrote: > On 2018-04-17 17:11, Peter Rosin wrote: >> On 2018-04-17 15:52, Yossi Mansharoff wrote: >>> On the db410c 96boards platform we have a TC7USB40MU on the board >>> to mux the D+/D- lines coming from the controller betw

<    1   2   3   4   5   6   7   8   9   10   >