Re: [05/27] macintosh: therm_windtunnel: Export I2C module alias information

2015-08-18 Thread Javier Martinez Canillas
Hello Michael, On 08/18/2015 12:24 PM, Michael Ellerman wrote: On Thu, 2015-30-07 at 16:18:30 UTC, Javier Martinez Canillas wrote: The I2C core always reports the MODALIAS uevent as i2c:client name regardless if the driver was matched using the I2C id_table or the of_match_table. So

Re: [05/27] macintosh: therm_windtunnel: Export I2C module alias information

2015-08-19 Thread Javier Martinez Canillas
Hello Michael, On 08/19/2015 02:51 AM, Michael Ellerman wrote: On Tue, 2015-08-18 at 12:35 +0200, Javier Martinez Canillas wrote: Hello Michael, On 08/18/2015 12:24 PM, Michael Ellerman wrote: On Thu, 2015-30-07 at 16:18:30 UTC, Javier Martinez Canillas wrote: The I2C core always reports

[PATCH 27/27] i2c: (RFC, don't apply) report OF style modalias when probing using DT

2015-07-30 Thread Javier Martinez Canillas
instead so the module can be auto-loaded and also report the correct alias using sysfs: $ cat /sys/class/i2c-adapter/i2c-8/8-004b/modalias of:NtrackpadTNULLCatmel,maxtouch Signed-off-by: Javier Martinez Canillas jav...@osg.samsung.com --- drivers/i2c/i2c-core.c | 8 1 file changed, 8

[PATCH 22/27] macintosh: therm_windtunnel: Export OF module alias information

2015-07-30 Thread Javier Martinez Canillas
if that happens. Signed-off-by: Javier Martinez Canillas jav...@osg.samsung.com --- drivers/macintosh/therm_windtunnel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/macintosh/therm_windtunnel.c b/drivers/macintosh/therm_windtunnel.c index 97269567ec01..68dcbcb4fc5b 100644 --- a/drivers

[PATCH 05/27] macintosh: therm_windtunnel: Export I2C module alias information

2015-07-30 Thread Javier Martinez Canillas
module when the device is added. Signed-off-by: Javier Martinez Canillas jav...@osg.samsung.com --- drivers/macintosh/therm_windtunnel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/macintosh/therm_windtunnel.c b/drivers/macintosh/therm_windtunnel.c index 109dcaa15934

Re: [PATCH 00/27] Export I2C and OF module aliases in missing drivers

2015-07-30 Thread Javier Martinez Canillas
Hello Dmitry, Thanks a lot for your feedback. On 07/30/2015 06:37 PM, Dmitry Torokhov wrote: On Thu, Jul 30, 2015 at 09:35:17AM -0700, Dmitry Torokhov wrote: Hi Javier, On Thu, Jul 30, 2015 at 06:18:25PM +0200, Javier Martinez Canillas wrote: Hello, Short version: This series add

[PATCH 00/27] Export I2C and OF module aliases in missing drivers

2015-07-30 Thread Javier Martinez Canillas
with OF but that don't have a of_match_table. Although arguably, those drivers were relying on the assumption that a MODALIAS=i2c:foo would always be reported even for the OF case which is not the true on other subsystems. [0]: https://lkml.org/lkml/2014/8/28/283 Best regards, Javier Javier Martinez

[PATCH v2 22/22] powerpc/44x: Add generic compatible string for I2C EEPROM

2017-04-13 Thread Javier Martinez Canillas
by: Javier Martinez Canillas <jav...@osg.samsung.com> --- Changes in v2: None arch/powerpc/boot/dts/warp.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/boot/dts/warp.dts b/arch/powerpc/boot/dts/warp.dts index e576ee85c42f..5b36dbf6c9f4 100644 --- a/a

[PATCH v2 19/22] powerpc/512x: Add generic compatible string for I2C EEPROM

2017-04-13 Thread Javier Martinez Canillas
by: Javier Martinez Canillas <jav...@osg.samsung.com> --- Changes in v2: None arch/powerpc/boot/dts/mpc5121ads.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/boot/dts/mpc5121ads.dts b/arch/powerpc/boot/dts/mpc5121ads.dts index 75888ce2c792..dd2

[PATCH v2 00/22] eeprom: at24: Add OF device ID table

2017-04-13 Thread Javier Martinez Canillas
hange is a no-op and the OF device table won't be used without the DTS changes. [0]: https://lkml.org/lkml/2017/3/14/589 [1]: https://lkml.org/lkml/2017/3/15/99 Best regards, Javier Changes in v2: - Only add a single OF device ID entry for each device type (Wolfram Sang). Javier Martinez Canillas (22

[PATCH v2 21/22] powerpc/5200: Add generic compatible string for I2C EEPROM

2017-04-13 Thread Javier Martinez Canillas
by: Javier Martinez Canillas <jav...@osg.samsung.com> --- Changes in v2: None arch/powerpc/boot/dts/pcm030.dts | 2 +- arch/powerpc/boot/dts/pcm032.dts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/boot/dts/pcm030.dts b/arch/powerpc/boot/dts/

[PATCH v2 18/22] powerpc/fsl: Add generic compatible string for I2C EEPROM

2017-04-13 Thread Javier Martinez Canillas
by: Javier Martinez Canillas <jav...@osg.samsung.com> --- Changes in v2: None arch/powerpc/boot/dts/fsl/b4qds.dtsi| 8 arch/powerpc/boot/dts/fsl/c293pcie.dts | 2 +- arch/powerpc/boot/dts/fsl/p1010rdb.dtsi | 2 +- arch/powerpc/boot/dts/fsl/p1023rdb.dts | 2 +- arch/powe

[PATCH v3 18/21] powerpc/fsl: Add generic compatible string for I2C EEPROM

2017-04-13 Thread Javier Martinez Canillas
by: Javier Martinez Canillas <jav...@osg.samsung.com> --- Changes in v3: None Changes in v2: None arch/powerpc/boot/dts/fsl/b4qds.dtsi| 8 arch/powerpc/boot/dts/fsl/c293pcie.dts | 2 +- arch/powerpc/boot/dts/fsl/p1010rdb.dtsi | 2 +- arch/powerpc/boot/dts/fsl/p1023rdb.dt

[PATCH v3 19/21] powerpc/512x: Add generic compatible string for I2C EEPROM

2017-04-13 Thread Javier Martinez Canillas
by: Javier Martinez Canillas <jav...@osg.samsung.com> --- Changes in v3: None Changes in v2: None arch/powerpc/boot/dts/mpc5121ads.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/boot/dts/mpc5121ads.dts b/arch/powerpc/boot/dts/mpc5121ads.dts in

[PATCH v3 00/21] eeprom: at24: Add OF device ID table

2017-04-13 Thread Javier Martinez Canillas
eter Rosin acked-by tag. - Add Geert Uytterhoeven reviewed-by tag. - Add Geert Uytterhoeven reviewed-by tag. Changes in v2: - Only add a single OF device ID entry for each device type (Wolfram Sang). Javier Martinez Canillas (21): dt-bindings: i2c: eeprom: Document manufacturer used as generic fallb

[PATCH v3 17/21] powerpc/5200: Add generic compatible string for I2C EEPROM

2017-04-13 Thread Javier Martinez Canillas
by: Javier Martinez Canillas <jav...@osg.samsung.com> --- Changes in v3: None Changes in v2: None arch/powerpc/boot/dts/digsy_mtc.dts | 2 +- arch/powerpc/boot/dts/pcm030.dts| 2 +- arch/powerpc/boot/dts/pcm032.dts| 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --gi

[PATCH v3 20/21] powerpc/83xx: Add generic compatible string for I2C EEPROM

2017-04-13 Thread Javier Martinez Canillas
by: Javier Martinez Canillas <jav...@osg.samsung.com> --- Changes in v3: None Changes in v2: None arch/powerpc/boot/dts/mpc8308_p1m.dts | 2 +- arch/powerpc/boot/dts/mpc8349emitx.dts | 2 +- arch/powerpc/boot/dts/mpc8377_rdb.dts | 2 +- arch/powerpc/boot/dts/mpc8377_wlan.dts | 2 +- arch/

[PATCH v3 21/21] powerpc/44x: Add generic compatible string for I2C EEPROM

2017-04-13 Thread Javier Martinez Canillas
by: Javier Martinez Canillas <jav...@osg.samsung.com> --- Changes in v3: None Changes in v2: None arch/powerpc/boot/dts/warp.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/boot/dts/warp.dts b/arch/powerpc/boot/dts/warp.dts index e576ee85c42f..19e

[PATCH v2 17/22] powerpc/5200: Add generic compatible string for I2C EEPROM

2017-04-13 Thread Javier Martinez Canillas
by: Javier Martinez Canillas <jav...@osg.samsung.com> --- Changes in v2: None arch/powerpc/boot/dts/digsy_mtc.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/boot/dts/digsy_mtc.dts b/arch/powerpc/boot/dts/digsy_mtc.dts index 955bff629df3..6c804254b885 1

[PATCH v2 20/22] powerpc/83xx: Add generic compatible string for I2C EEPROM

2017-04-13 Thread Javier Martinez Canillas
by: Javier Martinez Canillas <jav...@osg.samsung.com> --- Changes in v2: None arch/powerpc/boot/dts/mpc8308_p1m.dts | 2 +- arch/powerpc/boot/dts/mpc8349emitx.dts | 2 +- arch/powerpc/boot/dts/mpc8377_rdb.dts | 2 +- arch/powerpc/boot/dts/mpc8377_wlan.dts | 2 +- arch/powerpc/boot/dts

Re: [RESEND PATCH v5 00/16] eeprom: at24: Add OF device ID table

2017-07-31 Thread Javier Martinez Canillas
Hello Wolfram, On Mon, Jul 31, 2017 at 5:30 PM, Wolfram Sang wrote: > >> Patches can be applied independently since the DTS changes without driver >> changes are no-op and the OF table won't be used without the DTS changes. > > But there is a dependency, no? If I apply the

Re: [RESEND PATCH v5 00/16] eeprom: at24: Add OF device ID table

2017-07-10 Thread Javier Martinez Canillas
Hello Wolfram, On Thu, Jun 15, 2017 at 8:54 PM, Javier Martinez Canillas <jav...@dowhile0.org> wrote: > > This series is a follow-up to patch [0] that added an OF device ID table > to the at24 EEPROM driver. As you suggested [1], this version instead of > adding entries for

[PATCH v4 00/20] eeprom: at24: Add OF device ID table

2017-05-22 Thread Javier Martinez Canillas
iewed-by tag. Changes in v2: - Only add a single OF device ID entry for each device type (Wolfram Sang). Javier Martinez Canillas (20): dt-bindings: i2c: eeprom: Document vendor to be used and deprecated ones eeprom: at24: Add OF device ID table ARM: dts: omap: Add generic compatible stri

[PATCH v4 16/20] powerpc/5200: Add generic compatible string for I2C EEPROM

2017-05-22 Thread Javier Martinez Canillas
by: Javier Martinez Canillas <jav...@dowhile0.org> --- Changes in v4: - Only use the atmel manufacturer in the compatible string instead of keeping the deprecated ones (Rob Herring). Changes in v3: None Changes in v2: None arch/powerpc/boot/dts/digsy_mtc.dts | 2 +- arch/powerpc/boo

[PATCH v4 18/20] powerpc/512x: Add generic compatible string for I2C EEPROM

2017-05-22 Thread Javier Martinez Canillas
by: Javier Martinez Canillas <jav...@dowhile0.org> --- Changes in v4: - Only use the atmel manufacturer in the compatible string instead of keeping the deprecated ones (Rob Herring). Changes in v3: None Changes in v2: None arch/powerpc/boot/dts/mpc5121ads.dts | 2 +- 1 file changed, 1

Re: [PATCH v4 00/20] eeprom: at24: Add OF device ID table

2017-05-22 Thread Javier Martinez Canillas
Hello Geert and Rob, On Mon, May 22, 2017 at 4:26 PM, Rob Herring <r...@kernel.org> wrote: > On Mon, May 22, 2017 at 9:23 AM, Geert Uytterhoeven > <ge...@linux-m68k.org> wrote: >> Hi Javier, >> >> On Mon, May 22, 2017 at 4:01 PM, Javier Martinez Can

[PATCH v4 17/20] powerpc/fsl: Add generic compatible string for I2C EEPROM

2017-05-22 Thread Javier Martinez Canillas
by: Javier Martinez Canillas <jav...@dowhile0.org> --- Changes in v4: - Only use the atmel manufacturer in the compatible string instead of keeping the deprecated ones (Rob Herring). Changes in v3: None Changes in v2: None arch/powerpc/boot/dts/fsl/b4qds.dtsi| 8 arch/powe

[PATCH v4 19/20] powerpc/83xx: Add generic compatible string for I2C EEPROM

2017-05-22 Thread Javier Martinez Canillas
by: Javier Martinez Canillas <jav...@dowhile0.org> --- Changes in v4: - Only use the atmel manufacturer in the compatible string instead of keeping the deprecated ones (Rob Herring). Changes in v3: None Changes in v2: None arch/powerpc/boot/dts/mpc8308_p1m.dts | 2 +- arch/

[PATCH v4 20/20] powerpc/44x: Add generic compatible string for I2C EEPROM

2017-05-22 Thread Javier Martinez Canillas
by: Javier Martinez Canillas <jav...@dowhile0.org> --- Changes in v4: - Only use the atmel manufacturer in the compatible string instead of keeping the deprecated ones (Rob Herring). Changes in v3: None Changes in v2: None arch/powerpc/boot/dts/warp.dts | 2 +- 1 file changed, 1

Re: [PATCH v4 00/20] eeprom: at24: Add OF device ID table

2017-05-22 Thread Javier Martinez Canillas
Hello Geert, On Mon, May 22, 2017 at 9:30 PM, Geert Uytterhoeven <ge...@linux-m68k.org> wrote: > Hi Javier, > > On Mon, May 22, 2017 at 7:15 PM, Javier Martinez Canillas > <jav...@dowhile0.org> wrote: >>>> I also wonder why this is really needed if AFAI

Re: [PATCH v4 00/20] eeprom: at24: Add OF device ID table

2017-05-22 Thread Javier Martinez Canillas
Hello Rob, Thanks a lot for your feedback. On Mon, May 22, 2017 at 6:52 PM, Rob Herring <r...@kernel.org> wrote: > On Mon, May 22, 2017 at 9:46 AM, Javier Martinez Canillas > <jav...@dowhile0.org> wrote: [snip] >>>> | > >>>> | > at24@50

[PATCH v5 18/20] powerpc/512x: Add generic compatible string for I2C EEPROM

2017-05-23 Thread Javier Martinez Canillas
by: Javier Martinez Canillas <jav...@dowhile0.org> --- Changes in v5: None Changes in v4: - Only use the atmel manufacturer in the compatible string instead of keeping the deprecated ones (Rob Herring). Changes in v3: None Changes in v2: None arch/powerpc/boot/dts/mpc5121ads.dts | 2 +-

[PATCH v5 20/20] powerpc/44x: Add generic compatible string for I2C EEPROM

2017-05-23 Thread Javier Martinez Canillas
by: Javier Martinez Canillas <jav...@dowhile0.org> --- Changes in v5: None Changes in v4: - Only use the atmel manufacturer in the compatible string instead of keeping the deprecated ones (Rob Herring). Changes in v3: None Changes in v2: None arch/powerpc/boot/dts/warp.dts | 2 +- 1

[PATCH v5 19/20] powerpc/83xx: Add generic compatible string for I2C EEPROM

2017-05-23 Thread Javier Martinez Canillas
by: Javier Martinez Canillas <jav...@dowhile0.org> --- Changes in v5: - Only replace atmel variant but keep other EEPROM vendors (Geert Uytterhoeven). Changes in v4: - Only use the atmel manufacturer in the compatible string instead of keeping the deprecated ones (Rob Herring). Cha

Re: [PATCH v4 19/20] powerpc/83xx: Add generic compatible string for I2C EEPROM

2017-05-23 Thread Javier Martinez Canillas
Hello Rob, On Tue, May 23, 2017 at 3:42 PM, Rob Herring <r...@kernel.org> wrote: > On Mon, May 22, 2017 at 9:02 AM, Javier Martinez Canillas > <jav...@dowhile0.org> wrote: >> The at24 driver allows to register I2C EEPROM chips using different vendor >> and devic

[PATCH v5 00/20] eeprom: at24: Add OF device ID table

2017-05-23 Thread Javier Martinez Canillas
alues for "atmel,24c02" and "atmel,24c64" entries. - Add Geert Uytterhoeven reviewed-by tag. - Add Geert Uytterhoeven reviewed-by tag. Changes in v2: - Only add a single OF device ID entry for each device type (Wolfram Sang). Javier Martinez Canillas (20): dt-bindings: i2c

[PATCH v5 17/20] powerpc/fsl: Add generic compatible string for I2C EEPROM

2017-05-23 Thread Javier Martinez Canillas
by: Javier Martinez Canillas <jav...@dowhile0.org> --- Changes in v5: - Only replace atmel variant but keep other EEPROM vendors (Geert Uytterhoeven). Changes in v4: - Only use the atmel manufacturer in the compatible string instead of keeping the deprecated ones (Rob Herring). Cha

[PATCH v5 16/20] powerpc/5200: Add generic compatible string for I2C EEPROM

2017-05-23 Thread Javier Martinez Canillas
by: Javier Martinez Canillas <jav...@dowhile0.org> --- Changes in v5: - Only replace atmel variant but keep other EEPROM vendors (Geert Uytterhoeven). Changes in v4: - Only use the atmel manufacturer in the compatible string instead of keeping the deprecated ones (Rob Herring). Cha

Re: [PATCH v5 00/20] eeprom: at24: Add OF device ID table

2017-06-01 Thread Javier Martinez Canillas
Hello Wolfram, On Tue, May 23, 2017 at 3:34 PM, Javier Martinez Canillas <jav...@dowhile0.org> wrote: > > This series is a follow-up to patch [0] that added an OF device ID table > to the at24 EEPROM driver. As you suggested [1], this version instead of > adding entries for

[RESEND PATCH v5 16/16] powerpc/44x: Add generic compatible string for I2C EEPROM

2017-06-15 Thread Javier Martinez Canillas
by: Javier Martinez Canillas <jav...@dowhile0.org> --- Changes in v5: None Changes in v4: - Only use the atmel manufacturer in the compatible string instead of keeping the deprecated ones (Rob Herring). Changes in v3: None Changes in v2: None arch/powerpc/boot/dts/warp.dts | 2 +- 1

[RESEND PATCH v5 00/16] eeprom: at24: Add OF device ID table

2017-06-15 Thread Javier Martinez Canillas
ecated ones (Rob Herring). Changes in v3: - Fix wrong .data values for "atmel,24c02" and "atmel,24c64" entries. - Add Geert Uytterhoeven reviewed-by tag. - Add Geert Uytterhoeven reviewed-by tag. Changes in v2: - Only add a single OF device ID entry for each device type (Wolfram

[RESEND PATCH v5 15/16] powerpc/83xx: Add generic compatible string for I2C EEPROM

2017-06-15 Thread Javier Martinez Canillas
by: Javier Martinez Canillas <jav...@dowhile0.org> --- Changes in v5: - Only replace atmel variant but keep other EEPROM vendors (Geert Uytterhoeven). Changes in v4: - Only use the atmel manufacturer in the compatible string instead of keeping the deprecated ones (Rob Herring). Cha

[RESEND PATCH v5 14/16] powerpc/512x: Add generic compatible string for I2C EEPROM

2017-06-15 Thread Javier Martinez Canillas
by: Javier Martinez Canillas <jav...@dowhile0.org> --- Changes in v5: None Changes in v4: - Only use the atmel manufacturer in the compatible string instead of keeping the deprecated ones (Rob Herring). Changes in v3: None Changes in v2: None arch/powerpc/boot/dts/mpc5121ads.dts | 2 +-

[RESEND PATCH v5 13/16] powerpc/fsl: Add generic compatible string for I2C EEPROM

2017-06-15 Thread Javier Martinez Canillas
by: Javier Martinez Canillas <jav...@dowhile0.org> --- Changes in v5: - Only replace atmel variant but keep other EEPROM vendors (Geert Uytterhoeven). Changes in v4: - Only use the atmel manufacturer in the compatible string instead of keeping the deprecated ones (Rob Herring). Cha

[RESEND PATCH v5 12/16] powerpc/5200: Add generic compatible string for I2C EEPROM

2017-06-15 Thread Javier Martinez Canillas
by: Javier Martinez Canillas <jav...@dowhile0.org> --- Changes in v5: - Only replace atmel variant but keep other EEPROM vendors (Geert Uytterhoeven). Changes in v4: - Only use the atmel manufacturer in the compatible string instead of keeping the deprecated ones (Rob Herring). Cha

Re: [RESEND PATCH v5 00/16] eeprom: at24: Add OF device ID table

2017-08-30 Thread Javier Martinez Canillas
Hello Wolfram, On Tue, Aug 29, 2017 at 10:48 AM, Wolfram Sang wrote: > >> I don't have a DT based system at hand now, but I'll test it again and >> let you know probably tomorrow. > > I will try again today, too. Thanks! > Ok, I had some time to do some tests again. I used

Re: [RESEND PATCH v5 00/16] eeprom: at24: Add OF device ID table

2017-08-30 Thread Javier Martinez Canillas
> > I think we should talk about the same case: Let me repeat what I did: > > 1) I added your patch "eeprom: at24: Add OF device ID table" > 2) I added an EEPROM node to an I2C > > + eeprom@50 { > + compatible = "renesas,24c01"; > + reg = <0x50>; > + }; > >

Re: [RESEND PATCH v5 00/16] eeprom: at24: Add OF device ID table

2017-08-30 Thread Javier Martinez Canillas
Hello Geert, On Wed, Aug 30, 2017 at 10:15 PM, Geert Uytterhoeven <ge...@linux-m68k.org> wrote: > Hi Javier, > > On Wed, Aug 30, 2017 at 9:57 PM, Javier Martinez Canillas > <jav...@dowhile0.org> wrote: >>> I think we should talk about the same case: Let me repe

Re: [RESEND PATCH v5 00/16] eeprom: at24: Add OF device ID table

2017-08-29 Thread Javier Martinez Canillas
Hello Wolfram, On Mon, Aug 28, 2017 at 6:01 PM, Wolfram Sang wrote: > >> > But there is a dependency, no? If I apply the driver patch, >> > non-converted device trees will not find their eeproms anymore. So, I >> >> I don't think that's correct. If you apply this patch before

Re: [PATCH 1/2] of: Create platform devices for OF framebuffers

2022-04-13 Thread Javier Martinez Canillas
y = node; > + break; > + } > + for_each_node_by_type(node, "display") { > + if (!of_get_property(node, "linux,opened", NULL) || node == > boot_display) > + continue; > + of_platform_device_create(

Re: [PATCH 2/2] fbdev: Remove hot-unplug workaround for framebuffers without device

2022-04-13 Thread Javier Martinez Canillas
Or at least a warning if the do_unregister_framebuffer() call is removed. Regardless of what you chose to do, the patch looks good to me. Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH v4 2/5] fbdev: Replace fb_pgprotect() with pgprot_framebuffer()

2023-09-20 Thread Javier Martinez Canillas
Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v5 2/5] fbdev: Replace fb_pgprotect() with pgprot_framebuffer()

2023-09-22 Thread Javier Martinez Canillas
* fix commit message (Christophe) > v3: > * rename fb_pgprotect() to pgprot_framebuffer() (Arnd) > > Signed-off-by: Thomas Zimmermann > Reviewed-by: Arnd Bergmann > Acked-by: Geert Uytterhoeven # m68k > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v4 1/5] fbdev: Avoid file argument in fb_pgprotect()

2023-09-20 Thread Javier Martinez Canillas
https://elixir.bootlin.com/linux/v6.6-rc2/source/arch/powerpc/kernel/pci-common.c#L524 That function indeed doesn't use the file argument. So your patch looks correct to me. Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v2 2/2] fbdev: Warn in hot-unplug workaround for framebuffers without device

2022-04-20 Thread Javier Martinez Canillas
rm device, the workaround hould no longer > be triggered. Update it with a warning and rewrite the comment. Fbdev > drivers that trigger the hot-unplug workaround really need to be fixed. > > Signed-off-by: Thomas Zimmermann > Suggested-by: Javier Martinez Canillas > --- Reviewed-b

Re: [PATCH 2/2] fbdev: Remove hot-unplug workaround for framebuffers without device

2022-04-19 Thread Javier Martinez Canillas
ble-api-nonsense.rst but still my opinion is that having a warning for a couple of releases if registered_fb[i]->device is NULL, instead of just crashing would be a better way to handle this. > With offb converted, we could practically remove all of the checks here > and call platform_device_unregister() unconditionally. > Yes for mainline, but as mentioned I thought mostly about out-of-tree. If folks agree that we shouldn't care about these, I'm Ok with that as well. -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH 1/2] MAINTAINERS: Broaden scope of simpledrm entry

2022-05-19 Thread Javier Martinez Canillas
frastructure. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas I think you could push this without waiting for 2/2 to be ready. > MAINTAINERS | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/MAINTAINERS b

Re: [PATCH 2/2] drm/tiny: Add ofdrm for Open Firmware framebuffers

2022-05-20 Thread Javier Martinez Canillas
ptimization to cache this. > + /* > + * TODO: The ofdrm driver converts framebuffers to the native > + * format when copying them to device memory. If there are more > + * formats listed than supported by the driver, the native format > + * is not supported by the conversion helpers. Therefore *only* > + * support the native format and add a conversion helper ASAP. > + */ > + if (drm_WARN_ONCE(dev, i != odev->nformats, > + "format conversion helpers required for %p4cc", > + >format->format)) { > + odev->nformats = 1; > + } > + Interesting. Did you find some formats that were not supported ? The rest of the patch looks good to me, thanks a lot for writing this. Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH 6/6] i2c: Make remove callback return void

2022-06-29 Thread Javier Martinez Canillas
return 0; > } > > static void ssd130x_i2c_shutdown(struct i2c_client *client) Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH 6/6] i2c: Make remove callback return void

2022-06-29 Thread Javier Martinez Canillas
; Good idea, even patchwork made a mess of it, see > https://patchwork.ozlabs.org/project/linuxppc-dev/patch/20220628140313.74984-7-u.kleine-koe...@pengutronix.de/ > FYI, for patches like these what I usually use is: ./scripts/get_maintainer.pl --nogit-fallback --no-m --no-r -- Best regards

Re: [PATCH v2 03/10] drm/simpledrm: Remove pdev field from device structure

2022-07-25 Thread Javier Martinez Canillas
On 7/20/22 16:27, Thomas Zimmermann wrote: > Replace the remaining uses of the field pdev by upcasts from the Linux > device and remove the field. > > Signed-off-by: Thomas Zimmermann Much better indeed. Acked-by: Javier Martinez Canillas -- Best regards, Javier Martinez Ca

Re: [PATCH v2 01/10] drm/simpledrm: Remove mem field from device structure

2022-07-25 Thread Javier Martinez Canillas
On 7/20/22 16:27, Thomas Zimmermann wrote: > Remove the unused mem field from struct simpledrm_device. > > Signed-off-by: Thomas Zimmermann > --- Acked-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH v2 02/10] drm/simpledrm: Inline device-init helpers

2022-07-25 Thread Javier Martinez Canillas
is desirable? Without this additional context, this feels like going backwards, since you are dropping few helpers that have quite self contained code and making simpledrm_device_create() much larger. -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH v2 04/10] drm/simpledrm: Compute framebuffer stride if not set

2022-07-25 Thread Javier Martinez Canillas
o simplefb configuration found\n"); >> return ERR_PTR(-ENODEV); >> } >> + if (!stride) >> + stride = format->cpp[0] * width; > > DIV_ROUND_UP(drm_format_info_bpp(format) * width, 8) > I think you meant he

Re: [PATCH v2 05/10] drm/simpledrm: Convert to atomic helpers

2022-07-25 Thread Javier Martinez Canillas
On 7/20/22 16:27, Thomas Zimmermann wrote: > Replace the simple-KMS helpers with the regular atomic helpers. The > regular helpers are better architectured and therefore allow for easier > code sharing among drivers. No functional changes. > Acked-by: Javier Martinez Canilla

Re: [PATCH v2 06/10] drm/simpledrm: Move some functionality into fwfb helper library

2022-07-25 Thread Javier Martinez Canillas
s_end = fourccs + nfourccs; > + > + while (fourccs < fourccs_end) { > + if (*fourccs == fourcc) > + return true; > + ++fourccs; > + } > + return false; > +} This seems a helper that could be useful besides the drm_fwfb_helper.c file. I bel

Re: [PATCH v2 07/10] drm/ofdrm: Add ofdrm for Open Firmware framebuffers

2022-07-26 Thread Javier Martinez Canillas
ormat is pre-initialized by the system's firmware. Runtime > modesetting via DRM is not possible. The display is useful during > early boot stages or as error fallback. > I'm not familiar with OF display but the driver looks good to me. Reviewed-by: Javier Martinez Canillas I just have

Re: [PATCH v2 08/10] drm/ofdrm: Add CRTC state

2022-07-26 Thread Javier Martinez Canillas
On 7/20/22 16:27, Thomas Zimmermann wrote: > Add a dedicated CRTC state to ofdrm to later store information for > palette updates. > > Signed-off-by: Thomas Zimmermann > --- > drivers/gpu/drm/tiny/ofdrm.c | 62 ++-- > Reviewed-by: Jav

Re: [PATCH v2 10/10] drm/ofdrm: Support color management

2022-07-26 Thread Javier Martinez Canillas
m's custom CRTC state. The CRTC's atomic_flush > helper updates the palette for the format as needed. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas [...] > +static void __iomem *ofdrm_mach64_cmap_ioremap(struct ofdrm_device *odev, > +

Re: [PATCH v2 09/10] drm/ofdrm: Add per-model device function

2022-07-26 Thread Javier Martinez Canillas
On 7/20/22 16:27, Thomas Zimmermann wrote: > Add a per-model device-function structure in preparation of adding > color-management support. Detection of the individual models has been > taken from fbdev's offb. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier

Re: [PATCH v2 09/10] drm/ofdrm: Add per-model device function

2022-07-26 Thread Javier Martinez Canillas
Hello Michal, On 7/26/22 16:40, Michal Suchánek wrote: > Hello, > > On Tue, Jul 26, 2022 at 03:38:37PM +0200, Javier Martinez Canillas wrote: >> On 7/20/22 16:27, Thomas Zimmermann wrote: >>> Add a per-model device-function structure in preparation of adding >

Re: [PATCH v2 02/10] drm/simpledrm: Inline device-init helpers

2022-07-27 Thread Javier Martinez Canillas
Hello Thomas, On 7/27/22 09:50, Thomas Zimmermann wrote: > Hi > > Am 25.07.22 um 17:01 schrieb Javier Martinez Canillas: >> Hello Thomas, >> >> On 7/20/22 16:27, Thomas Zimmermann wrote: >>> Inline the helpers for initializing the hardware FB, the memor

Re: [PATCH v2 06/10] drm/simpledrm: Move some functionality into fwfb helper library

2022-07-27 Thread Javier Martinez Canillas
On 7/27/22 10:24, Thomas Zimmermann wrote: > Hi > > Am 25.07.22 um 18:23 schrieb Javier Martinez Canillas: >> On 7/20/22 16:27, Thomas Zimmermann wrote: >>> Move some of simpledrm's functionality into a helper library. Other >>> drivers for firmware-provided fram

Re: [PATCH v2 10/10] drm/ofdrm: Support color management

2022-07-27 Thread Javier Martinez Canillas
can be applied in >> the .atomic_flush callback ? > > Yeah, this code is one reason for not sharing atomic_check in fwfb. The > other reason is that the fwfb code is only a wrapper around the atomic > helpers with little extra value. I did have such fwfb helpers a some > point, but removed them. > Got it. -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH 1/2] of: Create platform devices for OF framebuffers

2022-04-13 Thread Javier Martinez Canillas
pending on PPC. I'll drop > of_platform_populate_framebuffers() from the patch and make a separate > implementation of of_platform_default_populate_init for PPC. Seems like > the easiest solution to me. > That sounds reasonable to me as well. Feel free to retain my R-B tag when posting v2. -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat

Re: [PATCH v4 5/5] drm/ofdrm: Support big-endian scanout buffers

2022-10-13 Thread Javier Martinez Canillas
at switches to this driver instead. Specially since both fbdev and DRM drivers match against the same "display" OF compatible string. -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v4 5/5] drm/ofdrm: Support big-endian scanout buffers

2022-10-11 Thread Javier Martinez Canillas
ld is BE or LE or if the Device Tree has an explicit node defining the endianess. The patch looks good to me: Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 02/11] fbdev: Transfer video= option strings to caller; clarify ownership

2023-02-17 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Hi > > Am 17.02.23 um 09:37 schrieb Javier Martinez Canillas: >> Thomas Zimmermann writes: >> >>> In fb_get_options(), always duplicate the returned option string and >>> transfer ownership of the memory to the function's cal

Re: [PATCH 01/11] fbdev: Fix contact info in fb_cmdline.c

2023-02-17 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Fix Daniel's email address. No functional changes. > > Signed-off-by: Thomas Zimmermann > Cc: Daniel Vetter > --- Reviewed-by: Javier Martinez Canillas Best regards, Javier

Re: [PATCH 02/11] fbdev: Transfer video= option strings to caller; clarify ownership

2023-02-17 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > In fb_get_options(), always duplicate the returned option string and > transfer ownership of the memory to the function's caller. > > Until now, only the global option string got duplicated and transferred > to the caller; the per-driver options were owned by

Re: [PATCH 03/11] fbdev: Support NULL for name in option-string lookup

2023-02-17 Thread Javier Martinez Canillas
name could be NULL ? Reviewed-by: Javier Martinez Canillas Best regards, Javier

Re: [PATCH 04/11] drivers/ps3: Read video= option with fb_get_option()

2023-02-17 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Get the kernel's global video= parameter with fb_get_option(). Done > to unexport the internal fbdev state fb_mode_config. No functional > changes. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas Best regards, Javier

Re: [PATCH 05/11] fbdev: Read video= option with fb_get_option() in modedb

2023-02-17 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Get the kernel's global video= parameter with fb_get_option(). Done > to unexport the internal fbdev state fb_mode_config. No functional > changes. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas Best regards, Javier

Re: [PATCH 06/11] fbdev: Unexport fb_mode_option

2023-02-17 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > There are no external users of fb_mode_option. Unexport the variable > and declare it static. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas Best regards, Javier

Re: [PATCH 07/11] fbdev: Move option-string lookup into helper

2023-02-17 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Move the lookup of the option string into an internal helper. No > functional changes. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas Best regards, Javier

Re: [PATCH 08/11] fbdev: Handle video= parameter in video/cmdline.c

2023-02-17 Thread Javier Martinez Canillas
actual > purpose it not clear to me. Use 'video=off' or 'nomodeset' instead. > s/it/is > Signed-off-by: Thomas Zimmermann > --- [..] > +#include /* for FB_MAX */ I believe including is enough here. Reviewed-by: Javier Martinez Canillas Best regards, Javier

Re: [PATCH 09/11] driver/ps3: Include for mode parsing

2023-02-17 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Include in ps3av.c to get video_get_options() and > avoid the dependency on . The replaced function > fb_get_options() is just a tiny wrapper around video_get_opions(). No > functional changes. > > Signed-off-by: Thomas Zimmermann > --- Reviewe

Re: [PATCH 10/11] drm: Include for mode parsing

2023-02-17 Thread Javier Martinez Canillas
(), which had been > provided via . > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas Best regards, Javier

Re: [PATCH 11/11] drm: Fix comment on mode parsing

2023-02-17 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Do not claim that there's a default mode in the video= option parser. > if no option string has been given, the parser does nothing. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas Best regards, Javier

Re: [PATCH 2/4] vgacon: rework screen_info #ifdef checks

2023-07-07 Thread Javier Martinez Canillas
ot;[IA64-SGI] pcdp: add PCDP pci interface support") ? > unsigned long vga_console_membase; And this is only used by mdacon (not supported by ia64), vgacon and vga16fb (not supported by ia64 either). So this could just be guarded just by CONFIG_VGA_CONSOLE for ia64 ? The rest of the patch looks g

Re: [PATCH 2/4] vgacon: rework screen_info #ifdef checks

2023-07-07 Thread Javier Martinez Canillas
"Arnd Bergmann" writes: > On Fri, Jul 7, 2023, at 15:40, Javier Martinez Canillas wrote: [...] >> And this is only used by mdacon (not supported by ia64), vgacon and >> vga16fb (not supported by ia64 either). >> >> So this could just be guarded just by CO

Re: [PATCH v2 7/9] vga16fb: drop powerpc support

2023-07-19 Thread Javier Martinez Canillas
lly used this was removed in linux-3.10, so this is all dead > code and can be removed. > > The big-endian support in vga16fb.c could also be removed, but I'd just > leave this in place. > > Fixes: 933ee7119fb14 ("powerpc: remove PReP platform") > Signed-off-by: Arnd

Re: [PATCH v2 9/9] efi: move screen_info into efi init code

2023-07-19 Thread Javier Martinez Canillas
t have at least one of the > users enabled. > > Signed-off-by: Arnd Bergmann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v2 6/9] vgacon: clean up global screen_info instances

2023-07-19 Thread Javier Martinez Canillas
t; between VGA text console and framebuffer through the screen_info data. > > Signed-off-by: Arnd Bergmann > --- Patch looks good to me, but I'm not that familiar with some of the arches to give a proper reviewed-by. Acked-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v2 5/9] vgacon: remove screen_info dependency

2023-07-19 Thread Javier Martinez Canillas
ll a function instead, and pass a reference to the screen_info > there. > > Signed-off-by: Arnd Bergmann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH v2 8/9] hyperv: avoid dependency on screen_info

2023-07-19 Thread Javier Martinez Canillas
hyperv fb and just skip this code if there is no sysfb that needs to > be unregistered. > > Signed-off-by: Arnd Bergmann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 10/12] fbdev/core: Use fb_is_primary_device() in fb_firmware_edid()

2023-07-05 Thread Javier Martinez Canillas
enough and the check is redundant. Still, I think that this change should be documented in your commit message. With that change, Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 08/12] drivers/firmware: Remove trailing whitespaces

2023-07-05 Thread Javier Martinez Canillas
Thomas Zimmermann writes: > Fix coding style. No functional changes. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 01/12] efi: Do not include from EFI header

2023-07-04 Thread Javier Martinez Canillas
heuvel > Cc: Russell King > Cc: Catalin Marinas > Cc: Will Deacon > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

Re: [PATCH 02/12] fbdev/sm712fb: Do not include

2023-07-04 Thread Javier Martinez Canillas
Sudip Mukherjee > Cc: Teddy Wang > Cc: Helge Deller > --- Reviewed-by: Javier Martinez Canillas -- Best regards, Javier Martinez Canillas Core Platforms Red Hat

  1   2   >