parport: Cleanup some pre-devmodel code
Subsystems (14)
cover parport: Cleanup some pre-devmodel code
From: "Dr. David Alan Gilbert" <[email protected]>
There are some remenants of the pre-devmodel code still in the parport drivers; try and clean some of them out.
This series should have no visible change, all the drivers already use the devmodel, it's just removing the flags that say that, and cleaning out no longer used function pointers. (To me the most useful bit is removing the no longer used 'attach' pointer, so if you've got code that's trying to use it you'll get educated).
Trivially tested in qemu, I can still write to the lp;
Also checked with grep -r 'struct parport_driver' . -A 9 to see if I've missed any.
(I found this while dragging the out-of-tree ppscsi code into working on head, so that I could use my prehistoric HP PP scanner)
Dave
Dr. David Alan Gilbert (3):
parport: Remove 'drivers' list
parport: Remove attach function pointer
parport: Remove parport_driver.devmodel
drivers/ata/pata_parport/pata_parport.c | 1 - drivers/auxdisplay/ks0108.c | 1 - drivers/auxdisplay/panel.c | 1 - drivers/char/lp.c | 1 - drivers/char/ppdev.c | 1 - drivers/i2c/busses/i2c-parport.c | 1 - drivers/input/joystick/db9.c | 1 - drivers/input/joystick/gamecon.c | 1 - drivers/input/joystick/turbografx.c | 1 - drivers/input/joystick/walkera0701.c | 1 - drivers/input/serio/parkbd.c | 1 - drivers/net/hamradio/baycom_epp.c | 1 - drivers/net/hamradio/baycom_par.c | 1 - drivers/net/plip/plip.c | 1 - drivers/parport/daisy.c | 1 - drivers/parport/share.c | 9 --------- drivers/pps/clients/pps_parport.c | 1 - drivers/pps/generators/pps_gen_parport.c | 1 - drivers/scsi/imm.c | 1 - drivers/scsi/ppa.c | 1 - drivers/spi/spi-butterfly.c | 1 - drivers/spi/spi-lm70llp.c | 1 - include/linux/parport.h | 6 ------ sound/drivers/mts64.c | 1 - sound/drivers/portman2x4.c | 1 - 25 files changed, 38 deletions(-)
Signature · 1 line
2.44.0
PATCH 2/3 parport: Remove attach function pointer
From: "Dr. David Alan Gilbert" <[email protected]>
The attach function pointers haven't actually been called since:
'commit 3275158fa52a ("parport: remove use of devmodel")'
topped adding entries to the drivers list.
If you're converting a driver, look at the 'match_port' function pointer instead.
(There are lots of comment references to 'attach' all over, but they probably need some deeper understanding to check the semantics to see if they can be replaced by match_port).
--- include/linux/parport.h | 1 - 1 file changed, 1 deletion(-)
include/linux/parport.h +0 -1
@@ -252,7 +252,6 @@ struct parport {struct parport_driver {const char *name; -void (*attach) (struct parport *);void (*detach) (struct parport *);void (*match_port)(struct parport *);int (*probe)(struct pardevice *);
Signature · 1 line
2.44.0
PATCH 3/3 parport: Remove parport_driver.devmodel
In reply to [email protected]From: "Dr. David Alan Gilbert" <[email protected]>
'devmodel' hasn't actually been used since:
'commit 3275158fa52a ("parport: remove use of devmodel")'
and everyone now has it set to true and has been fixed up; remove the flag.
(There are still comments all over about it)
--- drivers/ata/pata_parport/pata_parport.c | 1 - drivers/auxdisplay/ks0108.c | 1 - drivers/auxdisplay/panel.c | 1 - drivers/char/lp.c | 1 - drivers/char/ppdev.c | 1 - drivers/i2c/busses/i2c-parport.c | 1 - drivers/input/joystick/db9.c | 1 - drivers/input/joystick/gamecon.c | 1 - drivers/input/joystick/turbografx.c | 1 - drivers/input/joystick/walkera0701.c | 1 - drivers/input/serio/parkbd.c | 1 - drivers/net/hamradio/baycom_epp.c | 1 - drivers/net/hamradio/baycom_par.c | 1 - drivers/net/plip/plip.c | 1 - drivers/parport/daisy.c | 1 - drivers/pps/clients/pps_parport.c | 1 - drivers/pps/generators/pps_gen_parport.c | 1 - drivers/scsi/imm.c | 1 - drivers/scsi/ppa.c | 1 - drivers/spi/spi-butterfly.c | 1 - drivers/spi/spi-lm70llp.c | 1 - include/linux/parport.h | 4 ---- sound/drivers/mts64.c | 1 - sound/drivers/portman2x4.c | 1 - 24 files changed, 27 deletions(-)
drivers/ata/pata_parport/pata_parport.c +0 -1
@@ -768,7 +768,6 @@ static struct parport_driver pata_parport_driver = { .name = DRV_NAME, .match_port = pata_parport_attach, .detach = pata_parport_detach, - .devmodel = true, };static __init int pata_parport_init (void )
drivers/auxdisplay/ks0108.c +0 -1
@@ -162,7 +162,6 @@ static struct parport_driver ks0108_parport_driver = { .name = "ks0108", .match_port = ks0108_parport_attach, .detach = ks0108_parport_detach, - .devmodel = true, };module_parport_driver (ks0108_parport_driver);
drivers/auxdisplay/panel.c +0 -1
@@ -1706,7 +1706,6 @@ static struct parport_driver panel_driver = { .name = "panel", .match_port = panel_attach, .detach = panel_detach, - .devmodel = true, };module_parport_driver (panel_driver);
drivers/char/lp.c +0 -1
@@ -1016,7 +1016,6 @@ static struct parport_driver lp_driver = { .name = "lp", .match_port = lp_attach, .detach = lp_detach, - .devmodel = true, };static int __init lp_init (void )
drivers/char/ppdev.c +0 -1
@@ -832,7 +832,6 @@ static struct parport_driver pp_driver = { .probe = pp_probe, .match_port = pp_attach, .detach = pp_detach, - .devmodel = true, };static int __init ppdev_init (void )
drivers/i2c/busses/i2c-parport.c +0 -1
@@ -400,7 +400,6 @@ static struct parport_driver i2c_parport_driver = { .name = "i2c-parport", .match_port = i2c_parport_attach, .detach = i2c_parport_detach, - .devmodel = true, };module_parport_driver (i2c_parport_driver);
drivers/input/joystick/db9.c +0 -1
@@ -673,7 +673,6 @@ static struct parport_driver db9_parport_driver = { .name = "db9", .match_port = db9_attach, .detach = db9_detach, - .devmodel = true, };static int __init db9_init (void )
drivers/input/joystick/gamecon.c +0 -1
@@ -1016,7 +1016,6 @@ static struct parport_driver gc_parport_driver = { .name = "gamecon", .match_port = gc_attach, .detach = gc_detach, - .devmodel = true, };static int __init gc_init (void )
drivers/input/joystick/turbografx.c +0 -1
@@ -274,7 +274,6 @@ static struct parport_driver tgfx_parport_driver = { .name = "turbografx", .match_port = tgfx_attach, .detach = tgfx_detach, - .devmodel = true, };static int __init tgfx_init (void )
drivers/input/joystick/walkera0701.c +0 -1
@@ -293,7 +293,6 @@ static struct parport_driver walkera0701_parport_driver = { .name = "walkera0701", .match_port = walkera0701_attach, .detach = walkera0701_detach, - .devmodel = true, };module_parport_driver (walkera0701_parport_driver);
drivers/input/serio/parkbd.c +0 -1
@@ -218,6 +218,5 @@ static struct parport_driver parkbd_parport_driver = { .name = "parkbd", .match_port = parkbd_attach, .detach = parkbd_detach, - .devmodel = true, };module_parport_driver (parkbd_parport_driver);
drivers/net/hamradio/baycom_epp.c +0 -1
@@ -1193,7 +1193,6 @@ static int baycom_epp_par_probe(struct pardevice *par_dev)static struct parport_driver baycom_epp_par_driver = { .name ="bce" , .probe = baycom_epp_par_probe, - .devmodel = true, };static void __init baycom_epp_dev_setup (struct net_device *dev)
drivers/net/hamradio/baycom_par.c +0 -1
@@ -503,7 +503,6 @@ static int baycom_par_probe(struct pardevice *par_dev)static struct parport_driver baycom_par_driver = { .name ="bcp" , .probe = baycom_par_probe, - .devmodel = true, };static int __init init_baycompar (void )
drivers/net/plip/plip.c +0 -1
@@ -1358,7 +1358,6 @@ static struct parport_driver plip_driver = { .probe = plip_probe, .match_port = plip_attach, .detach = plip_detach, - .devmodel = true, }; static void __exit plip_cleanup_module (void)
drivers/parport/daisy.c +0 -1
@@ -97,7 +97,6 @@ static int daisy_drv_probe(struct pardevice *par_dev)static struct parport_driver daisy_driver = { .name ="daisy_drv" , .probe = daisy_drv_probe, - .devmodel = true, };/* Discover the IEEE1284.3 topology on a port -- muxes and daisy chains.
drivers/pps/clients/pps_parport.c +0 -1
@@ -216,7 +216,6 @@ static struct parport_driver pps_parport_driver = { .name = KBUILD_MODNAME, .match_port = parport_attach, .detach = parport_detach, - .devmodel = true, };module_parport_driver (pps_parport_driver);
drivers/pps/generators/pps_gen_parport.c +0 -1
@@ -232,7 +232,6 @@ static struct parport_driver pps_gen_parport_driver = { .name = KBUILD_MODNAME, .match_port = parport_attach, .detach = parport_detach, - .devmodel = true, };module_parport_driver (pps_gen_parport_driver);
drivers/scsi/imm.c +0 -1
@@ -1285,7 +1285,6 @@ static struct parport_driver imm_driver = { .name = "imm", .match_port = imm_attach, .detach = imm_detach, - .devmodel = true, };module_parport_driver (imm_driver);
drivers/scsi/ppa.c +0 -1
@@ -1157,7 +1157,6 @@ static struct parport_driver ppa_driver = { .name = "ppa", .match_port = ppa_attach, .detach = ppa_detach, - .devmodel = true, };module_parport_driver (ppa_driver);
drivers/spi/spi-butterfly.c +0 -1
@@ -315,7 +315,6 @@ static struct parport_driver butterfly_driver = { .name = "spi_butterfly", .match_port = butterfly_attach, .detach = butterfly_detach, - .devmodel = true, };module_parport_driver (butterfly_driver);
drivers/spi/spi-lm70llp.c +0 -1
@@ -318,7 +318,6 @@ static struct parport_driver spi_lm70llp_drv = { .name = DRVNAME, .match_port = spi_lm70llp_attach, .detach = spi_lm70llp_detach, - .devmodel = true, };module_parport_driver (spi_lm70llp_drv);
include/linux/parport.h +0 -4
@@ -256,7 +256,6 @@ struct parport_driver {void (*match_port)(struct parport *);int (*probe)(struct pardevice *);struct device_driver driver; -bool devmodel; };#define to_parport_driver (n) container_of(n, struct parport_driver, driver)
@@ -299,9 +298,6 @@ int __must_check __parport_register_driver(struct parport_driver *,* to receive notifications about ports being found in the * system, as well as ports no longer available. * -* If devmodel is true then the new device model is used -* for registration. -* * The @driver structure is allocated by the caller and must not be * deallocated until after calling parport_unregister_driver(). *
sound/drivers/mts64.c +0 -1
@@ -882,7 +882,6 @@ static struct parport_driver mts64_parport_driver = { .probe = snd_mts64_dev_probe, .match_port = snd_mts64_attach, .detach = snd_mts64_detach, - .devmodel = true, };/*********************************************************************
sound/drivers/portman2x4.c +0 -1
@@ -668,7 +668,6 @@ static struct parport_driver portman_parport_driver = { .probe = snd_portman_dev_probe, .match_port = snd_portman_attach, .detach = snd_portman_detach, - .devmodel = true, };/*********************************************************************
Signature · 1 line
2.44.0
PATCH 1/3 parport: Remove 'drivers' list
In reply to [email protected]From: "Dr. David Alan Gilbert" <[email protected]>
The list has been empty since:
'commit 3275158fa52a ("parport: remove use of devmodel")'
This also means we can remove the 'list_head' from struct parport_driver.
--- drivers/parport/share.c | 9 --------- include/linux/parport.h | 1 - 2 files changed, 10 deletions(-)
drivers/parport/share.c +0 -9
@@ -49,8 +49,6 @@ static DEFINE_SPINLOCK(parportlist_lock);static LIST_HEAD (all_ports);static DEFINE_SPINLOCK (full_list_lock); -static LIST_HEAD (drivers); -static DEFINE_MUTEX (registration_lock);/* What you can do to a port that's gone away.. */
@@ -165,10 +163,6 @@ static int driver_check(struct device_driver *dev_drv, void *_port)static void attach_driver_chain (struct parport *port) {/* caller has exclusive registration_lock */ -struct parport_driver *drv; - -list_for_each_entry (drv, &drivers, list) - drv->attach (port);/* * call the driver_check function of the drivers registered in
@@ -191,10 +185,7 @@ static int driver_detach(struct device_driver *_drv, void *_port)/* Call detach(port) for each registered driver. */ static void detach_driver_chain (struct parport *port) { -struct parport_driver *drv;/* caller has exclusive registration_lock */ -list_for_each_entry (drv, &drivers, list) - drv->detach (port);/* * call the detach function of the drivers registered in
include/linux/parport.h +0 -1
@@ -258,7 +258,6 @@ struct parport_driver {int (*probe)(struct pardevice *);struct device_driver driver;bool devmodel; -struct list_head list; };#define to_parport_driver (n) container_of(n, struct parport_driver, driver)
Signature · 1 line
2.44.0
Quoted 4 lines · * [email protected] ([email protected]) wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
There are some remenants of the pre-devmodel code still in the parport drivers; try and clean some of them out.
Ping!
Dave
Quoted 53 lines
This series should have no visible change, all the drivers already use the devmodel, it's just removing the flags that say that, and cleaning out no longer used function pointers. (To me the most useful bit is removing the no longer used 'attach' pointer, so if you've got code that's trying to use it you'll get educated).
Trivially tested in qemu, I can still write to the lp;
Also checked with grep -r 'struct
parport_driver' . -A 9 to see if I've missed any.(I found this while dragging the out-of-tree ppscsi code into working on head, so that I could use my prehistoric HP PP scanner)
Dave
Dr. David Alan Gilbert (3):
parport: Remove 'drivers' list
parport: Remove attach function pointer
parport: Remove parport_driver.devmodeldrivers/ata/pata_parport/pata_parport.c | 1 - drivers/auxdisplay/ks0108.c | 1 - drivers/auxdisplay/panel.c | 1 - drivers/char/lp.c | 1 - drivers/char/ppdev.c | 1 - drivers/i2c/busses/i2c-parport.c | 1 - drivers/input/joystick/db9.c | 1 - drivers/input/joystick/gamecon.c | 1 - drivers/input/joystick/turbografx.c | 1 - drivers/input/joystick/walkera0701.c | 1 - drivers/input/serio/parkbd.c | 1 - drivers/net/hamradio/baycom_epp.c | 1 - drivers/net/hamradio/baycom_par.c | 1 - drivers/net/plip/plip.c | 1 - drivers/parport/daisy.c | 1 - drivers/parport/share.c | 9 --------- drivers/pps/clients/pps_parport.c | 1 - drivers/pps/generators/pps_gen_parport.c | 1 - drivers/scsi/imm.c | 1 - drivers/scsi/ppa.c | 1 - drivers/spi/spi-butterfly.c | 1 - drivers/spi/spi-lm70llp.c | 1 - include/linux/parport.h | 6 ------ sound/drivers/mts64.c | 1 - sound/drivers/portman2x4.c | 1 - 25 files changed, 38 deletions(-)Signature · 1 line
2.44.0
Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/
Quoted 7 lines · * Dr. David Alan Gilbert ([email protected]) wrote:
Quoted 4 lines · * [email protected] ([email protected]) wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
There are some remenants of the pre-devmodel code still in the parport drivers; try and clean some of them out.
Ping!
Ping^2.
Dave
Quoted 61 lines
Dave
Quoted 53 lines
This series should have no visible change, all the drivers already use the devmodel, it's just removing the flags that say that, and cleaning out no longer used function pointers. (To me the most useful bit is removing the no longer used 'attach' pointer, so if you've got code that's trying to use it you'll get educated).
Trivially tested in qemu, I can still write to the lp;
Also checked with grep -r 'struct
parport_driver' . -A 9 to see if I've missed any.(I found this while dragging the out-of-tree ppscsi code into working on head, so that I could use my prehistoric HP PP scanner)
Dave
Dr. David Alan Gilbert (3):
parport: Remove 'drivers' list
parport: Remove attach function pointer
parport: Remove parport_driver.devmodeldrivers/ata/pata_parport/pata_parport.c | 1 - drivers/auxdisplay/ks0108.c | 1 - drivers/auxdisplay/panel.c | 1 - drivers/char/lp.c | 1 - drivers/char/ppdev.c | 1 - drivers/i2c/busses/i2c-parport.c | 1 - drivers/input/joystick/db9.c | 1 - drivers/input/joystick/gamecon.c | 1 - drivers/input/joystick/turbografx.c | 1 - drivers/input/joystick/walkera0701.c | 1 - drivers/input/serio/parkbd.c | 1 - drivers/net/hamradio/baycom_epp.c | 1 - drivers/net/hamradio/baycom_par.c | 1 - drivers/net/plip/plip.c | 1 - drivers/parport/daisy.c | 1 - drivers/parport/share.c | 9 --------- drivers/pps/clients/pps_parport.c | 1 - drivers/pps/generators/pps_gen_parport.c | 1 - drivers/scsi/imm.c | 1 - drivers/scsi/ppa.c | 1 - drivers/spi/spi-butterfly.c | 1 - drivers/spi/spi-lm70llp.c | 1 - include/linux/parport.h | 6 ------ sound/drivers/mts64.c | 1 - sound/drivers/portman2x4.c | 1 - 25 files changed, 38 deletions(-)Signature · 1 line
2.44.0Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/
Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/
Quoted 10 lines · * Dr. David Alan Gilbert ([email protected]) wrote:
Quoted 7 lines · * Dr. David Alan Gilbert ([email protected]) wrote:
Quoted 4 lines · * [email protected] ([email protected]) wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
There are some remenants of the pre-devmodel code still in the parport drivers; try and clean some of them out.
Ping!
Ping^2.
Ping^3
(Added Sudip's other email address, and also cc'd linux-hardening)
Dave
Quoted 69 lines
Dave
Quoted 61 lines
Dave
Quoted 53 lines
This series should have no visible change, all the drivers already use the devmodel, it's just removing the flags that say that, and cleaning out no longer used function pointers. (To me the most useful bit is removing the no longer used 'attach' pointer, so if you've got code that's trying to use it you'll get educated).
Trivially tested in qemu, I can still write to the lp;
Also checked with grep -r 'struct
parport_driver' . -A 9 to see if I've missed any.(I found this while dragging the out-of-tree ppscsi code into working on head, so that I could use my prehistoric HP PP scanner)
Dave
Dr. David Alan Gilbert (3):
parport: Remove 'drivers' list
parport: Remove attach function pointer
parport: Remove parport_driver.devmodeldrivers/ata/pata_parport/pata_parport.c | 1 - drivers/auxdisplay/ks0108.c | 1 - drivers/auxdisplay/panel.c | 1 - drivers/char/lp.c | 1 - drivers/char/ppdev.c | 1 - drivers/i2c/busses/i2c-parport.c | 1 - drivers/input/joystick/db9.c | 1 - drivers/input/joystick/gamecon.c | 1 - drivers/input/joystick/turbografx.c | 1 - drivers/input/joystick/walkera0701.c | 1 - drivers/input/serio/parkbd.c | 1 - drivers/net/hamradio/baycom_epp.c | 1 - drivers/net/hamradio/baycom_par.c | 1 - drivers/net/plip/plip.c | 1 - drivers/parport/daisy.c | 1 - drivers/parport/share.c | 9 --------- drivers/pps/clients/pps_parport.c | 1 - drivers/pps/generators/pps_gen_parport.c | 1 - drivers/scsi/imm.c | 1 - drivers/scsi/ppa.c | 1 - drivers/spi/spi-butterfly.c | 1 - drivers/spi/spi-lm70llp.c | 1 - include/linux/parport.h | 6 ------ sound/drivers/mts64.c | 1 - sound/drivers/portman2x4.c | 1 - 25 files changed, 38 deletions(-)Signature · 1 line
2.44.0Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/
Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/
Sudip Mukherjee
maintainerQuoted 9 lines · Dr. David Alan Gilbert
Quoted 7 lines · * Dr. David Alan Gilbert ([email protected]) wrote:
Quoted 6 lines · * Dr. David Alan Gilbert ([email protected]) wrote:
Quoted 4 lines · * [email protected] ([email protected]) wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
There are some remenants of the pre-devmodel code still in the parport drivers; try and clean some of them out.
Quoted 9 lines
Quoted 3 lines
Quoted 1 line
Ping!
Ping^2.
Ping^3
(Added Sudip's other email address, and also cc'd linux-hardening)
Apologies for the delay. Somehow it missed my filters. I will check it by this weekend.
Signature · 2 lines
Regards Sudip
Quoted 14 lines · * Sudip Mukherjee ([email protected]) wrote:
Quoted 13 lines · Dr. David Alan Gilbert
Quoted 10 lines · * Dr. David Alan Gilbert ([email protected]) wrote:
Quoted 7 lines · * Dr. David Alan Gilbert ([email protected]) wrote:
Quoted 4 lines · * [email protected] ([email protected]) wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
There are some remenants of the pre-devmodel code still in the parport drivers; try and clean some of them out.
Ping!
Ping^2.
Quoted 8 lines
Quoted 5 lines
Ping^3
(Added Sudip's other email address, and also cc'd linux-hardening)
Apologies for the delay. Somehow it missed my filters. I will check it by this weekend.
Thanks, that would be great.
Dave
Quoted 5 lines
Signature · 3 lines
-- Regards Sudip
Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/
Re: [PATCH 1/3] parport: Remove 'drivers' list
In reply to [email protected]Quoted 9 lines · On Thu, May 02, 2024 at 04:48:21PM +0100, [email protected] wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
The list has been empty since:
'commit3275158fa52a("parport: remove use of devmodel")'This also means we can remove the '
list_head' from structparport_driver.Signed-off-by Dr. David Alan Gilbert <[email protected]>
Greg, can you please take the series.
Signature · 2 lines
Regards Sudip
Re: [PATCH 2/3] parport: Remove attach function pointer
In reply to [email protected]Quoted 6 lines · On Thu, May 02, 2024 at 04:48:22PM +0100, [email protected] wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
The attach function pointers haven't actually been called since:
'commit3275158fa52a("parport: remove use of devmodel")'
topped adding entries to the drivers list.
Quoted 8 lines
If you're converting a driver, look at the '
match_port' function pointer instead.(There are lots of comment references to 'attach' all over, but they probably need some deeper understanding to check the semantics to see if they can be replaced by
match_port).Signed-off-by Dr. David Alan Gilbert <[email protected]>
Signature · 2 lines
Regards Sudip
Re: [PATCH 3/3] parport: Remove parport_driver.devmodel
In reply to [email protected]Quoted 10 lines · On Thu, May 02, 2024 at 04:48:23PM +0100, [email protected] wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
'devmodel' hasn't actually been used since:
'commit3275158fa52a("parport: remove use of devmodel")'
and everyone now has it set to true and has been fixed up; remove the flag.(There are still comments all over about it)
Signed-off-by Dr. David Alan Gilbert <[email protected]>
Signature · 2 lines
Regards Sudip
Re: [PATCH 1/3] parport: Remove 'drivers' list
In reply to Sudip Mukherjee (Codethink)Quoted 6 lines · * Sudip Mukherjee (Codethink) ([email protected]) wrote:
Quoted 5 lines · On Thu, May 02, 2024 at 04:48:21PM +0100, [email protected] wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
The list has been empty since:
'commit3275158fa52a("parport: remove use of devmodel")'
Quoted 6 lines
Quoted 4 lines
This also means we can remove the '
list_head' from structparport_driver.Signed-off-by Dr. David Alan Gilbert <[email protected]>Acked-by Sudip Mukherjee <[email protected]>
Thanks!
Quoted 1 line
Greg, can you please take the series.
Dave
Quoted 4 lines
Signature · 2 lines
Regards Sudip
Signature · 4 lines
-----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/