Bug 8606

Summary: USB printer shows up in /proc/bus/usb/devices, but gives ENODEV on access
Product: Drivers Reporter: Andreas Kloeckner (inform)
Component: USBAssignee: Greg Kroah-Hartman (greg)
Status: CLOSED CODE_FIX    
Severity: normal CC: bunk
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.22-rc4 Subsystem:
Regression: --- Bisected commit-id:
Bug Depends on:    
Bug Blocks: 5089    
Attachments: /proc/bus/usb/devices containing that printer's data

Description Andreas Kloeckner 2007-06-10 06:56:24 UTC
Most recent kernel where this bug did *NOT* occur: 2.6.19.2 (but downgrading now
doesn't seem to fix it?)

Distribution: Debian testing

Hardware Environment: 

00:00.0 Host bridge: ATI Technologies Inc ATI Radeon Xpress 200
(RS480/RS482/RX480/RX482) Chipset - Host bridge (rev 01)
00:02.0 PCI bridge: ATI Technologies Inc RS480 PCI-X Root Port
00:11.0 IDE interface: ATI Technologies Inc ATI 437A Serial ATA Controller
00:12.0 IDE interface: ATI Technologies Inc ATI 4379 Serial ATA Controller
00:13.0 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller
00:13.1 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller
00:13.2 USB Controller: ATI Technologies Inc IXP SB400 USB2 Host Controller
00:14.0 SMBus: ATI Technologies Inc IXP SB400 SMBus Controller (rev 11)
00:14.1 IDE interface: ATI Technologies Inc Standard Dual Channel PCI IDE
Controller ATI
00:14.3 ISA bridge: ATI Technologies Inc IXP SB400 PCI-ISA Bridge
00:14.4 PCI bridge: ATI Technologies Inc IXP SB400 PCI-PCI Bridge
00:14.5 Multimedia audio controller: ATI Technologies Inc IXP SB400 AC'97 Audio
Controller (rev 02)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM
Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
Miscellaneous Control
01:00.0 VGA compatible controller: nVidia Corporation NV44 [GeForce 6200
TurboCache(TM)] (rev a1)
02:02.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast
Decoder (rev 01)
02:03.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit
Ethernet (rev 10)
02:05.0 Ethernet controller: Atheros Communications, Inc. AR5005G 802.11abg NIC
(rev 01)

Problem Description:

I have a USB printer (Samsung ML-2010) that, when I plug it in, shows up in
/proc/bus/usb/devices (and gets detected according to dmesg), but when I try to
access any device file related to it, I get "Error: no such device". (For
example, echo "blech" > /dev/usb/lp0.) Accordingly, the printer does not show up
in lsusb and CUPS also thinks that it's disconnected. The printer (and cable)
work fine on my IBM Thinkpad R52.
Comment 1 Andreas Kloeckner 2007-06-10 06:57:57 UTC
Just FYI, I've reproduced this without madwifi and the nvidia kernel module, in
case you were wondering.
Comment 2 Anonymous Emailer 2007-06-10 13:11:45 UTC
Reply-To: akpm@linux-foundation.org

On Sun, 10 Jun 2007 06:52:23 -0700 bugme-daemon@bugzilla.kernel.org wrote:

> http://bugzilla.kernel.org/show_bug.cgi?id=8606
> 
>            Summary: USB printer shows up in /proc/bus/usb/devices, but gives
>                     ENODEV on access
>     Kernel Version: 2.6.22-rc4
>             Status: NEW
>           Severity: normal
>              Owner: greg@kroah.com
>          Submitter: inform@tiker.net
> 
> 
> Most recent kernel where this bug did *NOT* occur: 2.6.19.2 (but downgrading now
> doesn't seem to fix it?)
> 
> Distribution: Debian testing
> 
> Hardware Environment: 
> 
> 00:00.0 Host bridge: ATI Technologies Inc ATI Radeon Xpress 200
> (RS480/RS482/RX480/RX482) Chipset - Host bridge (rev 01)
> 00:02.0 PCI bridge: ATI Technologies Inc RS480 PCI-X Root Port
> 00:11.0 IDE interface: ATI Technologies Inc ATI 437A Serial ATA Controller
> 00:12.0 IDE interface: ATI Technologies Inc ATI 4379 Serial ATA Controller
> 00:13.0 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller
> 00:13.1 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller
> 00:13.2 USB Controller: ATI Technologies Inc IXP SB400 USB2 Host Controller
> 00:14.0 SMBus: ATI Technologies Inc IXP SB400 SMBus Controller (rev 11)
> 00:14.1 IDE interface: ATI Technologies Inc Standard Dual Channel PCI IDE
> Controller ATI
> 00:14.3 ISA bridge: ATI Technologies Inc IXP SB400 PCI-ISA Bridge
> 00:14.4 PCI bridge: ATI Technologies Inc IXP SB400 PCI-PCI Bridge
> 00:14.5 Multimedia audio controller: ATI Technologies Inc IXP SB400 AC'97 Audio
> Controller (rev 02)
> 00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
> HyperTransport Technology Configuration
> 00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
> 00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM
> Controller
> 00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
> Miscellaneous Control
> 01:00.0 VGA compatible controller: nVidia Corporation NV44 [GeForce 6200
> TurboCache(TM)] (rev a1)
> 02:02.0 Multimedia controller: Philips Semiconductors SAA7130 Video Broadcast
> Decoder (rev 01)
> 02:03.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit
> Ethernet (rev 10)
> 02:05.0 Ethernet controller: Atheros Communications, Inc. AR5005G 802.11abg NIC
> (rev 01)
> 
> Problem Description:
> 
> I have a USB printer (Samsung ML-2010) that, when I plug it in, shows up in
> /proc/bus/usb/devices (and gets detected according to dmesg), but when I try to
> access any device file related to it, I get "Error: no such device". (For
> example, echo "blech" > /dev/usb/lp0.) Accordingly, the printer does not show up
> in lsusb and CUPS also thinks that it's disconnected. The printer (and cable)
> work fine on my IBM Thinkpad R52.
> 

and

> Just FYI, I've reproduced this without madwifi and the nvidia kernel module, in
> case you were wondering.

Comment 3 Anonymous Emailer 2007-06-10 13:57:45 UTC
Reply-To: oliver@neukum.org

Am Sonntag, 10. Juni 2007 schrieb Andrew Morton:
> > Most recent kernel where this bug did *NOT* occur: 2.6.19.2 (but downgrading now
> > doesn't seem to fix it?)
> >

Please compile your kernel with CONFIG_DEBUG_USB and provide the log.

	Regards
		Oliver

Comment 4 Andreas Kloeckner 2007-06-24 23:33:12 UTC
Disabling CONFIG_USB_SUSPEND fixes this.

See also

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=243038
Comment 5 Greg Kroah-Hartman 2007-09-05 07:13:01 UTC
What is the device and vendor id for this printer?  Can you attach the output of /proc/bus/usb/devices so we can blacklist this printer?
Comment 6 Andreas Kloeckner 2007-09-05 09:52:44 UTC
Created attachment 12715 [details]
/proc/bus/usb/devices containing that printer's data
Comment 7 Andreas Kloeckner 2007-09-05 09:53:31 UTC
Here's the VID/PID:

Bus 002 Device 002: ID 04e8:326c Samsung Electronics Co., Ltd 
Comment 8 Adrian Bunk 2007-09-16 13:38:07 UTC
This should be fixed by commit f095137e799ddb6a7c2bf0e4c73cda193ab9df41.

Can you confirm it's fixed in 2.6.23-rc6?