From: Shashank Balaji <shashank.mahadasyam@sony.com>
To: Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Bastien Nocera <hadess@hadess.net>,
Matthias Kaehlcke <mka@chromium.org>,
Valentina Manea <valentina.manea.m@gmail.com>,
Shuah Khan <shuah@kernel.org>, Hongren Zheng <i@zenithal.me>,
Heikki Krogerus <heikki.krogerus@linux.intel.com>
Cc: linux-usb@vger.kernel.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org,
Daniel Palmer <daniel.palmer@sony.com>,
Rahul Bukte <rahul.bukte@sony.com>, Tim Bird <tim.bird@sony.com>,
linux-embedded@vger.kernel.org,
Shashank Balaji <shashank.mahadasyam@sony.com>
Subject: [PATCH 0/4] usb: enable sysfs module symlink for more built-in drivers
Date: Wed, 22 Jul 2026 12:31:20 +0900 [thread overview]
Message-ID: <20260722-mod_name_usb-v1-0-96d781530f3f@sony.com> (raw)
This is in continuation to [1].
struct device_driver's mod_name is not set by a number of bus' driver registration
functions. Without that, built-in drivers don't have the module symlink in sysfs.
We want this to go from unbound driver name -> module name -> kernel config name.
This is useful on embedded platforms to minimize kernel config, reduce kernel size,
and reduce boot time.
This patchset adds mod_name to usb-related drivers.
[1] https://lore.kernel.org/all/20260518-acpi_mod_name-v5-0-705ccc430885@sony.com/
Signed-off-by: Shashank Balaji <shashank.mahadasyam@sony.com>
---
Shashank Balaji (4):
usb: core: pass THIS_MODULE implicitly through a macro
usb: core: set mod_name in driver registration
usb: typec: set mod_name in driver registration
usb: ulpi: set mod_name in driver registration
include/linux/ulpi/driver.h | 4 ++--
include/linux/usb.h | 6 ++++--
include/linux/usb/typec_altmode.h | 4 ++--
drivers/net/usb/r8152.c | 2 +-
drivers/usb/common/ulpi.c | 4 +++-
drivers/usb/core/driver.c | 10 ++++++----
drivers/usb/core/usb.c | 2 +-
drivers/usb/misc/apple-mfi-fastcharge.c | 2 +-
drivers/usb/misc/onboard_usb_dev.c | 2 +-
drivers/usb/typec/bus.c | 4 +++-
drivers/usb/usbip/stub_main.c | 2 +-
11 files changed, 25 insertions(+), 17 deletions(-)
---
base-commit: 248951ddc14de84de3910f9b13f51491a8cd91df
change-id: 20260722-mod_name_usb-e3baf58e1e1e
Best regards,
--
Shashank Balaji <shashank.mahadasyam@sony.com>
next reply other threads:[~2026-07-22 3:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-22 3:31 Shashank Balaji [this message]
2026-07-22 3:31 ` [PATCH 1/4] usb: core: pass THIS_MODULE implicitly through a macro Shashank Balaji
2026-07-27 12:19 ` Bastien Nocera
2026-07-22 3:31 ` [PATCH 2/4] usb: core: set mod_name in driver registration Shashank Balaji
2026-07-22 3:31 ` [PATCH 3/4] usb: typec: " Shashank Balaji
2026-07-27 11:39 ` Heikki Krogerus
2026-07-22 3:31 ` [PATCH 4/4] usb: ulpi: " Shashank Balaji
2026-07-23 23:07 ` [PATCH 0/4] usb: enable sysfs module symlink for more built-in drivers Bird, Tim
2026-07-27 12:21 ` Bastien Nocera
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260722-mod_name_usb-v1-0-96d781530f3f@sony.com \
--to=shashank.mahadasyam@sony.com \
--cc=andrew+netdev@lunn.ch \
--cc=daniel.palmer@sony.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=gregkh@linuxfoundation.org \
--cc=hadess@hadess.net \
--cc=heikki.krogerus@linux.intel.com \
--cc=i@zenithal.me \
--cc=kuba@kernel.org \
--cc=linux-embedded@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mka@chromium.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=rahul.bukte@sony.com \
--cc=shuah@kernel.org \
--cc=tim.bird@sony.com \
--cc=valentina.manea.m@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox