exynos-linux-stable/drivers/parport
Sudip Mukherjee 48f3a538cb parport: load lowlevel driver if ports not found
[ Upstream commit 231ec2f24dad18d021b361045bbd618ba62a274e ]

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>
2020-01-04 13:39:55 +01:00
..
BUGS-parport
daisy.c
ieee1284.c
ieee1284_ops.c
Kconfig parport: fix menu breakage 2014-07-25 18:00:23 -07:00
Makefile
multiface.h
parport_amiga.c parport: drop owner assignment from platform_drivers 2014-10-20 16:21:20 +02:00
parport_atari.c parport: parport_atari: Remove obsolete IRQ_TYPE_SLOW 2015-01-15 13:44:50 +01:00
parport_ax88796.c parport: drop owner assignment from platform_drivers 2014-10-20 16:21:20 +02:00
parport_cs.c
parport_gsc.c parisc, parport_gsc: Fixes for printk continuation lines 2017-06-17 06:41:54 +02:00
parport_gsc.h
parport_ip32.c drivers/parport/parport_ip32.c: use PTR_ERR_OR_ZERO 2014-08-08 15:57:25 -07:00
parport_mfc3.c
parport_pc.c parport_pc: fix find_superio io compare code, should use equal test. 2019-03-23 13:19:50 +01:00
parport_serial.c parport: Add support for the WCH382 2S/1P multi-IO card 2014-11-06 14:58:21 -08:00
parport_sunbpp.c parport: sunbpp: fix error return code 2018-09-26 08:36:38 +02:00
probe.c
procfs.c parport: use subsys_initcall 2016-04-30 13:56:46 -07:00
share.c parport: load lowlevel driver if ports not found 2020-01-04 13:39:55 +01:00
TODO-parport