1
0
Fork 0
alistair23-linux/drivers/parport
Sudip Mukherjee b6fbb6ded9 parport: load lowlevel driver if ports not found
[ Upstream commit 231ec2f24d ]

Usually all the distro will load the parport low level driver as part
of their initialization. But we can get into a situation where all the
parallel port drivers are built as module and we unload all the modules
at a later time. Then if we just do "modprobe parport" it will only
load the parport module and will not load the low level driver which
will actually register the ports. So, check the bus if there is any
parport registered, if not, load the low level driver.

We can get into the above situation with all distro but only Suse has
setup the alias for "parport_lowlevel" and so it only works in Suse.
Users of Debian based distro will need to load the lowlevel module
manually.

Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Link: https://lore.kernel.org/r/20191016144540.18810-3-sudipm.mukherjee@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-31 16:45:25 +01:00
..
BUGS-parport
Kconfig docs: kbuild: convert docs to ReST and rename to *.rst 2019-06-14 14:21:21 -06:00
Makefile parport: Add missing newline at end of file 2019-08-05 17:56:45 +02:00
TODO-parport
daisy.c Revert "parport: daisy: use new parport device model" 2019-03-25 14:49:00 -07:00
ieee1284.c parport: ieee1284: mark expected switch fall-through 2019-04-25 19:41:47 +02:00
ieee1284_ops.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
multiface.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
parport_amiga.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
parport_atari.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
parport_ax88796.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
parport_cs.c parport_cs: Fix memory leak in parport_config 2019-03-28 01:35:11 +09:00
parport_gsc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
parport_gsc.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
parport_ip32.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
parport_mfc3.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
parport_pc.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
parport_serial.c Char/Misc driver patches for 5.4-rc1 2019-09-18 11:14:31 -07:00
parport_sunbpp.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
probe.c Revert "parport: daisy: use new parport device model" 2019-03-25 14:49:00 -07:00
procfs.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
share.c parport: load lowlevel driver if ports not found 2019-12-31 16:45:25 +01:00