All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/8] usb: typec: fusb302: cleanup device driver probe
@ 2026-11-13 16:42 Sebastian Reichel
  2026-11-13 16:42 ` [PATCH 1/8] usb: typec: tcpm: allocate pd_list entries non device managed Sebastian Reichel
                   ` (7 more replies)
  0 siblings, 8 replies; 17+ messages in thread
From: Sebastian Reichel @ 2026-11-13 16:42 UTC (permalink / raw)
  To: Heikki Krogerus, Greg Kroah-Hartman, Badhri Jagan Sridharan
  Cc: linux-usb, linux-kernel, kernel, Sebastian Reichel

Move fusb302 to be fully converted to device managed resources
instead of having a mix risking leaks and clean up the interrupt
setup.

These have been tested for over half a year locally with different
Rockchip boards. I waited for [0] to land, so that the DRM HPD auxillary
device registration can also be dropped. As that series drags forever,
let's get these cleanups processed independently.

Note, that this first cleanups the GPIO interrupt handling and then drops
it completley. The rationale is, that the last patch has a (low) chance of
regressing somebody's system and having to be reverted. In that case the
custom interrupt GPIO API should be properly documented (as deprecated)
and we want at least the cleanups.

The series is based on 7.4-rc2 instead of Greg's usb-next branch (based
on 7.4-rc1 and still empty), which is relevant for the first patch as
older versions had devm_kzalloc() instead of devm_kzalloc_obj().

[0] https://lore.kernel.org/linux-rockchip/20261020072816.180-3-kernel@airkyi.com/

Greetings,

-- Sebastian

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
---
Sebastian Reichel (8):
      usb: typec: tcpm: allocate pd_list entries non device managed
      usb: typec: tcpm: add device managed port registration
      usb: typec: fusb302: Switch to device managed resources
      usb: typec: fusb302: switch to devm_pm_set_wake_irq
      usb: typec: fusb302: rename init_gpio into fusb302_init_irq
      usb: typec: fusb302: move gpio_int_n into function local scope
      usb: typec: fusb302: rework gpio_int_n_irq handling
      usb: typec: fusb302: drop custom gpio interrupt logic

 drivers/usb/typec/tcpm/fusb302.c | 160 +++++++++++++++++----------------------
 drivers/usb/typec/tcpm/tcpm.c    |  29 ++++++-
 include/linux/usb/tcpm.h         |   3 +
 3 files changed, 101 insertions(+), 91 deletions(-)
---
base-commit: 7475ea8b58616b33c04afb976cf0fbaad9dd63fb
change-id: 20261113-fusb302-probe-cleanup-9b1adac8b81f

Best regards,
--  
Sebastian Reichel <sebastian.reichel@collabora.com>


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

end of thread, other threads:[~2026-11-13 17:51 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-13 16:42 [PATCH 0/8] usb: typec: fusb302: cleanup device driver probe Sebastian Reichel
2026-11-13 16:42 ` [PATCH 1/8] usb: typec: tcpm: allocate pd_list entries non device managed Sebastian Reichel
2026-11-13 16:55   ` sashiko-bot
2026-11-13 16:42 ` [PATCH 2/8] usb: typec: tcpm: add device managed port registration Sebastian Reichel
2026-11-13 17:06   ` sashiko-bot
2026-11-13 16:42 ` [PATCH 3/8] usb: typec: fusb302: Switch to device managed resources Sebastian Reichel
2026-11-13 17:21   ` sashiko-bot
2026-11-13 16:42 ` [PATCH 4/8] usb: typec: fusb302: switch to devm_pm_set_wake_irq Sebastian Reichel
2026-11-13 17:34   ` sashiko-bot
2026-11-13 16:42 ` [PATCH 5/8] usb: typec: fusb302: rename init_gpio into fusb302_init_irq Sebastian Reichel
2026-11-13 17:35   ` sashiko-bot
2026-11-13 16:42 ` [PATCH 6/8] usb: typec: fusb302: move gpio_int_n into function local scope Sebastian Reichel
2026-11-13 17:36   ` sashiko-bot
2026-11-13 16:42 ` [PATCH 7/8] usb: typec: fusb302: rework gpio_int_n_irq handling Sebastian Reichel
2026-11-13 17:41   ` sashiko-bot
2026-11-13 16:42 ` [PATCH 8/8] usb: typec: fusb302: drop custom gpio interrupt logic Sebastian Reichel
2026-11-13 17:51   ` sashiko-bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.