Thread (46 messages) 46 messages, 5 authors, 2022-02-11

Re: [PATCH v3 5/7] (WIP) drm/solomon: Add SSD130X OLED displays SPI support

From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: 2022-02-09 16:25:22
Also in: dri-devel, lkml

Hi Javier,

On Wed, Feb 9, 2022 at 5:07 PM Javier Martinez Canillas
[off-list ref] wrote:
On 2/9/22 16:17, Andy Shevchenko wrote:
quoted
On Wed, Feb 09, 2022 at 01:25:46PM +0100, Geert Uytterhoeven wrote:
quoted
On Wed, Feb 9, 2022 at 10:12 AM Javier Martinez Canillas
[off-list ref] wrote:
...
quoted
quoted
+               .compatible = "solomon,ssd1305fb-spi",
This needs an update to the DT bindings.
Hence this may be a good time to deprecate the existing
"solomon,ssd130*fb-i2c" compatible values, and switch to
"solomon,ssd130*fb" instead, for both I2C and SPI.
Agree!
Did you see my comment about automatic module loading ? I think
that would be an issue if we use the same compatible for both
I2C and SPI drivers.
We have several drivers that have a core and separate i2c and spi
wrappers, see e.g.

$ git grep -w ltc2947_of_match
drivers/hwmon/ltc2947-core.c:const struct of_device_id ltc2947_of_match[] = {
drivers/hwmon/ltc2947-core.c:EXPORT_SYMBOL_GPL(ltc2947_of_match);
drivers/hwmon/ltc2947-core.c:MODULE_DEVICE_TABLE(of, ltc2947_of_match);
drivers/hwmon/ltc2947-i2c.c:            .of_match_table = ltc2947_of_match,
drivers/hwmon/ltc2947-spi.c:            .of_match_table = ltc2947_of_match,
drivers/hwmon/ltc2947.h:extern const struct of_device_id ltc2947_of_match[];

Are they all broken?

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help