Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
amtel support
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
seealso
n00b
n00b


Joined: 24 Aug 2003
Posts: 5

PostPosted: Tue Jul 27, 2004 11:29 am    Post subject: amtel support Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum