Skip to contentSkip to conversation

Need to remove ch35x wch driver which already running

DISCUSSION Lokesh 2 participants 2 messages Nov 16, 2012 TTY layer and serial drivers

lore
Share & tools
lore

Lokesh

author
#0 lore raw

HI

I have a pci base serial card i.e wch35x card. for 3.0.5, the driver does not exisits. Iam redeveloping for the same from scratch. But due mis detection, the pci card claims a driver named "serial".

The lspci -k dispaly driver in use as serial. but in lsmod it does not lists.

I want to remove the serial module which is claiming this device. so that is i can re write the driver just for learning purpose.

02:00.0 Serial controller: Device 4348:5046 (rev 10) (prog-if 02 [16550])

	Subsystem: Device 4348:5046
	Flags: medium devsel, IRQ 21
	I/O ports at d030 [size=8]
	I/O ports at d020 [size=8]
	I/O ports at d010 [size=8]
	I/O ports at d000 [size=16]
	Kernel driver in use: serial

00: 48 43 46 50 01 00 00 02 10 02 00 07 00 00 00 00 10: 31 d0 00 00 21 d0 00 00 11 d0 00 00 01 d0 00 00 20: 00 00 00 00 00 00 00 00 00 00 00 00 48 43 46 50 30: 00 00 00 00 00 00 00 00 00 00 00 00 0b 01 00 00

#1 lore raw
Quoted 5 lines · On Fri, 16 Nov 2012 07:59:22 +0000 (UTC) Lokesh <[email protected]> wrote:

HI

I have a pci base serial card i.e wch35x card. for 3.0.5, the driver does not exisits. Iam redeveloping for the same from scratch. But due mis detection, the pci card claims a driver named "serial".

Actually that is the right driver for the wch35x cards and that would be why it has bound to them. There are some mods in later kernels to make the wch work better, but it is the right driver.

If you want to play with it for some reason and write your own driver to learn stuff then the easiest thing to do is probably add it temporarily to the blacklist in 8250_pci.c