]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[SERIAL] Fix two bugs in parport_serial
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sun, 5 Mar 2006 00:31:22 +0000 (00:31 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 5 Mar 2006 21:25:40 +0000 (21:25 +0000)
commit7a171cdcb6ce82cc5e4bd7cb8eab172a43395f87
tree7e06a79a43ca2a5e8d57d88b80c6ac2b1e72f246
parent501f74f29498543c27f4f9697f5c1e980dd2de0d
[SERIAL] Fix two bugs in parport_serial

Steinar H. Gunderson reported:

  - For some reason, it detects the 9845 as a 9735 -- it appears this is
    simply related to the ordering in parport_serial_pci_tbl[]. If we move
    the 9845 up above the 9735, it prints out 9710:9845, but no change in
    behaviour. (We didn't find out why this was the case; we left it alone
    since it didn't affect our problem.)
  - The card has no parallel port (at least no physical ones), yet it reports
    (via its subsystem ID of 0x0014) one parallel port and four serial ports.
    The probe for the parallel port fails, and the driver just aborts. Thus,
    it doesn't find the serial ports.

Fix the debugging code to use dev_dbg, but don't bother displaying the
PCI ID of the detected board (that's accessible via other means.)

Also, arrange for parport_register() to return 0 even if it finds no
ports.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/parport/parport_serial.c