seealso n00b


Joined: 24 Aug 2003 Posts: 5
|
Posted: Tue Jul 27, 2004 11:29 am Post subject: amtel support |
|
|
Is there any chance the atmel_reset patch
[available at http://atmelwlandriver.sourceforge.net/news.html]
for the ATMEL Linux PCI PCMCIA USB Driver
[available at http://atmelwlandriver.sourceforge.net/downloads.html]
will be integrated into the standard gentoo and/or gentoo-dev kernel sources?
I tried two ways of applying this patch to the gentoo-dev-2.6.7-r11 kernel sources.
First, I just emerged the sources and applied the patch afterward.
That didn't work, so I put the patch in directory
/usr/portage/sys-kernel/gentoo-dev-sources/files/
and re-emerged the sources.
I got the same two reject files in both cases:
(1) hub.c.rej
~~~~~~~~~~~
***************
*** 931,936 ****
for (i = 0; i < HUB_PROBE_TRIES; i++) {
/* Allocate a new device struct */
dev = usb_alloc_dev(hub, hub->bus, port);
if (!dev) {
--- 931,938 ----
for (i = 0; i < HUB_PROBE_TRIES; i++) {
+ struct usb_device *pdev;
+ int len;
/* Allocate a new device struct */
dev = usb_alloc_dev(hub, hub->bus, port);
if (!dev) {
***************
*** 970,978 ****
}; speed;}),
dev->devnum);
/* Run it through the hoops (find a driver, etc) */
- if (usb_new_device(dev) == 0) {
hub->children[port] = dev;
goto done;
}
--- 972,1003 ----
}; speed;}),
dev->devnum);
+ pdev = dev->parent;
+ if (pdev->devpath [0] != '0') /* parent not root? */
+ len = snprintf (dev->devpath, sizeof dev->devpath,
+ "%s.%d", pdev->devpath, port + 1);
+ /* root == "0", root port 2 == "2", port 3 that hub "2.3" */
+ else
+ len = snprintf (dev->devpath, sizeof dev->devpath,
+ "%d", port + 1);
+ if (len == sizeof dev->devpath)
+ dev_err (&hubstate->intf->dev,
+ "devpath size! usb/%03d/%03d path %s\n",
+ dev->bus->busnum, dev->devnum, dev->devpath);
+ dev_info (&hubstate->intf->dev,
+ "new USB device on port %d, assigned address %d\n",
+ port + 1, dev->devnum);
+
+ /* put the device in the global device tree. the hub port
+ * is the "bus_id"; hubs show in hierarchy like bridges
+ */
+ dev->dev.parent = dev->parent->dev.parent->parent;
+
+
/* Run it through the hoops (find a driver, etc) */
hub->children[port] = dev;
+
+ if (usb_new_device(dev) == 0) {
goto done;
}
(2) usb.c.rej
~~~~~~~~~~
***************
*** 1004,1009 ****
clear_bit(dev->devnum, dev->bus->devmap.devicemap);
usbfs_remove_device(dev);
}
up(&dev->serialize);
device_unregister(&dev->dev);
}
--- 1003,1009 ----
clear_bit(dev->devnum, dev->bus->devmap.devicemap);
usbfs_remove_device(dev);
}
+ *pdev = NULL;
up(&dev->serialize);
device_unregister(&dev->dev);
}
Can anyone tell me what is wrong with this patch?
I have two xterasys USB LAN adapters that I picked up for $10 apiece and I think it would be a major coup if they could be made to work on Gentoo "right out of the box" so to speak.
Thanks.
bill |
|