On Wed, 28 Jun 2006 11:27:40 -0400 (EDT)
Alan Stern <[EMAIL PROTECTED]> wrote:
> This patch (as732) adds a usb_device_driver structure, for representing
> drivers that manage an entire USB device as opposed to just an interface.
> Support routines like usb_register_device_driver,
> usb_deregister_device_driver, usb_probe_device, and usb_unbind_device are
> also added.
>
> Unlike an earlier version of this patch, the new code is type-safe. To
> accomplish this, the existing struct driver embedded in struct usb_driver
> had to be wrapped in an intermediate wrapper. This enables the core to
> tell at runtime whether a particular struct driver belongs to a device
> driver or to an interface driver.
This causes an oops during udev startup on an fc5 machine.
uhci_hcd 0000:00:1d.0: UHCI Host Controller
uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 1
uhci_hcd 0000:00:1d.0: irq 21, io base 0x00001820
PM: Adding info for usb:usb1
BUG: unable to handle kernel NULL pointer dereference at virtual address
000000ec
printing eip:
c024f527
*pde = 00000000
Oops: 0000 [#1]
last sysfs file: /class/firmware/0000:06:0b.0/loading
Modules linked in: ohci1394 ieee1394 ehci_hcd sg uhci_hcd joydev snd_hda_intel
snd_hda_codec ipw2200 snd_seq_dummy snd_seq_oss snd_seq_midi_event ieee80211
snd_seq snd_seq_device snd_pcm_oss ieee80211_crypt snd_mixer_oss snd_pcm
snd_timer snd i2c_i801 soundcore pcspkr i2c_core snd_page_alloc piix generic
ext3 jbd ide_disk ide_core
CPU: 0
EIP: 0060:[<c024f527>] Not tainted VLI
EFLAGS: 00010206 (2.6.18-rc1 #76)
EIP is at usb_uevent+0x4c/0x272
eax: 000000e8 ebx: f7fae3f0 ecx: 00000019 edx: 00000000
esi: 00000000 edi: f680b9dc ebp: f6815c58 esp: f7f3dc98
ds: 007b es: 007b ss: 0068
Process modprobe (pid: 845, ti=f7f3d000 task=f7fc9570 task.ti=f7f3d000)
Stack: 00000010 00000000 f7ff5f80 00000010 0000079d f6859863 000041ed 00000246
00000000 ffffffff 00000000 c02ec6e5 00000000 f7f3dd20 f7f3dd24 0000079d
00000019 00000000 00000000 c024f4db 0000078e f6815c58 f6859872 c021f708
Call Trace:
[<c024f4db>] usb_uevent+0x0/0x272
[<c021f708>] dev_uevent+0x185/0x1b8
[<c021f583>] dev_uevent+0x0/0x1b8
[<c01bb307>] kobject_uevent+0x20d/0x3e6
[<c0220c33>] bus_add_device+0xc4/0xcd
[<c0223b91>] device_pm_add+0x71/0xa6
[<c021ff66>] device_add+0x2c0/0x3b4
[<c024a878>] usb_new_device+0x7b/0xb8
[<c024cb63>] usb_add_hcd+0x472/0x555
[<c02547fd>] usb_hcd_pci_probe+0x1ea/0x285
[<c02212fe>] __driver_attach+0x0/0x67
[<c02212fe>] __driver_attach+0x0/0x67
[<c01ca9aa>] pci_device_probe+0x36/0x57
[<c0221249>] driver_probe_device+0x45/0x9a
[<c0221340>] __driver_attach+0x42/0x67
[<c0220d33>] bus_for_each_dev+0x33/0x55
[<c02211b0>] driver_attach+0x16/0x18
[<c02212fe>] __driver_attach+0x0/0x67
[<c0220a4d>] bus_add_driver+0x6c/0x104
[<c01caac0>] __pci_register_driver+0x34/0x4e
[<f8be1060>] uhci_hcd_init+0x60/0xa3 [uhci_hcd]
[<c012f057>] sys_init_module+0x142f/0x1570
[<c0153579>] do_sync_read+0x0/0xfb
[<c0102a99>] sysenter_past_esp+0x56/0x79
Code: ec c7 44 24 44 00 00 00 00 8b 58 78 8b 70 04 83 eb 58 8b 13 85 d2 0f 88
21 02 00 00 8b 43 30 85 c0 0f 84 16 02 00 00 89 54 24 20 <8b> 40 04 c7 44 24 18
d1 51 30 c0 89 4c 24 04 89 3c 24 89 44 24
EIP: [<c024f527>] usb_uevent+0x4c/0x272 SS:ESP 0068:f7f3dc98
<6>Non-volatile memory driver v1.2
ACPI: AC Adapter [ACAD] (on-line)
(gdb) l *0xc024f527
0xc024f527 is in usb_uevent (drivers/usb/core/driver.c:562).
557 * all the device descriptors we don't tell them about. Or
558 * even act as usermode drivers.
559 *
560 * FIXME reduce hardwired intelligence here
561 */
562 if (add_uevent_var(envp, num_envp, &i,
563 buffer, buffer_size, &length,
564 "DEVICE=/proc/bus/usb/%03d/%03d",
565 usb_dev->bus->busnum, usb_dev->devnum))
566 return -ENOMEM;
For some reason usb_dev->bus has the value 0x000000e8.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel