Bug 358030

Summary: lenovo X60s does not activate printer port on usb-docking station
Product: [openSUSE] openSUSE 10.3 Reporter: Juergen Weigert <jw>
Component: KernelAssignee: E-mail List <kernel-maintainers>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None CC: behlert, jsmeix
Version: Final   
Target Milestone: ---   
Hardware: x86   
OS: openSUSE 10.3   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 357354    

Description Juergen Weigert 2008-02-01 15:46:34 UTC
I have an usb 2.0-hi speed docking station S124, power connected.
then plugged into an usb port of the laptop.
yast comes up asks me to confgure the network and a printer.
I have no printer attached, so I just wait for the database to rebuild
and click finish.

afterwards, /dev/parport0 is gone.
Reboot. parport of the main dockingstation is now parport1.

/dev/usblp0 is now present, but defunct:

pen("/dev/usblp0", O_RDWR)             = 3
ioctl(3, PPCLAIM, 0xb7ebb140)           = -1 ENOTTY (Inappropriate ioctl for device)


reboot with both main and usb docking station attached. renumbers the main parport back to parport0. nothing else appears.

disconnect, reconnect usb dockingstation
# dmesg
usb0: unregister 'plusb' usb-0000:00:1d.7-1.2.4, Prolific PL-2301/PL-2302
usb 5-1: new high speed USB device using ehci_hcd and address 12
usb 5-1: new device found, idVendor=0409, idProduct=0058
usb 5-1: new device strings: Mfr=1, Product=2, SerialNumber=0
usb 5-1: Product: USB2.0 Hub Controller
usb 5-1: Manufacturer: NEC Corporation
usb 5-1: configuration #1 chosen from 1 choice
hub 5-1:1.0: USB hub found
hub 5-1:1.0: 4 ports detected
usb 5-1.1: new high speed USB device using ehci_hcd and address 13
usb 5-1.1: new device found, idVendor=1631, idProduct=6200
usb 5-1.1: new device strings: Mfr=1, Product=2, SerialNumber=3
usb 5-1.1: Product: gwusb2e
usb 5-1.1: Manufacturer: goodway corp usb
usb 5-1.1: SerialNumber: 01
usb 5-1.1: configuration #1 chosen from 1 choice
eth2: register 'asix' at usb-0000:00:1d.7-1.1, ASIX AX8817x USB 2.0 Ethernet, 00:50:5b:01:5d:d8
eth2: link down
ADDRCONF(NETDEV_UP): eth2: link is not ready
usb 5-1.2: new full speed USB device using ehci_hcd and address 14
usb 5-1.2: new device found, idVendor=05e3, idProduct=0604
usb 5-1.2: new device strings: Mfr=0, Product=1, SerialNumber=0
usb 5-1.2: Product: USB Hub
usb 5-1.2: configuration #1 chosen from 1 choice
hub 5-1.2:1.0: USB hub found
hub 5-1.2:1.0: 4 ports detected
usb 5-1.2.1: new full speed USB device using ehci_hcd and address 15
usb 5-1.2.1: new device found, idVendor=067b, idProduct=2305
usb 5-1.2.1: new device strings: Mfr=1, Product=2, SerialNumber=0
usb 5-1.2.1: Product: IEEE-1284 Controller
usb 5-1.2.1: Manufacturer: Prolific Technology Inc.
usb 5-1.2.1: configuration #1 chosen from 1 choice
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 15 if 0 alt 1 proto 2 vid 0x067B pid 0x2305
usb 5-1.2.2: new low speed USB device using ehci_hcd and address 16
usb 5-1.2.2: new device found, idVendor=0d3d, idProduct=0001
usb 5-1.2.2: new device strings: Mfr=0, Product=2, SerialNumber=0
usb 5-1.2.2: Product: USBPS2
usb 5-1.2.2: configuration #1 chosen from 1 choice
input: USBPS2 as /class/input/input9
input: USB HID v1.00 Keyboard [USBPS2] on usb-0000:00:1d.7-1.2.2
input: USBPS2 as /class/input/input10
input: USB HID v1.00 Mouse [USBPS2] on usb-0000:00:1d.7-1.2.2
usb 5-1.2.3: new full speed USB device using ehci_hcd and address 17
usb 5-1.2.3: new device found, idVendor=067b, idProduct=2303
usb 5-1.2.3: new device strings: Mfr=0, Product=0, SerialNumber=0
usb 5-1.2.3: configuration #1 chosen from 1 choice
pl2303 5-1.2.3:1.0: pl2303 converter detected
usb 5-1.2.3: pl2303 converter now attached to ttyUSB0
usb 5-1.2.4: new full speed USB device using ehci_hcd and address 18
usb 5-1.2.4: new device found, idVendor=067b, idProduct=0000
usb 5-1.2.4: new device strings: Mfr=1, Product=0, SerialNumber=0
usb 5-1.2.4: Manufacturer: Prolific Technology Inc.
usb 5-1.2.4: configuration #1 chosen from 1 choice
usb0: register 'plusb' at usb-0000:00:1d.7-1.2.4, Prolific PL-2301/PL-2302, 1a:56:3f:a8:d9:7d
ppdev0: registered pardevice
ppdev0: unregistered pardevice

# rmmod usblp
disconnect, reconnect usb cable does not help.

(screen /dev/ttyUSB0 38400 works as expected, serial line of the usb-docking station is good)
Comment 1 Forgotten User ZhJd0F0L3x 2008-02-05 13:28:21 UTC
This is probably a kernel driver problem.
Comment 2 Bernhard Walle 2008-02-05 13:31:21 UTC
(In reply to comment #0 from Juergen Weigert)
> 
> pen("/dev/usblp0", O_RDWR)             = 3
> ioctl(3, PPCLAIM, 0xb7ebb140)           = -1 ENOTTY (Inappropriate ioctl for
> device)

Isn't the PPCLAIM ioctl() for /dev/parport style devices instead of printer-style devices?
Comment 3 Juergen Weigert 2008-02-05 15:36:20 UTC
Interresting question.
What is the difference between a parport style devices and printer style devices? I used to use these terms as synonyms.

Comment 4 Bernhard Walle 2008-02-05 15:40:05 UTC
The interface for ppdev (/dev/parportX) is described at
http://people.redhat.com/twaugh/parport/html/parportguide.html
Comment 5 Greg Kroah-Hartman 2008-02-05 15:44:28 UTC
They are not the same, the usblp driver is for usb printers.  CUPS should handle that just fine.

The log message above shows that the device is working, why do you think it is not?
Comment 6 Juergen Weigert 2008-02-05 16:12:21 UTC
I have an eeprom-programmer connected to the parallel port.
It may be working for printers, which I haven't tested. It is not working for the eprommer software that I am testing.
I have successfully used /dev/parport0 with the eprommer software.
PPCLAIM succeeds there.

I am willing to conduct further tests, if someone directs me the right way. Or is an USB-parport simply a not-good-enough-parport for this?
Comment 7 Bernhard Walle 2008-02-05 16:17:48 UTC
Yes, you cannot use EEPROM programmers with USB parallel port adapters. That adapters emulate an USB printing device and do IEEE1284 communication over the parallel port. Buy an PCMCIA parallel port if you need such functionality on recent notebooks.