[linux-usb-devel] Re: question on storage_probe()

2003-03-30 Thread Matthew Dharm
Well, I haven't tested it with 2.5... I'm sure someone has, tho.

It is necessary to set the configuration to 1 on some devices.

I haven't seen a device that falls into this category with multiple
interfaces.

Matt

On Sun, Mar 30, 2003 at 02:53:59AM +0100, Oliver Neukum wrote:
 Hi,
 
 is the following code from storage_probe() necessary:
 
 #ifdef CONFIG_USB_STORAGE_SDDR09
   if (protocol == US_PR_EUSB_SDDR09 || protocol == US_PR_DPCM_USB) {
   /* set the configuration -- STALL is an acceptable response here */
   result = usb_set_configuration(dev, 1);
 
   US_DEBUGP(Result from usb_set_configuration is %d\n, result);
   if (result == -EPIPE) {
   US_DEBUGP(-- stall on control interface\n);
   } else if (result != 0) {
   /* it's not a stall, but another error -- time to bail */
   US_DEBUGP(-- Unknown error.  Rejecting device\n);
   return -EIO;
   }
   }
 #endif
 
 Can we assume that there are no further interfaces in these devices?
 Has this been tested with 2.5?
 
   Regards
   Oliver

-- 
Matthew Dharm  Home: [EMAIL PROTECTED] 
Maintainer, Linux USB Mass Storage Driver

What, are you one of those Microsoft-bashing Linux freaks?
-- Customer to Greg
User Friendly, 2/10/1999


pgp0.pgp
Description: PGP signature


re: [linux-usb-devel] problem with Ego technology music disk MD100USB storage device (add PowerColor MUSICDISK too)

2003-03-30 Thread Chris Worley
On 2003-02-05 21:23:43 Peter 'p2' De Schrijver wrote:
 Hi,
 
 I'm trying to get the Ego Technology MD100 to work under linux. It's
 small MP3 player gadget which has 128MB of flash and a USB interface. It
 identifies itself as a USB storage device. When I try to read from it
 under linux, the process doing the read just hangs. The device works
 under windows 2000 with the default windows USB storage driver. 
 I'm running the stock 2.4.20 linux kernel. 
 
 attached is the dmesg output, the output of /proc/bus/usb/devices and
 .config of the kernel.
 ...snip a few thousand lines...

Peter,

Did you ever get an answer?  Were you able to get this working?

I have the same device, although it's marketed differently (claiming
Linux 2.4.x compatibility!) as a PowerColor MD100 128MB Portable
Storage/Music DISK USB MP3 Player:

http://www.ateck.com/viewItem.asp?idProduct=453055232

From the vendor power-color.com:

http://www.power-color.com/html/md100.html

But, it has the same USB device/product ID's as yours (0x8341/0x2000).

Furthermore, I have the exact same problem.  I've tried it on 5
different Linux Boxes, ranging from SuSE 7.3 to 8.1 and RedHat 7.2 to
7.3.  The kernels range from 2.4.9 to 2.4.20; all have USB properly
installed and working for other devices, including other pen drives.

The SuSE based machines hang tight (need to power cycle) about a minute
after installation of the device.  On the RedHat machines, they see the
device, but any attempt to read the device (i.e. fdisk -l, dd
if=/dev/sda of=/dev/null, mount /dev/sda ...) locks up the process
and either the usb-storage or the sd_mod driver (I don't know which).

Peter's information, at:

 http://sourceforge.net/mailarchive/message.php?msg_id=3737890

...was much more in-depth, but I'll add:

/var/log/messages output:

Mar 29 11:13:03 localhost kernel: hub.c: USB new device connect on bus1/2, 
assigned device number 5
Mar 29 11:13:03 localhost kernel: usb.c: USB device 5 (vend/prod 0x8341/0x2000) is 
not claimed by any active driver.
Mar 29 11:13:03 localhost kernel: Initializing USB Mass Storage driver...
Mar 29 11:13:03 localhost kernel: usb.c: registered new driver usb-storage
Mar 29 11:13:03 localhost kernel: scsi1 : SCSI emulation for USB Mass Storage 
devices
Mar 29 11:13:03 localhost kernel:   Vendor: MUSIC Model: DISK  
Rev: 1.00
Mar 29 11:13:03 localhost kernel:   Type:   Direct-Access  
ANSI SCSI revision: 02
Mar 29 11:13:03 localhost kernel: USB Mass Storage support registered.

/proc/bus/usb/devices output:

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor= ProdID= Rev= 0.00
S:  Product=USB OHCI Root Hub
S:  SerialNumber=e086f000
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms
T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  5 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=8341 ProdID=2000 Rev= 1.00
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=  0ms

/proc/scsi/scsi output:

Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: TOSHIBA  Model: DVD-ROM SD-C2502 Rev: 1313
  Type:   CD-ROM   ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: MUSICModel: DISK Rev: 1.00
  Type:   Direct-AccessANSI SCSI revision: 02

/proc/partitions output (only /dev/sda* matter):

major minor  #blocks  name rio rmerge rsect ruse wio wmerge wsect wuse running 
use aveq

   8 0 128000 sda 0 0 0 0 0 0 0 0 0 0 0
   8 1 127728 sda1 0 0 0 0 0 0 0 0 0 0 0
   3 0   19535040 hda 5670 13237 148564 114750 2936 6672 76910 55650 0 72890 
170400
   3 1  48163 hda1 28 421 898 580 11 4 30 30 0 480 610
   3 2   18996862 hda2 5640 12816 147650 114100 2925 6668 76880 55620 0 72590 
169720
   3 3 489982 hda3 2 0 16 70 0 0 0 0 0 70 70

Any help would be appreciated!

Thanks,

Chris








---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel


[linux-usb-devel] [Q] Is possible?

2003-03-30 Thread
Hello, Ive questions for my development.

Now, Im developing Motorola MPC860 Board using Philips ISP1160.
As you known, MPC860 Board does not support USB Controller. Only
MPC850, 823 does
So, we decided using ISP1160 as USB host controller.
That board was assembled yesterday. We use HHL Kernel 2.4.2 and
Montavista
HardhatLinux as cross compiler.
I found patch file hc_isp1161-0.8.patch.gz in this site.
Can we use this file for Device Driver? If not, How we can do?





---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel