Linux USB
 help / color / mirror / Atom feed
* [PATCH 0/4] onvert enum->pointer for data in the rt1711h match tables
@ 2023-08-20 18:43 Biju Das
  2023-08-20 18:43 ` [PATCH 1/4] usb: typec: tcpci_rt1711h: Make similar OF and ID table Biju Das
                   ` (3 more replies)
  0 siblings, 4 replies; 27+ messages in thread
From: Biju Das @ 2023-08-20 18:43 UTC (permalink / raw)
  To: Guenter Roeck, Heikki Krogerus
  Cc: Biju Das, Greg Kroah-Hartman, linux-usb, Geert Uytterhoeven,
	Dmitry Torokhov, Andy Shevchenko, Andi Shyti, linux-renesas-soc

Convert enum->pointer for data in the match tables, so that
device_get_match_data() can do match against OF/ACPI/I2C tables, once i2c
bus type match support added to it. see [1]

This patch series extend support for retrieving match data for ID lookup.
The first patch fixes the driver_data for ID table and second patch
convert enum->pointer to avoid non zero values as the proposed
solution returns NULL for non-match. The third and fourth patches
replaces comparison of did against hardware differences with data
and feature bit.

This patch series is only compile tested.

[1] https://lore.kernel.org/all/20230804161728.394920-1-biju.das.jz@bp.renesas.com/

Biju Das (4):
  usb: typec: tcpci_rt1711h: Make similar OF and ID table
  usb: typec: tcpci_rt1711h: Convert enum->pointer for data in the match
    tables
  usb: typec: tcpci_rt1711h: Add rxdz_sel variable to struct
    rt1711h_chip_info
  usb: typec: tcpci_rt1711h: Add enable_pd30_extended_message feature
    bit to struct rt1711h_chip_info

 drivers/usb/typec/tcpm/tcpci_rt1711h.c | 38 ++++++++++++++++++--------
 1 file changed, 26 insertions(+), 12 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2023-08-23 15:36 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-20 18:43 [PATCH 0/4] onvert enum->pointer for data in the rt1711h match tables Biju Das
2023-08-20 18:43 ` [PATCH 1/4] usb: typec: tcpci_rt1711h: Make similar OF and ID table Biju Das
2023-08-20 18:44 ` [PATCH 2/4] usb: typec: tcpci_rt1711h: Convert enum->pointer for data in the match tables Biju Das
2023-08-21 13:04   ` Andy Shevchenko
2023-08-21 13:27     ` Geert Uytterhoeven
2023-08-21 15:24       ` Andy Shevchenko
2023-08-21 15:40         ` Geert Uytterhoeven
2023-08-21 16:05           ` Guenter Roeck
2023-08-21 17:08           ` Andy Shevchenko
2023-08-22  7:21             ` Geert Uytterhoeven
2023-08-22 11:44               ` Andy Shevchenko
2023-08-22 12:00                 ` Geert Uytterhoeven
2023-08-22 12:08                   ` Andy Shevchenko
2023-08-22 12:51                     ` Biju Das
2023-08-22 13:23                       ` Andy Shevchenko
2023-08-23 14:49                     ` Andi Shyti
2023-08-23 15:10                       ` Geert Uytterhoeven
2023-08-23 15:20                         ` Greg Kroah-Hartman
2023-08-23 15:36                       ` Dmitry Torokhov
2023-08-21 16:45     ` Biju Das
2023-08-20 18:44 ` [PATCH 3/4] usb: typec: tcpci_rt1711h: Add rxdz_sel variable to struct rt1711h_chip_info Biju Das
2023-08-21 13:06   ` Andy Shevchenko
2023-08-21 13:33     ` Geert Uytterhoeven
2023-08-21 15:26       ` Andy Shevchenko
2023-08-20 18:44 ` [PATCH 4/4] usb: typec: tcpci_rt1711h: Add enable_pd30_extended_message feature bit " Biju Das
2023-08-21 13:08   ` Andy Shevchenko
2023-08-21 14:12     ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox