[PATCH 01/21] i2c: algo: bit: make use of i2c_8bit_addr_from_msg

2018-05-14 Thread Peter Rosin
Because it looks neater. Signed-off-by: Peter Rosin --- drivers/i2c/algos/i2c-algo-bit.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/i2c/algos/i2c-algo-bit.c b/drivers/i2c/algos/i2c-algo-bit.c index 3df0efd69ae3..4a34f311e1ff 100644 --- a/drivers/i2c/algos/i2c

[PATCH 03/21] i2c: algo: pcf: make use of i2c_8bit_addr_from_msg

2018-05-14 Thread Peter Rosin
Because it looks neater. Signed-off-by: Peter Rosin --- drivers/i2c/algos/i2c-algo-pcf.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/i2c/algos/i2c-algo-pcf.c b/drivers/i2c/algos/i2c-algo-pcf.c index 270d84bfc2c6..bb60c1bd1f2d 100644 --- a/drivers/i2c/algos

[PATCH 05/21] i2c: axxia: make use of i2c_8bit_addr_from_msg

2018-05-14 Thread Peter Rosin
Because it looks neater. Signed-off-by: Peter Rosin --- drivers/i2c/busses/i2c-axxia.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-axxia.c b/drivers/i2c/busses/i2c-axxia.c index 13f07482ec68..f70b097fd567 100644 --- a/drivers/i2c/busses/i2c

[PATCH 07/21] i2c: efm32: make use of i2c_8bit_addr_from_msg

2018-05-14 Thread Peter Rosin
Because it looks neater. Signed-off-by: Peter Rosin --- drivers/i2c/busses/i2c-efm32.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-efm32.c b/drivers/i2c/busses/i2c-efm32.c index aa336ba89aa3..5f2bab878b2c 100644 --- a/drivers/i2c/busses/i2c-efm32

[PATCH 10/21] i2c: hix5hd2: make use of i2c_8bit_addr_from_msg

2018-05-14 Thread Peter Rosin
Because it looks neater. Signed-off-by: Peter Rosin --- drivers/i2c/busses/i2c-hix5hd2.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/i2c/busses/i2c-hix5hd2.c b/drivers/i2c/busses/i2c-hix5hd2.c index bb68957d3da5..399b64c4c620 100644 --- a/drivers/i2c

[PATCH 20/21] i2c: stu300: make use of i2c_8bit_addr_from_msg

2018-05-14 Thread Peter Rosin
Because it looks neater. Also restructure debug output for resends, since that code as a result is only handling debug output. Signed-off-by: Peter Rosin --- drivers/i2c/busses/i2c-stu300.c | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/drivers/i2c

[PATCH 15/21] i2c: ocores: make use of i2c_8bit_addr_from_msg

2018-05-14 Thread Peter Rosin
Because it looks neater. Signed-off-by: Peter Rosin --- drivers/i2c/busses/i2c-ocores.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c-ocores.c index 8c42ca7107b2..a540916689b2 100644 --- a/drivers/i2c/busses/i2c

[PATCH 21/21] i2c: xiic: make use of i2c_8bit_addr_from_msg

2018-05-14 Thread Peter Rosin
Because it looks neater. Signed-off-by: Peter Rosin --- drivers/i2c/busses/i2c-xiic.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/i2c/busses/i2c-xiic.c b/drivers/i2c/busses/i2c-xiic.c index c80527816ad0..1818c3b5c8d7 100644 --- a/drivers/i2c/busses

[PATCH 12/21] i2c: imx: make use of i2c_8bit_addr_from_msg

2018-05-14 Thread Peter Rosin
Because it looks neater. i2c_imx_dma_write and i2c_imx_write are always called with a write in msgs->flags, and i2c_imx_read with a read. Signed-off-by: Peter Rosin --- drivers/i2c/busses/i2c-imx.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/i2c/bus

[PATCH 17/21] i2c: qup: make use of i2c_8bit_addr_from_msg

2018-05-14 Thread Peter Rosin
Because it looks neater. qup_i2c_write_tx_fifo_v1 is always called with a write in qup->msg->flags. Signed-off-by: Peter Rosin --- drivers/i2c/busses/i2c-qup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-qup.c b/drivers/i2c/busses/i2c-qup.c

[PATCH 16/21] i2c: pasemi: make use of i2c_8bit_addr_from_msg

2018-05-14 Thread Peter Rosin
Because it looks neater. Signed-off-by: Peter Rosin --- drivers/i2c/busses/i2c-pasemi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-pasemi.c b/drivers/i2c/busses/i2c-pasemi.c index df1dbc92a024..55fd5c6f3cca 100644 --- a/drivers/i2c/busses/i2c

[PATCH 18/21] i2c: rcar: make use of i2c_8bit_addr_from_msg

2018-05-14 Thread Peter Rosin
Because it looks neater. Signed-off-by: Peter Rosin --- drivers/i2c/busses/i2c-rcar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-rcar.c b/drivers/i2c/busses/i2c-rcar.c index c6915b835396..17b91ddbe013 100644 --- a/drivers/i2c/busses/i2c-rcar.c

[PATCH 19/21] i2c: riic: make use of i2c_8bit_addr_from_msg

2018-05-14 Thread Peter Rosin
Because it looks neater. Signed-off-by: Peter Rosin --- drivers/i2c/busses/i2c-riic.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-riic.c b/drivers/i2c/busses/i2c-riic.c index 95c2f1ce3cad..5f1fca7880b1 100644 --- a/drivers/i2c/busses/i2c

[PATCH 13/21] i2c: kempld: make use of i2c_8bit_addr_from_msg

2018-05-14 Thread Peter Rosin
Because it looks neater. Signed-off-by: Peter Rosin --- drivers/i2c/busses/i2c-kempld.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-kempld.c b/drivers/i2c/busses/i2c-kempld.c index e879190b5d1d..1c874aaa0447 100644 --- a/drivers/i2c/busses

[PATCH 14/21] i2c: mxs: make use of i2c_8bit_addr_from_msg

2018-05-14 Thread Peter Rosin
Because it looks neater. Signed-off-by: Peter Rosin --- drivers/i2c/busses/i2c-mxs.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/i2c/busses/i2c-mxs.c b/drivers/i2c/busses/i2c-mxs.c index e617bd600794..f62ae3d42232 100644 --- a/drivers/i2c/busses/i2c

[PATCH 11/21] i2c: imx-lpi2c: make use of i2c_8bit_addr_from_msg

2018-05-14 Thread Peter Rosin
Because it looks neater. Signed-off-by: Peter Rosin --- drivers/i2c/busses/i2c-imx-lpi2c.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-imx-lpi2c.c b/drivers/i2c/busses/i2c-imx-lpi2c.c index e6da2c7a9a3e..159d23211600 100644 --- a/drivers/i2c

[PATCH 09/21] i2c: emev2: make use of i2c_8bit_addr_from_msg

2018-05-14 Thread Peter Rosin
Because it looks neater. Signed-off-by: Peter Rosin --- drivers/i2c/busses/i2c-emev2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-emev2.c b/drivers/i2c/busses/i2c-emev2.c index d2e84480fbe9..ba9b6ea48a31 100644 --- a/drivers/i2c/busses/i2c-emev2.c

[PATCH 08/21] i2c: eg20t: make use of i2c_8bit_addr_from_msg

2018-05-14 Thread Peter Rosin
Because it looks neater. pch_i2c_writebytes is always called with a write in msgs->flags, and pch_i2c_readbytes with a read. Signed-off-by: Peter Rosin --- drivers/i2c/busses/i2c-eg20t.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-eg20t.

[PATCH 06/21] i2c: diolan: make use of i2c_8bit_addr_from_msg

2018-05-14 Thread Peter Rosin
Because it looks neater and allows factoring out some code that is now common between if and else. Signed-off-by: Peter Rosin --- drivers/i2c/busses/i2c-diolan-u2c.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/i2c/busses/i2c-diolan-u2c.c b/drivers

[PATCH 04/21] i2c: aspeed: make use of i2c_8bit_addr_from_msg

2018-05-14 Thread Peter Rosin
Because it looks neater. Signed-off-by: Peter Rosin --- drivers/i2c/busses/i2c-aspeed.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-aspeed.c b/drivers/i2c/busses/i2c-aspeed.c index 7d4aeb4465b3..60e4d0e939a3 100644 --- a/drivers/i2c/busses/i2c

[PATCH 02/21] i2c: algo: pca: make use of i2c_8bit_addr_from_msg

2018-05-14 Thread Peter Rosin
Because it looks neater. Signed-off-by: Peter Rosin --- drivers/i2c/algos/i2c-algo-pca.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/i2c/algos/i2c-algo-pca.c b/drivers/i2c/algos/i2c-algo-pca.c index e370804ec8bc..883a290f6a4d 100644 --- a/drivers/i2c/algos

[PATCH 00/21] i2c: make use of i2c_8bit_addr_from_msg

2018-05-14 Thread Peter Rosin
Hi! The nice little inline i2c_8bit_addr_from_msg is not getting enough use. This series improves the situation and drops a bunch of lines in the process. I have only compile-tested (that part fine, at least over here). Cheers, Peter Peter Rosin (21): i2c: algo: bit: make use of

Re: [PATCH 00/21] i2c: make use of i2c_8bit_addr_from_msg

2018-05-14 Thread Peter Rosin
On 2018-05-14 18:11, Joe Perches wrote: > On Mon, 2018-05-14 at 16:53 +0200, Peter Rosin wrote: >> Hi! >> >> The nice little inline i2c_8bit_addr_from_msg is not getting >> enough use. This series improves the situation and drops a >> bunch of lines in the proces

Re: [PATCH 03/21] i2c: algo: pcf: make use of i2c_8bit_addr_from_msg

2018-05-14 Thread Peter Rosin
On 2018-05-14 18:59, Andy Shevchenko wrote: > On Mon, May 14, 2018 at 5:53 PM, Peter Rosin wrote: >> Because it looks neater. > >> drivers/i2c/algos/i2c-algo-pcf.c | 5 + > > I guess for such trivial no functional change patches you may do them > one per fol

Re: [PATCH v2 1/2] i2c: core-smbus: fix a potential uninitialization bug

2018-05-14 Thread Peter Rosin
On 2018-05-10 13:17, Wolfram Sang wrote: > On Sat, May 05, 2018 at 07:57:10AM -0500, Wenwen Wang wrote: >> In i2c_smbus_xfer_emulated(), there are two buffers: msgbuf0 and msgbuf1, >> which are used to save a series of messages, as mentioned in the comment. >> According to the value of the variable

Re: [PATCH v2 26/26] drm/bridge: establish a link between the bridge supplier and consumer

2018-05-14 Thread Peter Rosin
On 2018-05-14 18:28, Daniel Vetter wrote: > On Fri, May 11, 2018 at 09:37:47AM +0200, Peter Rosin wrote: >> On 2018-05-10 10:10, Andrzej Hajda wrote: >>> On 04.05.2018 15:52, Peter Rosin wrote: >>>> If the bridge supplier is unbound, this will bring the bridge con

[PATCH v2 00/10] Split i2c_lock_adapter into i2c_lock_root and i2c_lock_segment

2018-06-19 Thread Peter Rosin
, instead going from 5 to 8, we are now going from 5 to 3. Peter Rosin (10): tpm/tpm_i2c_infineon: switch to i2c_lock_bus(..., I2C_LOCK_SEGMENT) i2c: mux: pca9541: switch to i2c_lock_bus(..., I2C_LOCK_SEGMENT) input: rohm_bu21023: switch to i2c_lock_bus(..., I2C_LOCK_SEGMENT) media: af

[PATCH 5/5] i2c: mux: make use of __i2c_smbus_xfer

2018-06-20 Thread Peter Rosin
Calling the __i2c_smbus_xfer wrapper in __i2c_mux_smbus_xfer provides retries and thus makes the parent-locked case consistent with the both mux-locked (i2c_mux_smbus_xfer) and the I2C transfer cases. Signed-off-by: Peter Rosin --- drivers/i2c/i2c-mux.c | 4 ++-- 1 file changed, 2 insertions

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

2018-06-20 Thread Peter Rosin
to last argument (size) of the i2c_smbus_xfer declaration to protocol and remove the surplus extern marker. Signed-off-by: Peter Rosin --- drivers/i2c/i2c-core-smbus.c | 28 include/linux/i2c.h | 11 --- 2 files changed, 28 insertions(+), 11 deletions

[PATCH 3/5] i2c: mux: pca9541: make use of __i2c_smbus_xfer

2018-06-20 Thread Peter Rosin
This simplifies the code, and you get retries for free if the adapter does not support ->master_xfer. Signed-off-by: Peter Rosin --- drivers/i2c/muxes/i2c-mux-pca9541.c | 69 ++--- 1 file changed, 11 insertions(+), 58 deletions(-) diff --git a/drivers/i2c/mu

[PATCH 4/5] i2c: mux: pca954x: make use of __i2c_smbus_xfer

2018-06-20 Thread Peter Rosin
This simplifies the code, and you get retries for free if the adapter does not support ->master_xfer. Signed-off-by: Peter Rosin --- drivers/i2c/muxes/i2c-mux-pca954x.c | 27 --- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/drivers/i2c/muxes/i2c-

[PATCH 2/5] i2c: mux: mlxcpld: make use of __i2c_smbus_xfer

2018-06-20 Thread Peter Rosin
This simplifies the code, and you get retries for free if the adapter does not support ->master_xfer. Signed-off-by: Peter Rosin --- drivers/i2c/muxes/i2c-mux-mlxcpld.c | 28 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/drivers/i2c/muxes/i2c-

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

2018-06-20 Thread Peter Rosin
from Akinobu Mita could also benefit, as indicated by Wolfram [1]. Cheers, Peter [1] https://patchwork.ozlabs.org/patch/928386/#1936016 Peter Rosin (5): i2c: smbus: add unlocked __i2c_smbus_xfer variant i2c: mux: mlxcpld: make use of __i2c_smbus_xfer i2c: mux: pca9541: make use of

[PATCH] i2c: smbus: kill memory leak on emulated and failed DMA SMBus xfers

2018-06-20 Thread Peter Rosin
If DMA safe memory was allocated, but the subsequent I2C transfer fails the memory is leaked. Plug this leak. Fixes: 8a77821e74d6 ("i2c: smbus: use DMA safe buffers for emulated SMBus transactions") Signed-off-by: Peter Rosin --- drivers/i2c/i2c-core-smbus.c | 14 +- 1 fi

Re: [PATCH v3 00/16] Provide saturating helpers for allocation

2018-06-01 Thread Peter Rosin
Kees Cook wrote: > This is a stab at providing three new helpers for allocation size > calculation: > > struct_size(), array_size(), and array3_size(). > > These are implemented on top of Rasmus's overflow checking functions. The > existing allocators are adjusted to use the more efficient overfl

[PATCH 10/11] mfd: 88pm860x-i2c: switch to i2c_lock_segment

2018-06-15 Thread Peter Rosin
Locking the root adapter for __i2c_transfer will deadlock if the device sits behind a mux-locked I2C mux. Switch to the finer-grained i2c_lock_segment. If the device does not sit behind a mux-locked mux, the two locking variants are equivalent. Signed-off-by: Peter Rosin --- drivers/mfd

Re: [PATCH 3/3] iio: potentiometer: merge calls to of_match_device and of_device_get_match_data

2018-08-19 Thread Peter Rosin
vice_get_match_data(dev); > +if (!e) e = e1; > > @@ > identifier r.i; > @@ > - const struct of_device_id *i; > ... when != i > // > > Signed-off-by: Julia Lawall Reviewed-by: Peter Rosin Cheers, Peter > > --- > drivers/iio/potentiometer/max

[PATCH 5/5] iio: multiplexer: switch to SPDX license identifier

2018-08-20 Thread Peter Rosin
Drop the boilerplate license text. Signed-off-by: Peter Rosin --- drivers/iio/multiplexer/iio-mux.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/iio/multiplexer/iio-mux.c b/drivers/iio/multiplexer/iio-mux.c index e1f44cecdef4..0422ef57914c 100644 --- a

[PATCH 1/5] iio: potentiometer: mcp4018: use the correct MODULE_LICENSE

2018-08-20 Thread Peter Rosin
The file is GPL v2 only. Signed-off-by: Peter Rosin --- drivers/iio/potentiometer/mcp4018.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/potentiometer/mcp4018.c b/drivers/iio/potentiometer/mcp4018.c index 320a7c929777..5ab74a839982 100644 --- a/drivers/iio

[PATCH 4/5] iio: dpot-dac: switch to SPDX license identifier

2018-08-20 Thread Peter Rosin
Drop the boilerplate license text. Signed-off-by: Peter Rosin --- drivers/iio/dac/dpot-dac.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/iio/dac/dpot-dac.c b/drivers/iio/dac/dpot-dac.c index aaa2103d7c2b..a791d0a09d3b 100644 --- a/drivers/iio/dac/dpot-dac.c

[PATCH 3/5] iio: envelope-detector: switch to SPDX license identifier

2018-08-20 Thread Peter Rosin
Drop the boilerplate license text. Signed-off-by: Peter Rosin --- drivers/iio/adc/envelope-detector.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/iio/adc/envelope-detector.c b/drivers/iio/adc/envelope-detector.c index 4ebda8ab54fe..2f2b563c1162 100644 --- a

[PATCH 2/5] iio: potentiometer: mcp4531: switch to SPDX license identifier

2018-08-20 Thread Peter Rosin
Drop the boilerplate license text and use the correct MODULE_LICENSE. Signed-off-by: Peter Rosin --- drivers/iio/potentiometer/mcp4531.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/iio/potentiometer/mcp4531.c b/drivers/iio/potentiometer/mcp4531.c index

[PATCH 0/5] License cleanup of "my" IIO files

2018-08-20 Thread Peter Rosin
Hi! I found a couple of discrepancies in the license annotations in some of the files I have added to the drivers/iio/ directory. This cleans up the trivialities that I found. While at it, convert the remaining IIO files that are "mine" to SPDX license identifiers. Cheers, Peter Pete

[PATCH] mux: adgs1408: use the correct MODULE_LICENSE

2018-08-20 Thread Peter Rosin
The file is GPL v2 or later. Signed-off-by: Peter Rosin --- drivers/mux/adgs1408.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Hi Mircea! I just noticed a discrepancy in the license annotations in your driver. The SPDX license identifier says GPL-2.0-or-later, and I assume that is

[PATCH] ASoC: atmel: tse850: switch to SPDX license identifier

2018-08-20 Thread Peter Rosin
Convert to // comments in the leading comment, drop the boilerplate license text and use the correct MODULE_LICENSE. Signed-off-by: Peter Rosin --- sound/soc/atmel/tse850-pcm5142.c | 78 +++- 1 file changed, 36 insertions(+), 42 deletions(-) diff --git a

[PATCH] mux: adgs1408: use the correct SPDX license identifier

2018-08-20 Thread Peter Rosin
The file is GPL v2 only. Signed-off-by: Peter Rosin --- drivers/mux/adgs1408.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) On 2018-08-20 12:16, Caprioru, Mircea wrote: > Peter Rosin wrote: >> I just noticed a discrepancy in the license annotations in your >> driver. T

Re: [PATCH] mux: adgs1408: use the correct SPDX license identifier

2018-08-20 Thread Peter Rosin
need to stir the bowl... Cheers, Peter > > Regards, > Mircea > > -Original Message- > From: Peter Rosin [mailto:p...@axentia.se] > Sent: Monday, August 20, 2018 1:38 PM > To: linux-kernel@vger.kernel.org > Cc: Peter Rosin ; Caprioru, Mircea > > Subject

Re: [PATCH] dt-bindings: i2c: sh_mobile: Add r8a774c0 support

2018-12-13 Thread Peter Rosin
On 2018-12-13 21:19, Fabrizio Castro wrote: > Document RZ/G2E (R8A774C0) SoC bindings. > > Signed-off-by: Fabrizio Castro > --- > Documentation/devicetree/bindings/i2c/i2c-sh_mobile.txt | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/

Re: [PATCH] ARM i.MX: Fix a kernel panic in i2c_imx_clk_notifier_call().

2018-12-17 Thread Peter Rosin
On 2018-12-17 10:12, Krzysztof Hałasa wrote: > 90ad2cbe88c22d0215225ab9594eeead0eb24fde changed the i.MX I2C bus driver This reference should ideally be in a fixes-tag, below... > to use a notifier whenever the base clock ("ipg" - 66 MHz peripheral > clock) rate changes. > > Unfortunately one ca

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

2018-12-18 Thread Peter Rosin
This chip is compatible with "lvds-encoder". Signed-off-by: Peter Rosin --- Documentation/devicetree/bindings/display/bridge/lvds-transmitter.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/bridge/lvds-transmitter.txt b/Doc

[PATCH 0/3] drm/bridge: various small lvds-encoder things

2018-12-18 Thread Peter Rosin
Hi! These patches are useful for me. Please consider merging. Cheers, Peter Peter Rosin (3): dt-bindings: display: bridge: lvds-transmitter: add ti,ds90c187 dt-bindings: display: bridge: lvds-transmitter: add pwdn-gpios drm/bridge: add pwdn-gpios support to the lvds-encoder .../bindings

[PATCH 3/3] drm/bridge: add pwdn-gpios support to the lvds-encoder

2018-12-18 Thread Peter Rosin
Optionally power down the LVDS-encoder when it is not in use. Signed-off-by: Peter Rosin --- drivers/gpu/drm/bridge/lvds-encoder.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/drivers/gpu/drm/bridge/lvds-encoder.c b/drivers/gpu/drm/bridge/lvds

[PATCH 2/3] dt-bindings: display: bridge: lvds-transmitter: add pwdn-gpios

2018-12-18 Thread Peter Rosin
Add optional property to specify a power-down GPIO. The pwdn-gpios name is already in use by the thine,thc63lvdm83d binding, so go with that. Signed-off-by: Peter Rosin --- Documentation/devicetree/bindings/display/bridge/lvds-transmitter.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git

Re: [PATCH 2/3] dt-bindings: display: bridge: lvds-transmitter: add pwdn-gpios

2018-12-19 Thread Peter Rosin
On 2018-12-19 10:12, Andrzej Hajda wrote: > On 19.12.2018 00:19, Peter Rosin wrote: >> Add optional property to specify a power-down GPIO. >> The pwdn-gpios name is already in use by the thine,thc63lvdm83d >> binding, so go with that. >> >> Signed-off-by: Pete

Re: [PATCH 2/3] dt-bindings: display: bridge: lvds-transmitter: add pwdn-gpios

2018-12-19 Thread Peter Rosin
On 2018-12-19 12:38, Laurent Pinchart wrote: > Hello, > > On Wednesday, 19 December 2018 11:57:32 EET Peter Rosin wrote: >> On 2018-12-19 10:12, Andrzej Hajda wrote: >>> On 19.12.2018 00:19, Peter Rosin wrote: >>>> Add optional property to specify a power-do

[PATCH v2 1/3] dt-bindings: display: bridge: fork out ti,ds90c185 from lvds-transmitter

2018-12-19 Thread Peter Rosin
From: Peter Rosin DS90C185 has a shutdown pin which does not fit in the lvds-transmitter binding, which is meant to be generic. The sister chip DS90C187 is similar to DS90C185, describe it here as well. Signed-off-by: Peter Rosin --- .../bindings/display/bridge/lvds-transmitter.txt | 8

[PATCH v2 2/3] dt-bindings: display: bridge: lvds-transmitter: cleanup example

2018-12-19 Thread Peter Rosin
From: Peter Rosin Drop #address-cells and #size-cells from the root node in the example, they are unused. Signed-off-by: Peter Rosin --- Documentation/devicetree/bindings/display/bridge/lvds-transmitter.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/Documentation/devicetree

[PATCH v2 3/3] drm/bridge: add pwdn-gpios support to the lvds-encoder

2018-12-19 Thread Peter Rosin
From: Peter Rosin Optionally power down the LVDS-encoder when it is not in use. Signed-off-by: Peter Rosin --- drivers/gpu/drm/bridge/lvds-encoder.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/drivers/gpu/drm/bridge/lvds-encoder.c b/drivers/gpu/drm

[PATCH v2 0/3] drm/bridge: various small lvds-encoder things

2018-12-19 Thread Peter Rosin
From: Peter Rosin Hi! I'm not sure if I should have added the texas chips to the lvds_encoder_match list in the driver, right next to the thine,thc63lvdm83d entry, but ended up not doing that. That can always be added later, it needed... Changes since v1: - fork out the bindings for the

Re: [RFC/RFT 10/10] i2c: rcar: add suspend/resume support

2018-12-10 Thread Peter Rosin
On 2018-12-10 22:03, Wolfram Sang wrote: > Because the adapter will be set up before every transaction anyhow, we > just need to mark it as adapted to the I2C core. mark it as "suspended", not "adapted"? Cheers, Peter > > Signed-off-by: Hiromitsu Yamasaki > Signed-off-by: Wolfram Sang > --- >

Re: [RFC/RFT 01/10] i2c: add 'is_suspended' flag for i2c adapters

2018-12-10 Thread Peter Rosin
On 2018-12-10 22:02, Wolfram Sang wrote: > Some drivers open code handling of suspended adapters. It should be > handled by the core, though, to ensure generic handling. This patch adds > the flag and an accessor function. > > Signed-off-by: Wolfram Sang > --- > drivers/i2c/i2c-core-base.c | 1 +

Re: [PATCH 01/10] i2c: add suspended flag and accessors for i2c adapters

2018-12-21 Thread Peter Rosin
On 2018-12-21 15:50, Wolfram Sang wrote: > I think this might be as simple as adding: if (WARN_ON(adap->dev.parent->power.is_suspended)) return -ESHUTDOWN; > > Peter, I think this should work for muxes, too, or? The i2c_transfer() > call to the mux will not be re

[PATCH] fbdev: fbmem: convert CONFIG_FB_LOGO_CENTER into a cmd line, option

2019-01-07 Thread Peter Rosin
On 2019-01-06 10:33, Geert Uytterhoeven wrote: > Hi Peter, > > On Mon, Nov 26, 2018 at 10:59 PM Peter Rosin wrote: >> If there are extra logos (CONFIG_FB_LOGO_EXTRA) the heights of these >> extra logos are not considered when centering the first logo vertically. >> &g

Re: [PATCH] fbdev: fbmem: convert CONFIG_FB_LOGO_CENTER into a cmd line, option

2019-01-07 Thread Peter Rosin
On 2019-01-07 09:40, Geert Uytterhoeven wrote: > Hi Peter, > > On Mon, Jan 7, 2019 at 9:26 AM Peter Rosin wrote: >> On 2019-01-06 10:33, Geert Uytterhoeven wrote: >>> On Mon, Nov 26, 2018 at 10:59 PM Peter Rosin wrote: >>>> If there are extra logos (CONFIG

Re: [PATCH] fbdev: fbmem: convert CONFIG_FB_LOGO_CENTER into a cmd line, option

2019-01-07 Thread Peter Rosin
On 2019-01-07 09:59, Peter Rosin wrote: > On 2019-01-07 09:40, Geert Uytterhoeven wrote: >> Hi Peter, >> >> On Mon, Jan 7, 2019 at 9:26 AM Peter Rosin wrote: >>> On 2019-01-06 10:33, Geert Uytterhoeven wrote: >>>> On Mon, Nov 26, 2018 at 10:59 PM Peter Ro

[PATCH v2] fbdev: fbmem: convert CONFIG_FB_LOGO_CENTER into a cmd, line option

2019-01-07 Thread Peter Rosin
On 2019-01-07 10:11, Geert Uytterhoeven wrote: > Hi Peter, > > On Mon, Jan 7, 2019 at 10:03 AM Peter Rosin wrote: >> On 2019-01-07 09:59, Peter Rosin wrote: >>> On 2019-01-07 09:40, Geert Uytterhoeven wrote: >>>> On Mon, Jan 7, 2019 at 9:26 AM Peter Rosin wro

[PATCH] drm/atmel-hlcdc: prevent divide by zero

2019-01-08 Thread Peter Rosin
sages, but preserve the current behaviour that also happen to make the plane disappear with the above call. Signed-off-by: Peter Rosin --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) Side note, when comp

Re: [PATCH V1] i2c: tegra: Fix Maximum transfer size

2019-01-02 Thread Peter Rosin
On 2019-01-02 22:48, Sowjanya Komatineni wrote: > Tegra194 supports maximum 64K Bytes transfer per packet. > Tegra186 and prior supports maximum 4K Bytes transfer per packet. > > This patch fixes this payload difference between Tegra194 and prior > tegra chipsets. > > Signed-off-by: Sowjanya Koma

Re: [PATCH V1] i2c: tegra: Fix Maximum transfer size

2019-01-02 Thread Peter Rosin
On 2019-01-02 23:39, Sowjanya Komatineni wrote: >>> +static const struct i2c_adapter_quirks tegra194_i2c_quirks = { >>> + .flags = I2C_AQ_NO_ZERO_LEN, >> >> This is not mentioned in the commit message and the flag is not present in >> the old struct tegra_i2c_quirks above. Are you trying to snea

Re: [PATCH v2 1/3] dt-bindings: display: bridge: fork out ti,ds90c185 from lvds-transmitter

2018-12-27 Thread Peter Rosin
On 2018-12-27 22:27, Rob Herring wrote: > On Wed, Dec 19, 2018 at 02:04:47PM +0100, Peter Rosin wrote: >> From: Peter Rosin >> >> DS90C185 has a shutdown pin which does not fit in the lvds-transmitter >> binding, which is meant to be generic. >> >> The sist

[PATCH v3 0/5] drm/bridge: various small lvds-encoder things

2018-12-28 Thread Peter Rosin
le in order to avoid clutter in the generic lvds-transmitter binding. - added a patch to remove some surplus stuff in the generic lvds-transmitter binding. Cheers, Peter Peter Rosin (5): dt-bindings: display: bridge: fork out ti,ds90c185 from lvds-transmitter dt-bindings: display: bridge:

[PATCH v3 2/5] dt-bindings: display: bridge: lvds-transmitter: cleanup example

2018-12-28 Thread Peter Rosin
Drop #address-cells and #size-cells from the root node in the example, they are unused. Reviewed-by: Rob Herring Signed-off-by: Peter Rosin --- Documentation/devicetree/bindings/display/bridge/lvds-transmitter.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/Documentation/devicetree

[PATCH v3 5/5] drm/bridge: lvds-encoder: add powerdown-gpios support

2018-12-28 Thread Peter Rosin
Optionally power down the LVDS-encoder when it is not in use. Signed-off-by: Peter Rosin --- drivers/gpu/drm/bridge/lvds-encoder.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/drivers/gpu/drm/bridge/lvds-encoder.c b/drivers/gpu/drm/bridge/lvds

[PATCH v3 1/5] dt-bindings: display: bridge: fork out ti,ds90c185 from lvds-transmitter

2018-12-28 Thread Peter Rosin
DS90C185 has a shutdown pin which does not fit in the lvds-transmitter binding, which is meant to be generic. The sister chip DS90C187 is similar to DS90C185, describe it here as well. Signed-off-by: Peter Rosin --- .../bindings/display/bridge/lvds-transmitter.txt | 8 +--- .../bindings

[PATCH v3 4/5] drm/bridge: lvds-encoder: add dev helper variable in .probe()

2018-12-28 Thread Peter Rosin
Make the code easier to read and modify. Signed-off-by: Peter Rosin --- drivers/gpu/drm/bridge/lvds-encoder.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/bridge/lvds-encoder.c b/drivers/gpu/drm/bridge/lvds-encoder.c index

[PATCH v3 3/5] dt-bindings: display: bridge: thc63lvdm83d: use standard powerdown-gpios

2018-12-28 Thread Peter Rosin
. Signed-off-by: Peter Rosin --- Documentation/devicetree/bindings/display/bridge/thine,thc63lvdm83d.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/display/bridge/thine,thc63lvdm83d.txt b/Documentation/devicetree/bindings/display/bridge

Re: [PATCH] iio: dpot-dac: mark expected switch fall-through

2018-10-08 Thread Peter Rosin
On 2018-10-08 19:35, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. The way I see it, it is pretty well marked up as is. So, this paragraph is not describing the change. > > Notice that in this particula

Re: [PATCH] mux: adgs1408: use the correct MODULE_LICENSE

2018-10-08 Thread Peter Rosin
On 2018-08-20 12:11, Peter Rosin wrote: > The file is GPL v2 or later. > > Signed-off-by: Peter Rosin Applied to the for-next branch. Cheers, Peter

Re: [PATCH] MAINTAINERS: use the correct location for dt-bindings includes for mux

2018-10-08 Thread Peter Rosin
On 2018-10-01 13:41, Peter Rosin wrote: > Just drop the "linux" part of the path, it was never correct. > > Reported-by: Joe Perches > Fixes: 256ac0375098 ("dt-bindings: document devicetree bindings for > mux-controllers and gpio-mux") > Signed-off-by:

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

2018-10-08 Thread Peter Rosin
h use. So, the patch needs some reworking. Sorry for not noticing this earlier. Cheers, Peter > Cc: Peter Rosin > Signed-off-by: Luca Ceresoli > > --- > > Changes v2 -> v3: > - fix coding style of comment when moving it (Peter Rosin) > - move the 'algo' m

Re: [PATCH v2 1/3] i2c: mux: pca954x: simplify code to reach the adapter

2018-10-08 Thread Peter Rosin
On 2018-10-05 13:43, Wolfram Sang wrote: > On Wed, Oct 03, 2018 at 05:50:22PM +0200, Luca Ceresoli wrote: >> From: Luca Ceresoli >> >> struct i2c_client has a direct pointer to the adapter, no need to dig >> it out of the struct device tree. >> >> Signed-off-by: Luca Ceresoli > > I like such cle

Re: [PATCH] iio: dpot-dac: mark expected switch fall-through

2018-10-16 Thread Peter Rosin
On 2018-10-16 13:01, Gustavo A. R. Silva wrote: > On 10/14/18 7:01 PM, Jonathan Cameron wrote: >> Done the first of the above... > > Thank you, Jonathan. Indeed. I meant to respond earlier, but then forgot... Thank you! Cheers, Peter

[PATCH 0/2] mux: small fixes for 4.20-rc1

2018-10-12 Thread Peter Rosin
Hi Greg, A couple of tiny fixlets for the mux subsystem. Please pick them up for 4.20. Cheers, Peter Peter Rosin (2): mux: adgs1408: use the correct MODULE_LICENSE MAINTAINERS: use the correct location for dt-bindings includes for mux MAINTAINERS| 2 +- drivers/mux/adgs1408.c

[PATCH 1/2] mux: adgs1408: use the correct MODULE_LICENSE

2018-10-12 Thread Peter Rosin
The file is GPL v2 or later. Acked-by: Mircea Caprioru Signed-off-by: Peter Rosin --- drivers/mux/adgs1408.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mux/adgs1408.c b/drivers/mux/adgs1408.c index 0f7cf54e3234..89096f10f4c4 100644 --- a/drivers/mux/adgs1408.c

[PATCH 2/2] MAINTAINERS: use the correct location for dt-bindings includes for mux

2018-10-12 Thread Peter Rosin
Just drop the "linux" part of the path, it was never correct. Reported-by: Joe Perches Fixes: 256ac0375098 ("dt-bindings: document devicetree bindings for mux-controllers and gpio-mux") Signed-off-by: Peter Rosin --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+),

Re: [PATCH] iio: dpot-dac: mark expected switch fall-through

2018-10-13 Thread Peter Rosin
On 2018-10-13 14:38, Jonathan Cameron wrote: > On Mon, 8 Oct 2018 20:42:41 + > Peter Rosin wrote: > >> On 2018-10-08 19:35, Gustavo A. R. Silva wrote: >>> In preparation to enabling -Wimplicit-fallthrough, mark switch cases >>> where we are expecting to fall

Re: [PATCH v2] i2c: rk3x: fix some typo

2018-11-02 Thread Peter Rosin
On 2018-11-02 13:45, Yangtao Li wrote: > Fix multiple instances of a misspelled "Calculates". Yes, it sure is hard to spell "Calcluated," it's almost impossible to get it completely right and not introduce another typo somewhere... :-) Cheers, Peter > > Signed-off-by: Yangtao Li > Reviewed-by:

Re: [PATCH -next] iio: potentiometer: mcp4018: merge calls to of_match_device and of_device_get_match_data

2018-09-15 Thread Peter Rosin
On 2018-09-15 12:52, YueHaibing 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. > > Found by coccinelle. > > Signed-off-by: YueHaibing

Re: [PATCH -next] iio: potentiometer: mcp4531: merge calls to of_match_device and of_device_get_match_data

2018-09-15 Thread Peter Rosin
On 2018-09-15 12:54, YueHaibing 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. > > Found by coccinelle. > > Signed-off-by: YueHaibing

Re: [PATCH -next] iio: potentiometer: mcp4018: merge calls to of_match_device and of_device_get_match_data

2018-09-16 Thread Peter Rosin
On September 16, 2018 11:36:57 AM GMT+02:00, Jonathan Cameron wrote: >On Sat, 15 Sep 2018 13:35:06 +0200 >Peter Rosin wrote: > >> On 2018-09-15 12:52, YueHaibing wrote: >> > Drop call to of_match_device, which is subsumed by the subsequent >> > call to of

Re: [PATCH V2 1/2] mux: adgs1408: new driver for Analog Devices ADGS1408/1409 mux …

2018-07-18 Thread Peter Rosin
On 2018-07-17 15:42, Mircea Caprioru wrote: > This patch adds basic support for Analog Device ADGS1408/09 SPI mux > controller. > > The device is probed and set to a disabled state. It uses the new mux > controller framework. > > Signed-off-by: Mircea Caprioru > --- > Changelog V1 -> V2 > - remo

[PATCH] ASoC: pcm512x: Also support PCM514x devices

2014-12-09 Thread Peter Rosin
From: Peter Rosin Signed-off-by: Peter Rosin --- Documentation/devicetree/bindings/sound/pcm512x.txt |3 ++- sound/soc/codecs/pcm512x-i2c.c |4 sound/soc/codecs/pcm512x-spi.c |4 3 files changed, 10 insertions(+), 1 deletion

[PATCH] ASoC: pcm512x: Trigger auto-increment of register addresses on i2c

2014-12-08 Thread Peter Rosin
From: Peter Rosin When the codec is connected using i2c, it will only auto-increment register addresses if msb (0x80) of the register address byte is set. Signed-off-by: Peter Rosin --- sound/soc/codecs/pcm512x-i2c.c |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a

RE: [PATCH v2 02/12] pm: at91: Workaround DDRSDRC self-refresh bug with LPDDR1 memories.

2015-01-26 Thread Peter Rosin
Sylvain Rochet wrote: > Hello Nicolas, > > On Mon, Jan 26, 2015 at 02:34:38PM +0100, Nicolas Ferre wrote: > > Le 26/01/2015 11:36, Sylvain Rochet a écrit : > > > > > > I think we should explain we are dealing with an errata here, this > > > is not obvious at first sight, the patch summary may find

[PATCH 2/7] ASoC: pcm512x: Fix spelling of register field names.

2015-01-14 Thread Peter Rosin
From: Peter Rosin Signed-off-by: Peter Rosin --- sound/soc/codecs/pcm512x.c |2 +- sound/soc/codecs/pcm512x.h |6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/codecs/pcm512x.c b/sound/soc/codecs/pcm512x.c index 30c673cdc12e..355a8543c8b1 100644 --- a

[PATCH 4/7] ASoC: pcm512x: Support mastering BCLK/LRCLK without using the PLL

2015-01-14 Thread Peter Rosin
From: Peter Rosin Use register field names from the seemingly compatible PCM5242 datasheet, as the PCM512x and PCM514x datasheets are severly lacking. Signed-off-by: Peter Rosin --- sound/soc/codecs/pcm512x.c | 452 ++-- sound/soc/codecs/pcm512x.h

[PATCH 5/7] ASoC: pcm512x: Support mastering BCLK/LRCLK using the PLL

2015-01-14 Thread Peter Rosin
From: Peter Rosin Using the PLL in master mode requires using an external connection between one of the GPIO pins (configured as PLL/4 output) and the SCK pin. It also requires the external clock to be fed to some other GPIO pin instead of the SCK pin. This is described for the PCM5122 chip in

[PATCH 7/7] ASoC: pcm512x: Support SND_SOC_DAIFMT_CBM_CFS

2015-01-14 Thread Peter Rosin
From: Peter Rosin Signed-off-by: Peter Rosin --- sound/soc/codecs/pcm512x.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/pcm512x.c b/sound/soc/codecs/pcm512x.c index 2a50c58a2fb1..511d98b3afa4 100644 --- a/sound/soc/codecs/pcm512x.c

[PATCH 0/7] ASoC: pcm512x: Clock master modes

2015-01-14 Thread Peter Rosin
From: Peter Rosin Hi! This series implements BCLK master modes for the pcm512x driver. It has only been tested with the pcm5142 chip, but they are from the same family and should be compatible. I have mainly used the spec for the newer pcm5242 chip (also from the same family) as it fills in a

[PATCH 1/7] ALSA: pcm: Add snd_interval_ranges() and snd_pcm_hw_constraint_ranges()

2015-01-14 Thread Peter Rosin
From: Peter Rosin Add helper functions to allow drivers to specify several disjoint ranges for a variable. In particular, there is a codec (PCM512x) that has a hole in its supported range of rates, due to PLL and divider restrictions. Signed-off-by: Peter Rosin --- include/sound/pcm.h | 12

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