On Sun, Oct 30, 2005 at 12:37:41AM +0200, matthieu castet wrote:no problem ;)
Please comment and consider for inclusion.
I need a "Signed-off-by:" line in order to be able to add it. Care to
redo things based on the comments you have had and resend it with this
line?
The paragraph you quote is the BSD licence, and point 1 is :+ *
+ * This software is available to you under a choice of one of two
+ * licenses. You may choose to be licensed under the terms of the GNU
+ * General Public License (GPL) Version 2, available from the file
+ * COPYING in the main directory of this source tree, or the
+ * BSD license below:
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
<snip> You don't need the whole GPL 2 copy here, just put the first
paragraph you have before this one in.
Thanks, but does userspace will retry if it fails the first time ?+/*
+ * sometime hotplug don't have time to give the firmware the
+ * first time, retry it.
+ */
+static int sleepy_request_firmware(const struct firmware **fw, + const char *name, struct device *dev)
+{
+ if (request_firmware(fw, name, dev) == 0)
+ return 0;
+ msleep(1000);
+ return request_firmware(fw, name, dev);
+}
No, use the async firmware download mode instead of this. That will
solve all of your problems.
I don't remember, but aren't any possible race in sysfs code ?+/* we need to use semaphore until sysfs and removable devices is fixed
+ * the problem is explained on http://marc.theaimsgroup.com/?t=112006484100003
+ */
This is the proper fix, why do you think it should be fixed in the
driver core?
I think it makes things cleaner. I even like the bsd style where there is an header for reg (hardware values) and an other for val (driver structures).
diff -rNu -x '*.ko*' -x '*.mod*' -x '*.o*' linux-2.6.14/drivers/usb/atm.old/ueagle-atm.h linux-2.6.14/drivers/usb/atm/ueagle-atm.h
--- linux-2.6.14/drivers/usb/atm.old/ueagle-atm.h 1970-01-01 01:00:00.000000000 +0100
+++ linux-2.6.14/drivers/usb/atm/ueagle-atm.h 2005-10-30 00:25:27.000000000 +0200
Why do you need a header file for a single .c file?