[PATCH 3/7] ASoC: pcm512x: Change register default to match actual content after reset

2015-01-14 Thread Peter Rosin
From: Peter Rosin Signed-off-by: Peter Rosin --- sound/soc/codecs/pcm512x.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/pcm512x.c b/sound/soc/codecs/pcm512x.c index 355a8543c8b1..78dc3306d2f2 100644 --- a/sound/soc/codecs/pcm512x.c +++ b/sound/soc

[PATCH 6/7] ASoC: pcm512x: Avoid the PLL for the DAC clock, if possible

2015-01-14 Thread Peter Rosin
From: Peter Rosin The PLL introduces jitter, which in turn introduces noice if used to clock the DAC. Thus, avoid the PLL output, and use the PLL input to drive the DAC clock, if possible. This is described for the PCM5142/PCM5242 chips in the answers to the forum post "PCM5142/PCM524

[PATCH RESEND] pm: at91: Workaround DDRSDRC self-refresh bug with LPDDR1 memories

2015-01-14 Thread Peter Rosin
From: Peter Rosin The DDRSDR controller (on the ATSAMA5D31) fails miserably to put LPDDR1 memories in self-refresh. Force the controller to think it has DDR2 memories during the self-refresh period, as the DDR2 self-refresh spec is equivalent to LPDDR1, and is correctly implemented in the

RE: [PATCH RESEND] pm: at91: Workaround DDRSDRC self-refresh bug with LPDDR1 memories

2015-01-14 Thread Peter Rosin
Nicolas Ferre wrote: > Le 14/01/2015 14:20, Peter Rosin a écrit : > > From: Peter Rosin > > > > The DDRSDR controller (on the ATSAMA5D31) fails miserably to put > > LPDDR1 memories in self-refresh. Force the controller to think it has > > DDR2 memories during the

[PATCH] ASoC: pcm512x: Fix DSP program selection

2015-01-08 Thread Peter Rosin
From: Peter Rosin The DSP programs are listed out of order. Signed-off-by: Peter Rosin Cc: sta...@vger.kernel.org --- sound/soc/codecs/pcm512x.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/pcm512x.c b/sound/soc/codecs/pcm512x.c index 0c8aefab404c

Re: [PATCH 2/2] ASoC: atmel_ssc_dai: remove clock pin comments

2015-01-19 Thread Peter Rosin
> As the clock can be get from TK/RK pin, so remove the comments. > > Signed-off-by: Bo Shen > --- > sound/soc/atmel/atmel_ssc_dai.c | 4 > 1 file changed, 4 deletions(-) > diff --git a/sound/soc/atmel/atmel_ssc_dai.c b/sound/soc/atmel/atmel_ssc_dai.c > index e691aab..198661b 100644 > --- a

RE: [PATCH v3 03/13] pm: at91: Workaround DDRSDRC self-refresh bug with LPDDR1 memories.

2015-01-27 Thread Peter Rosin
Sergei Shtylyov wrote: > Hello. Hi! > On 1/27/2015 8:53 AM, Wenyou Yang wrote: > > > From: Peter Rosin > > > The DDRSDR controller fails miserably to put LPDDR1 memories in > > self-refresh. Force the controller to think it has DDR2 memories > > during

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

2015-01-27 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 e5f2fb884bf3..874723c36d65 100644 --- a

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

2015-01-27 Thread Peter Rosin
From: Peter Rosin Hi! [ Note that the dt change is in patch 5/7, for those only interested in that particular bit. ] 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

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

2015-01-27 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. This is like snd_pcm_hw_constraint_list(), but for ranges

[PATCH 3/7 RESEND] ASoC: pcm512x: Change register default to match actual content after reset

2015-01-27 Thread Peter Rosin
From: Peter Rosin Signed-off-by: Peter Rosin --- sound/soc/codecs/pcm512x.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/pcm512x.c b/sound/soc/codecs/pcm512x.c index 874723c36d65..4c65eb9ab59b 100644 --- a/sound/soc/codecs/pcm512x.c +++ b/sound/soc

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

2015-01-27 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 RESEND] ASoC: pcm512x: Support SND_SOC_DAIFMT_CBM_CFS

2015-01-27 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 7f45cc468fa1..33aa18c8c88e 100644 --- a/sound/soc/codecs/pcm512x.c

[PATCH 6/7 RESEND] ASoC: pcm512x: Avoid the PLL for the DAC clock, if possible

2015-01-27 Thread Peter Rosin
From: Peter Rosin The PLL introduces jitter, which in turn introduces noice if used to clock the DAC. Thus, avoid the PLL output, and use the PLL input to drive the DAC clock, if possible. This is described for the PCM5142/PCM5242 chips in the answers to the forum post "PCM5142/PCM524

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

2015-01-27 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

RE: [PATCH v3 03/13] pm: at91: Workaround DDRSDRC self-refresh bug with LPDDR1 memories.

2015-01-27 Thread Peter Rosin
I wrote: > Sergei Shtylyov wrote: > > On 1/27/2015 8:53 AM, Wenyou Yang wrote: > > > > > From: Peter Rosin > > > > > The DDRSDR controller fails miserably to put LPDDR1 memories in > > > self-refresh. Force the controller to think it has DDR2 memor

RE: [PATCH v2 3/7] ASoC: pcm512x: Change register default to match actual content after reset

2015-01-28 Thread Peter Rosin
Hi Mark, First of all, thanks for taking the rest of the series! Mark Brown wrote: > On Wed, Jan 28, 2015 at 03:16:08PM +0100, Peter Rosin wrote: > > > @@ -78,7 +78,7 @@ static const struct reg_default > pcm512x_reg_defaults[] = { > > { PCM512x_DI

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

2015-01-28 Thread Peter Rosin
From: Peter Rosin Hi! [ Note that the dt change is in patch 5/7, for those only interested in that particular bit. ] 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

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

2015-01-28 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. This is like snd_pcm_hw_constraint_list(), but for ranges

[PATCH v2 6/7] ASoC: pcm512x: Avoid the PLL for the DAC clock, if possible

2015-01-28 Thread Peter Rosin
From: Peter Rosin The PLL introduces jitter, which in turn introduces noice if used to clock the DAC. Thus, avoid the PLL output, and use the PLL input to drive the DAC clock, if possible. This is described for the PCM5142/PCM5242 chips in the answers to the forum post "PCM5142/PCM524

[PATCH v2 3/7] ASoC: pcm512x: Change register default to match actual content after reset

2015-01-28 Thread Peter Rosin
From: Peter Rosin Signed-off-by: Peter Rosin --- sound/soc/codecs/pcm512x.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/pcm512x.c b/sound/soc/codecs/pcm512x.c index 874723c36d65..4c65eb9ab59b 100644 --- a/sound/soc/codecs/pcm512x.c +++ b/sound/soc

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

2015-01-28 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 v2 7/7] ASoC: pcm512x: Support SND_SOC_DAIFMT_CBM_CFS

2015-01-28 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 d46d6cdb6b87..64be85fb2748 100644 --- a/sound/soc/codecs/pcm512x.c

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

2015-01-28 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 e5f2fb884bf3..874723c36d65 100644 --- a

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

2015-01-28 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 | 441 ++-- sound/soc/codecs/pcm512x.h

RE: [PATCH] ASoC:pcm512x: Fix divide by zero issue.

2015-03-22 Thread Peter Rosin
p, the old code is plain broken and never actually ran, we have been using 16MHz pllin_rate, and I apparently never hit this code path. > Signed-off-by: Howard Mitchell Acked-by: Peter Rosin Cheers, Peter > --- > sound/soc/codecs/pcm512x.c |4 ++-- > 1 file changed, 2 insertion

RE: [PATCH] ASoC:pcm512x: Make PLL lock output selectable via device tree.

2015-03-22 Thread Peter Rosin
Howard Mitchell wrote: > Currently the PLL Lock output signal is hardcoded to GPIO4. This > makes it seletable in the same way as pll-in and pll-out. Oops, I never intended the plllock code the hit upstream. I thought I had removed that testing code and was very surprised to see it, that was an od

RE: [PATCH] ASoC:pcm512x: Make PLL lock output selectable via device tree.

2015-03-23 Thread Peter Rosin
Howard Mitchell wrote: > On 22/03/15 16:24, Mark Brown wrote: > > On Fri, Mar 20, 2015 at 09:22:43PM +, Howard Mitchell wrote: > > > >> + if (pcm512x->pll_lock) { > >> +if (of_property_read_u32(np, "pll-lock", &val) >= 0) { > >> +if (val > 6) { > >> +

RE: [PATCH] ASoC: tfa9879: Fix return value check in tfa9879_i2c_probe()

2015-04-16 Thread Peter Rosin
Wei Yongjun wrote: > In case of error, the function devm_kzalloc() returns NULL not ERR_PTR(). > The IS_ERR() test in the return value check should be replaced with NULL > test. Acked-by: Peter Rosin Thanks, Peter -- To unsubscribe from this list: send the line "unsubscribe li

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

2018-05-22 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

[PATCH v5 5/7] drm/i2c: tda998x: split tda998x_encoder_dpms into enable/disable

2018-05-23 Thread Peter Rosin
This fits better with the drm_bridge callbacks for when this driver becomes a drm_bridge. Suggested-by: Laurent Pinchart Signed-off-by: Peter Rosin --- drivers/gpu/drm/i2c/tda998x_drv.c | 64 ++- 1 file changed, 37 insertions(+), 27 deletions(-) diff --git

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

2018-05-23 Thread Peter Rosin
letter and commit messages. [1] https://lkml.org/lkml/2018/5/16/380 Peter Rosin (7): dt-bindings: display: bridge: lvds-transmitter: add ti,ds90c185 dt-bindings: display: atmel: optional video-interface of endpoints drm/atmel-hlcdc: support bus-width (12/16/18/24) in endpoint nodes drm/i2

[PATCH v5 2/7] dt-bindings: display: atmel: optional video-interface of endpoints

2018-05-23 Thread Peter Rosin
quot; issue (SAMA5D2, SAMA5D4), this is completely irrelevant. Acked-by: Boris Brezillon Reviewed-by: Rob Herring Signed-off-by: Peter Rosin --- .../devicetree/bindings/display/atmel/hlcdc-dc.txt | 26 ++ 1 file changed, 26 insertions(+) diff --git a/Documentation/devicet

[PATCH v5 7/7] drm/i2c: tda998x: register as a drm bridge

2018-05-23 Thread Peter Rosin
goes away when connecting to the bridge interface of the driver and the equivalent of bind/unbind of the component is handled by bridge attach/detach. The lifetime requirements of a bridge and a component are slightly different, which is the reason for struct tda998x_bridge. Signed-off-by: Peter

[PATCH v5 6/7] drm/i2c: tda998x: split encoder and component functions from the work

2018-05-23 Thread Peter Rosin
This enables reuse of the machinery for the case where a drm_bridge needs to do the same work via different interfaces. Signed-off-by: Peter Rosin --- drivers/gpu/drm/i2c/tda998x_drv.c | 36 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a

[PATCH v5 4/7] drm/i2c: tda998x: find the drm_device via the drm_connector

2018-05-23 Thread Peter Rosin
This prepares for being a drm_bridge which will not register the encoder. That makes the connector the better choice. Reviewed-by: Laurent Pinchart Signed-off-by: Peter Rosin --- drivers/gpu/drm/i2c/tda998x_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu

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

2018-05-23 Thread Peter Rosin
Start list of actual chips compatible with "lvds-encoder". Reviewed-by: Laurent Pinchart Reviewed-by: Rob Herring Signed-off-by: Peter Rosin --- .../devicetree/bindings/display/bridge/lvds-transmitter.txt | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) dif

[PATCH v5 3/7] drm/atmel-hlcdc: support bus-width (12/16/18/24) in endpoint nodes

2018-05-23 Thread Peter Rosin
2, SAMA5D4), this is completely irrelevant. Acked-by: Boris Brezillon Signed-off-by: Peter Rosin --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 70 +--- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h | 1 + drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c | 67 ++

[PATCH 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 | 6 ++ kernel/locking/rtmutex.c | 29 + 2 files changed, 31 insertions(+), 4 deletions(-) diff --git a/include/linux/rtmutex.h b/include/linux/rtmutex.h index

[PATCH 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

Re: Problem: lockdep warning with nested instances of i2c-mux

2018-05-24 Thread Peter Rosin
and a slave device to show the problem. On my system, with a > kernel compiled with lockdep enabled, loading the module produces the > splat. I can post it, if the issue isn't clear from my description. Not needed, the issue is known, I just wasn't aware that lockdep had gro

[PATCH v2 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 v2 0/2] Re: Problem: lockdep warning with nested instances of i2c-mux

2018-05-24 Thread Peter Rosin
r the report! 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/rtmutex.c

[PATCH v2 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] mtd: nand: raw: atmel: add module param to avoid using dma

2018-04-03 Thread Peter Rosin
On 2018-04-03 09:18, Alexandre Belloni wrote: > On 02/04/2018 at 22:23:17 +0200, Peter Rosin wrote: >>>> No, but did it again and checked, see transcript below. >>> >>> I don't use devmem2. Is 'readback' information accurate or is it >>> a

Re: [PATCH] drm/atmel-hlcdc: add command line option to specify preferred depth

2018-04-03 Thread Peter Rosin
On 2018-04-03 11:10, Daniel Vetter wrote: > On Wed, Mar 28, 2018 at 12:03:39PM +0200, Peter Rosin wrote: >> On 2018-03-28 09:34, Boris Brezillon wrote: >>> Hi Peter, >>> >>> On Mon, 26 Mar 2018 09:35:02 +0200 >>> Peter Rosin wrote: >>> >&g

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

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

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

2018-04-03 Thread Peter Rosin
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 + drivers/iio

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

2018-04-03 Thread Peter Rosin
. - In the DT bindings, use an unnamed source channel. - Do not set up 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

Re: [PATCH v2 0/2] iio: add unit converter

2018-04-03 Thread Peter Rosin
On 2018-04-03 19:41, Andrew F. Davis wrote: > On 04/03/2018 10:36 AM, Peter Rosin wrote: >> Hi! >> >> This driver implements support for voltage dividers and current >> sense circuits. It's pretty generic and should be easily adaptable >> to other linear sca

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

2018-04-04 Thread Peter Rosin
on, Mar 26, 2018 at 11:24:42PM +0200, Peter Rosin wrote: >>>>> Hi! >>>>> >>>>> [I got to v2 sooner than expected] >>>>> >>>>> I have an Atmel sama5d31 hooked up to an lvds encoder and then >>>>> on to an

Re: [PATCH v2 2/5] drm: bridge: add API to query the expected input formats of bridges

2018-04-04 Thread Peter Rosin
On 2018-04-04 15:07, Laurent Pinchart wrote: > First of all, thank you for the patch. This generates more discussion than I > had anticipated, which is both good and bad. I'll comment through the e-mail, > and try to explain both my initial idea, and also where it could lead us. *snip* Thank yo

Re: [PATCH] drm/atmel-hlcdc: add command line option to specify preferred depth

2018-03-28 Thread Peter Rosin
On 2018-03-28 09:34, Boris Brezillon wrote: > Hi Peter, > > On Mon, 26 Mar 2018 09:35:02 +0200 > Peter Rosin wrote: > >> I have an sama5d31-based system with 64MB of memory and a 1920x1080 >> LVDS display wired for 16-bpp. When I enable legacy fbdev support, >>

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

2018-03-29 Thread Peter Rosin
On a sama5d31 with a Full-HD dual LVDS panel (132MHz pixel clock) NAND flash accesses have a tendency to cause display disturbances. Add a module param to disable DMA from the NAND controller, since that fixes the display problem for me. Signed-off-by: Peter Rosin --- drivers/mtd/nand/raw/atmel

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

2018-03-29 Thread Peter Rosin
On 2018-03-29 15:33, Boris Brezillon wrote: > On Thu, 29 Mar 2018 15:10:54 +0200 > Peter Rosin wrote: > >> On a sama5d31 with a Full-HD dual LVDS panel (132MHz pixel clock) NAND >> flash accesses have a tendency to cause display disturbances. Add a >> module param t

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

2018-03-29 Thread Peter Rosin
On 2018-03-29 16:20, Nicolas Ferre wrote: > On 29/03/2018 at 15:10, Peter Rosin wrote: >> On a sama5d31 with a Full-HD dual LVDS panel (132MHz pixel clock) NAND >> flash accesses have a tendency to cause display disturbances. Add a >> module param to disable DMA from the N

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

2018-03-29 Thread Peter Rosin
On 2018-03-29 15:44, Boris Brezillon wrote: > On Thu, 29 Mar 2018 15:37:43 +0200 > Peter Rosin wrote: > >> On 2018-03-29 15:33, Boris Brezillon wrote: >>> On Thu, 29 Mar 2018 15:10:54 +0200 >>> Peter Rosin wrote: >>> >>>> On a sama5d31 wi

[PATCH] drm/bridge: adv7511: fix spelling of driver name in Kconfig

2018-04-26 Thread Peter Rosin
Could perhaps prevent some confusion. Signed-off-by: Peter Rosin --- drivers/gpu/drm/bridge/adv7511/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/adv7511/Kconfig b/drivers/gpu/drm/bridge/adv7511/Kconfig index 592b9d2ec034..944e440c4fde

[PATCH 01/24] drm/bridge: allow optionally specifying an .owner device

2018-04-26 Thread Peter Rosin
drivers provide an owner device, that will become mandatory and the .of_node member will be removed. Signed-off-by: Peter Rosin --- drivers/gpu/drm/drm_bridge.c | 3 ++- include/drm/drm_bridge.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_bridge.c

[PATCH 04/24] drm/bridge: analogix-anx78xx: provide an .owner device

2018-04-26 Thread Peter Rosin
It gets rid of an #if and the .of_node member is going away. Signed-off-by: Peter Rosin --- drivers/gpu/drm/bridge/analogix-anx78xx.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix-anx78xx.c b/drivers/gpu/drm/bridge/analogix-anx78xx.c

[PATCH 10/24] drm/bridge: ps8622: provide an .owner device

2018-04-26 Thread Peter Rosin
The .of_node member is going away. Signed-off-by: Peter Rosin --- drivers/gpu/drm/bridge/parade-ps8622.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/parade-ps8622.c b/drivers/gpu/drm/bridge/parade-ps8622.c index 81198f5e9afa..6dd19a5fcebd 100644

[PATCH 15/24] drm/bridge: tc358767: provide an .owner device

2018-04-26 Thread Peter Rosin
The .of_node member is going away. Signed-off-by: Peter Rosin --- drivers/gpu/drm/bridge/tc358767.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/tc358767.c b/drivers/gpu/drm/bridge/tc358767.c index 08ab7d6aea65..a16573bb8715 100644 --- a/drivers

[PATCH 13/24] drm/bridge: sii8620: provide an .owner device

2018-04-26 Thread Peter Rosin
The .of_node member is going away. Signed-off-by: Peter Rosin --- drivers/gpu/drm/bridge/sil-sii8620.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/sil-sii8620.c b/drivers/gpu/drm/bridge/sil-sii8620.c index 7ab36042a822..650f71003e45 100644 --- a

[PATCH 17/24] drm/exynos: mic: provide an .owner device for the bridge

2018-04-26 Thread Peter Rosin
The .of_node member is going away. Signed-off-by: Peter Rosin --- drivers/gpu/drm/exynos/exynos_drm_mic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_mic.c b/drivers/gpu/drm/exynos/exynos_drm_mic.c index 2174814273e2..453716cb4d3d

[PATCH 22/24] drm/bridge: remove the .of_node member

2018-04-26 Thread Peter Rosin
It is unused. Signed-off-by: Peter Rosin --- drivers/gpu/drm/drm_bridge.c | 3 +-- include/drm/drm_bridge.h | 4 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/drm_bridge.c b/drivers/gpu/drm/drm_bridge.c index 67147673fdeb..9f023bd84d56 100644 --- a

[PATCH 24/24] drm/bridge: establish a link between the bridge supplier and consumer

2018-04-26 Thread Peter Rosin
If the bridge supplier is unbound, this will bring the bridge consumer down along with the bridge. Thus, there will no longer linger any dangling pointers from the bridge consumer (the drm_device) to some non-existent bridge supplier. Signed-off-by: Peter Rosin --- drivers/gpu/drm/drm_bridge.c

[PATCH 20/24] drm/rcar-du: lvds: provide an .owner device for the bridge

2018-04-26 Thread Peter Rosin
The .of_node member is going away. Signed-off-by: Peter Rosin --- drivers/gpu/drm/rcar-du/rcar_lvds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rcar-du/rcar_lvds.c b/drivers/gpu/drm/rcar-du/rcar_lvds.c index 3d2d3bbd1342..5984c70b5590 100644 --- a

[PATCH 23/24] drm/bridge: require the .owner to be filled in on drm_bridge_attach

2018-04-26 Thread Peter Rosin
The .owner will be handy to have around. Signed-off-by: Peter Rosin --- drivers/gpu/drm/drm_bridge.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/drm_bridge.c b/drivers/gpu/drm/drm_bridge.c index 9f023bd84d56..a038da696802 100644 --- a/drivers/gpu/drm/drm_bridge.c

[PATCH 21/24] drm/sti: provide an .owner device for the bridges

2018-04-26 Thread Peter Rosin
The .of_node member is going away and providing an .owner will become mandatory. Signed-off-by: Peter Rosin --- drivers/gpu/drm/sti/sti_dvo.c | 2 +- drivers/gpu/drm/sti/sti_hda.c | 1 + drivers/gpu/drm/sti/sti_hdmi.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a

[PATCH 19/24] drm/msm: specify the .owner of the bridges

2018-04-26 Thread Peter Rosin
This will become mandatory. Signed-off-by: Peter Rosin --- drivers/gpu/drm/msm/dsi/dsi_manager.c | 1 + drivers/gpu/drm/msm/edp/edp_bridge.c | 1 + drivers/gpu/drm/msm/hdmi/hdmi_bridge.c | 1 + 3 files changed, 3 insertions(+) diff --git a/drivers/gpu/drm/msm/dsi/dsi_manager.c b/drivers

[PATCH 18/24] drm/mediatek: hdmi: provide an .owner device for the bridge

2018-04-26 Thread Peter Rosin
The .of_node member is going away. Signed-off-by: Peter Rosin --- drivers/gpu/drm/mediatek/mtk_hdmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_hdmi.c b/drivers/gpu/drm/mediatek/mtk_hdmi.c index 59a11026dceb..b4a7908e0cc6 100644 --- a

[PATCH 16/24] drm/bridge: ti-tfp410: provide an .owner device

2018-04-26 Thread Peter Rosin
The .of_node member is going away. Signed-off-by: Peter Rosin --- drivers/gpu/drm/bridge/ti-tfp410.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/ti-tfp410.c b/drivers/gpu/drm/bridge/ti-tfp410.c index acb857030951..7e5938e988be 100644 --- a/drivers

[PATCH 14/24] drm/bridge: synopsys: provide an .owner device for the bridges

2018-04-26 Thread Peter Rosin
It gets rid of two #ifdefs and the .of_node member is going away. Signed-off-by: Peter Rosin --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 4 +--- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/bridge

[PATCH 11/24] drm/bridge: sii902x: provide an .owner device

2018-04-26 Thread Peter Rosin
The .of_node member is going away. Signed-off-by: Peter Rosin --- drivers/gpu/drm/bridge/sii902x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/sii902x.c b/drivers/gpu/drm/bridge/sii902x.c index 60373d7eb220..0127090f38b3 100644 --- a/drivers/gpu

[PATCH 08/24] drm/bridge: nxp-ptn3460: provide an .owner device

2018-04-26 Thread Peter Rosin
The .of_node member is going away. Signed-off-by: Peter Rosin --- drivers/gpu/drm/bridge/nxp-ptn3460.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/nxp-ptn3460.c b/drivers/gpu/drm/bridge/nxp-ptn3460.c index d64a3283822a..e6a15ec60e12 100644 --- a

[PATCH 12/24] drm/bridge: sii9234: provide an .owner device

2018-04-26 Thread Peter Rosin
The .of_node member is going away. Signed-off-by: Peter Rosin --- drivers/gpu/drm/bridge/sii9234.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/sii9234.c b/drivers/gpu/drm/bridge/sii9234.c index c77000626c22..879d9b5ef4cf 100644 --- a/drivers/gpu

[PATCH 09/24] drm/bridge: panel: provide an .owner device

2018-04-26 Thread Peter Rosin
It gets rid of an #ifdef and the .of_node member is going away. Signed-off-by: Peter Rosin --- drivers/gpu/drm/bridge/panel.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/panel.c b/drivers/gpu/drm/bridge/panel.c index 6d99d4a3beb3..279271a1d7e7

[PATCH 07/24] drm/bridge: megachips-stdpxxxx-ge-b850v3-fw: provide an .owner device

2018-04-26 Thread Peter Rosin
The .of_node member is going away. Signed-off-by: Peter Rosin --- drivers/gpu/drm/bridge/megachips-stdp-ge-b850v3-fw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/megachips-stdp-ge-b850v3-fw.c b/drivers/gpu/drm/bridge/megachips-stdp-ge

[PATCH 05/24] drm/bridge: vga-dac: provide an .owner device

2018-04-26 Thread Peter Rosin
The .of_node member is going away. Signed-off-by: Peter Rosin --- drivers/gpu/drm/bridge/dumb-vga-dac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/dumb-vga-dac.c b/drivers/gpu/drm/bridge/dumb-vga-dac.c index 498d5948d1a8..244f6bfb8967 100644

[PATCH 06/24] drm/bridge: lvds-encoder: provide an .owner device

2018-04-26 Thread Peter Rosin
The .of_node member is going away. Signed-off-by: Peter Rosin --- drivers/gpu/drm/bridge/lvds-encoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/lvds-encoder.c b/drivers/gpu/drm/bridge/lvds-encoder.c index 75b0d3f6e4de..7aa12f4b5745 100644

[PATCH 02/24] drm/bridge: adv7511: provide an .owner device

2018-04-26 Thread Peter Rosin
The .of_node member is going away. Signed-off-by: Peter Rosin --- drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c b/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c index efa29db5fc2b

[PATCH 00/24] device link, bridge supplier <-> drm device

2018-04-26 Thread Peter Rosin
[1] https://lkml.org/lkml/2018/4/23/769 [2] https://www.spinics.net/lists/dri-devel/msg174275.html Peter Rosin (24): drm/bridge: allow optionally specifying an .owner device drm/bridge: adv7511: provide an .owner device drm/bridge/analogix: core: specify the .owner of the bridge drm/bridge

[PATCH 03/24] drm/bridge/analogix: core: specify the .owner of the bridge

2018-04-26 Thread Peter Rosin
This will become mandatory. Signed-off-by: Peter Rosin --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c index 5c52307146c7

Re: [PATCH 00/24] device link, bridge supplier <-> drm device

2018-04-26 Thread Peter Rosin
On 2018-04-27 00:40, Laurent Pinchart wrote: > Hi Peter, > > Thank you for the patches. > > On Friday, 27 April 2018 01:31:15 EEST Peter Rosin wrote: >> Hi! >> >> It was noted by Russel King [1] that bridges (not using components) >> might disappear unex

Re: [PATCH 00/24] device link, bridge supplier <-> drm device

2018-04-27 Thread Peter Rosin
On 2018-04-27 01:18, Laurent Pinchart wrote: > Hi Peter, > > On Friday, 27 April 2018 02:09:14 EEST Peter Rosin wrote: >> On 2018-04-27 00:40, Laurent Pinchart wrote: >>> On Friday, 27 April 2018 01:31:15 EEST Peter Rosin wrote: >>>> Hi! >>>> >&g

Re: [PATCH 00/24] device link, bridge supplier <-> drm device

2018-04-27 Thread Peter Rosin
On 2018-04-27 09:11, Andrzej Hajda wrote: > Hi Peter, > > On 27.04.2018 00:31, Peter Rosin wrote: >> Hi! >> >> It was noted by Russel King [1] that bridges (not using components) >> might disappear unexpectedly if the owner of the bridge was unbound. >> J

Re: [PATCH 00/24] device link, bridge supplier <-> drm device

2018-04-27 Thread Peter Rosin
On 2018-04-27 09:37, Peter Rosin wrote: > On 2018-04-27 09:11, Andrzej Hajda wrote: >> Hi Peter, >> >> On 27.04.2018 00:31, Peter Rosin wrote: >>> Hi! >>> >>> It was noted by Russel King [1] that bridges (not using components) >>> might disa

Re: [PATCH 22/24] drm/bridge: remove the .of_node member

2018-04-30 Thread Peter Rosin
ext] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system] > > url: > https://github.com/0day-ci/linux/commits/Peter-Rosin/device-link-bridge-supplier-drm-device/20180428-135229 > config: arm-allmodconfig (attached as .config)

Re: [PATCH 23/24] drm/bridge: require the .owner to be filled in on drm_bridge_attach

2018-04-30 Thread Peter Rosin
On 2018-04-30 17:24, Daniel Vetter wrote: > On Fri, Apr 27, 2018 at 12:31:38AM +0200, Peter Rosin wrote: >> The .owner will be handy to have around. >> >> Signed-off-by: Peter Rosin >> --- >> drivers/gpu/drm/drm_bridge.c | 3 +++ >> 1 file changed, 3 inser

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

2018-04-30 Thread Peter Rosin
On 2018-04-30 17:32, Daniel Vetter wrote: > On Fri, Apr 27, 2018 at 12:31:39AM +0200, Peter Rosin wrote: >> If the bridge supplier is unbound, this will bring the bridge consumer >> down along with the bridge. Thus, there will no longer linger any >> dangling pointers from the

[PATCH 1/3] drm/sti: do not remove the drm_bridge that was never added

2018-05-02 Thread Peter Rosin
The more natural approach would perhaps be to add an drm_bridge_add, but there are several other bridges that never call drm_bridge_add. Just removing the drm_bridge_remove is the easier fix. Signed-off-by: Peter Rosin --- drivers/gpu/drm/sti/sti_hda.c | 1 - drivers/gpu/drm/sti/sti_hdmi.c | 1

[PATCH 0/3] drm: fix some bridge api misunderstandings

2018-05-02 Thread Peter Rosin
Hi! While looking at various drm bridge users, I came across these issues. Cheers, Peter Peter Rosin (3): drm/sti: do not remove the drm_bridge that was never added drm/rockchip: lvds: avoid duplicating drm_bridge_attach drm/exynos: hdmi: avoid duplicating drm_bridge_attach drivers/gpu

[PATCH 3/3] drm/exynos: hdmi: avoid duplicating drm_bridge_attach

2018-05-02 Thread Peter Rosin
drm_bridge_attach takes care of these assignments, so there is no need to open-code them a second time. Signed-off-by: Peter Rosin --- drivers/gpu/drm/exynos/exynos_hdmi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos

[PATCH 2/3] drm/rockchip: lvds: avoid duplicating drm_bridge_attach

2018-05-02 Thread Peter Rosin
drm_bridge_attach takes care of these assignments, so there is no need to open-code them a second time. Signed-off-by: Peter Rosin --- drivers/gpu/drm/rockchip/rockchip_lvds.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_lvds.c b/drivers/gpu/drm

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

2018-05-28 Thread Peter Rosin
On 2018-05-28 16:27, Boris Brezillon wrote: > Hi Peter, > > On Mon, 28 May 2018 12:10:02 +0200 > Peter Rosin wrote: > >> On 2018-05-28 00:11, Peter Rosin wrote: >>> On 2018-05-27 11:18, Peter Rosin wrote: >>>> On 2018-05-25 16:51, Tudor Ambarus wrote

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

2018-05-28 Thread Peter Rosin
On 2018-05-28 00:11, Peter Rosin wrote: > 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 por

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

2018-05-29 Thread Peter Rosin
On 2018-05-29 08:30, Eugen Hristev wrote: > > > On 28.05.2018 13:10, Peter Rosin wrote: >> On 2018-05-28 00:11, Peter Rosin wrote: >>> On 2018-05-27 11:18, Peter Rosin wrote: >>>> On 2018-05-25 16:51, Tudor Ambarus wrote: >>>>> We think the be

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

2018-05-29 Thread Peter Rosin
(fewer and faster pixels) and the longer time wasn't enough for the smaller panel to catch up. But ok, in combination with something else it might be just enough. Will try tomorrow... On 2018-05-28 18:09, Boris Brezillon wrote: > On Mon, 28 May 2018 17:52:53 +0200 Peter Rosin wrote: &

Re: [PATCH v9 5/7] i2c: fsi: Add transfer implementation

2018-06-04 Thread Peter Rosin
On 2018-06-04 21:00, Eddie James wrote: > Execute I2C transfers from the FSI-attached I2C master. Use polling > instead of interrupts as we have no hardware IRQ over FSI. > > Signed-off-by: Eddie James > --- > drivers/i2c/busses/i2c-fsi.c | 195 > ++- > 1

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

2018-05-15 Thread Peter Rosin
On 2018-05-15 10:58, Wolfram Sang wrote: > Hi Peter, > In i2c_smbus_xfer_emulated(), the function i2c_transfer() is invoked to transfer i2c messages. The number of actual transferred messages is returned and saved to 'status'. If 'status' is negative, that means an error occurr

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