[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240503-module-owner-usb-serial-v2-0-7887769dbeff@linaro.org>
Date: Fri, 03 May 2024 12:10:51 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Johan Hovold <johan@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org,
Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
Subject: [PATCH v2 0/2] USB: store owner from modules with
usb_serial_register_drivers()
Changes in v2:
- Squash .owner removalr patches into one (Johan)
- Drop owner from f81534 driver
- kerneldoc "module/owner" -> module (Johan)
- Fix amba->usb copypasta
- Link to v1: https://lore.kernel.org/r/20240328-module-owner-usb-serial-v1-0-bc46c9ffbf56@linaro.org
Description
===========
Modules registering driver with usb_serial_register_drivers() might
forget to set .owner field.
Solve the problem by moving this task away from the drivers to the core
USB code, just like we did for platform_driver in commit
9447057eaff8 ("platform_device: use a macro instead of
platform_driver_register").
Best regards,
Krzysztof
---
Krzysztof Kozlowski (2):
USB: serial: store owner from modules with usb_serial_register_drivers()
USB: serial: drop driver owner initialization
drivers/usb/serial/aircable.c | 1 -
drivers/usb/serial/ark3116.c | 1 -
drivers/usb/serial/belkin_sa.c | 1 -
drivers/usb/serial/ch341.c | 1 -
drivers/usb/serial/cp210x.c | 1 -
drivers/usb/serial/cyberjack.c | 1 -
drivers/usb/serial/cypress_m8.c | 3 ---
drivers/usb/serial/digi_acceleport.c | 2 --
drivers/usb/serial/empeg.c | 1 -
drivers/usb/serial/f81232.c | 2 --
drivers/usb/serial/f81534.c | 1 -
drivers/usb/serial/ftdi_sio.c | 1 -
drivers/usb/serial/garmin_gps.c | 1 -
drivers/usb/serial/generic.c | 1 -
drivers/usb/serial/io_edgeport.c | 4 ----
drivers/usb/serial/io_ti.c | 2 --
drivers/usb/serial/ipaq.c | 1 -
drivers/usb/serial/ipw.c | 1 -
drivers/usb/serial/ir-usb.c | 1 -
drivers/usb/serial/iuu_phoenix.c | 1 -
drivers/usb/serial/keyspan.c | 4 ----
drivers/usb/serial/keyspan_pda.c | 2 --
drivers/usb/serial/kl5kusb105.c | 1 -
drivers/usb/serial/kobil_sct.c | 1 -
drivers/usb/serial/mct_u232.c | 1 -
drivers/usb/serial/metro-usb.c | 1 -
drivers/usb/serial/mos7720.c | 1 -
drivers/usb/serial/mos7840.c | 1 -
drivers/usb/serial/mxuport.c | 1 -
drivers/usb/serial/navman.c | 1 -
drivers/usb/serial/omninet.c | 1 -
drivers/usb/serial/opticon.c | 1 -
drivers/usb/serial/option.c | 1 -
drivers/usb/serial/oti6858.c | 1 -
drivers/usb/serial/pl2303.c | 1 -
drivers/usb/serial/qcaux.c | 1 -
drivers/usb/serial/qcserial.c | 1 -
drivers/usb/serial/quatech2.c | 1 -
drivers/usb/serial/safe_serial.c | 1 -
drivers/usb/serial/sierra.c | 1 -
drivers/usb/serial/spcp8x5.c | 1 -
drivers/usb/serial/ssu100.c | 1 -
drivers/usb/serial/symbolserial.c | 1 -
drivers/usb/serial/ti_usb_3410_5052.c | 2 --
drivers/usb/serial/upd78f0730.c | 1 -
drivers/usb/serial/usb-serial-simple.c | 1 -
drivers/usb/serial/usb-serial.c | 12 +++++++-----
drivers/usb/serial/usb_debug.c | 2 --
drivers/usb/serial/visor.c | 3 ---
drivers/usb/serial/whiteheat.c | 2 --
drivers/usb/serial/wishbone-serial.c | 1 -
drivers/usb/serial/xr_serial.c | 1 -
drivers/usb/serial/xsens_mt.c | 1 -
include/linux/usb/serial.h | 7 +++++--
54 files changed, 12 insertions(+), 76 deletions(-)
---
base-commit: 0a5adf0bc8a1c2a6439d632e49471f64f84d3cef
change-id: 20240328-module-owner-usb-serial-8a067f622b70
Best regards,
--
Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
Powered by blists - more mailing lists