aboutsummaryrefslogtreecommitdiffstats
diff options
authorGreg Kroah-Hartman <gregkh@suse.de>2008-06-12 14:53:52 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2008-06-12 14:53:52 -0700
commitaed6d3bf33d35e735ed5eb31a8021cbbc8f6f0d0 (patch)
tree48d6f5fcf22ac8abd37763540b742ef8008fef75
parentb939158fc8cd6be861633197fd0f72014002410b (diff)
downloadpatches-aed6d3bf33d35e735ed5eb31a8021cbbc8f6f0d0.tar.gz
2.6.26-rc5-git7
-rw-r--r--driver-core.current/dev_set_name-fix-missing-kernel-doc.patch31
-rw-r--r--driver-core.current/kobject-documentation-spelling-patch.patch26
-rw-r--r--driver-core/driver-core-fix-a-lot-of-printk-usages-of-bus_id.patch4
-rw-r--r--driver-core/s390-bus_id-dev_name-conversions.patch8
-rw-r--r--series6
-rw-r--r--usb.current/isight_firmware-avoid-crash-on-loading-invalid-firmware.patch89
-rw-r--r--usb.current/usb-don-t-use-reset-resume-if-drivers-don-t-support-it.patch91
-rw-r--r--usb.current/usb-fix-build-bug-in-usb_isightfw.patch41
-rw-r--r--usb.current/usb-isp1760-assign-resource-fields-before-adding-hcd.patch42
-rw-r--r--version2
10 files changed, 7 insertions, 333 deletions
diff --git a/driver-core.current/dev_set_name-fix-missing-kernel-doc.patch b/driver-core.current/dev_set_name-fix-missing-kernel-doc.patch
deleted file mode 100644
index 53d7ecad78bd7b..00000000000000
--- a/driver-core.current/dev_set_name-fix-missing-kernel-doc.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From randy.dunlap@oracle.com Fri Jun 6 14:29:31 2008
-From: Randy Dunlap <randy.dunlap@oracle.com>
-Date: Wed, 4 Jun 2008 21:40:43 -0700
-Subject: dev_set_name: fix missing kernel-doc
-Cc: gregkh <greg@kroah.com>, akpm <akpm@linux-foundation.org>
-Message-ID: <20080604214043.a29464a0.randy.dunlap@oracle.com>
-
-
-From: Randy Dunlap <randy.dunlap@oracle.com>
-
-Fix kernel-doc for new dev_set_name() function:
-
-Warning(lin2626-rc5//drivers/base/core.c:767): No description found for parameter 'fmt'
-
-Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-
----
- drivers/base/core.c | 1 +
- 1 file changed, 1 insertion(+)
-
---- a/drivers/base/core.c
-+++ b/drivers/base/core.c
-@@ -762,6 +762,7 @@ static void device_remove_class_symlinks
- /**
- * dev_set_name - set a device name
- * @dev: device
-+ * @fmt: format string for the device's name
- */
- int dev_set_name(struct device *dev, const char *fmt, ...)
- {
diff --git a/driver-core.current/kobject-documentation-spelling-patch.patch b/driver-core.current/kobject-documentation-spelling-patch.patch
deleted file mode 100644
index 7420e3abad4402..00000000000000
--- a/driver-core.current/kobject-documentation-spelling-patch.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-From brigad@rpi.edu Wed Jun 11 10:58:47 2008
-From: David Brigada <brigad@rpi.edu>
-Date: Wed, 11 Jun 2008 13:27:32 -0400
-Subject: kobject: Documentation Spelling Patch
-To: Greg KH <greg@kroah.com>
-Message-ID: <48500B04.1070207@rpi.edu>
-
-
-Signed-off-by: David Brigada <brigad@rpi.edu>
-Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-
----
- Documentation/kobject.txt | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
---- a/Documentation/kobject.txt
-+++ b/Documentation/kobject.txt
-@@ -305,7 +305,7 @@ should not be manipulated by any other u
-
- A kset keeps its children in a standard kernel linked list. Kobjects point
- back to their containing kset via their kset field. In almost all cases,
--the kobjects belonging to a ket have that kset (or, strictly, its embedded
-+the kobjects belonging to a kset have that kset (or, strictly, its embedded
- kobject) in their parent.
-
- As a kset contains a kobject within it, it should always be dynamically
diff --git a/driver-core/driver-core-fix-a-lot-of-printk-usages-of-bus_id.patch b/driver-core/driver-core-fix-a-lot-of-printk-usages-of-bus_id.patch
index 6f22767ef9114f..f0c168da9f21f0 100644
--- a/driver-core/driver-core-fix-a-lot-of-printk-usages-of-bus_id.patch
+++ b/driver-core/driver-core-fix-a-lot-of-printk-usages-of-bus_id.patch
@@ -220,7 +220,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
}
--- a/drivers/acpi/processor_core.c
+++ b/drivers/acpi/processor_core.c
-@@ -675,9 +675,8 @@ static int __cpuinit acpi_processor_star
+@@ -674,9 +674,8 @@ static int __cpuinit acpi_processor_star
goto end;
}
@@ -245,7 +245,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
--- a/drivers/acpi/thermal.c
+++ b/drivers/acpi/thermal.c
-@@ -1172,8 +1172,8 @@ static int acpi_thermal_register_thermal
+@@ -1179,8 +1179,8 @@ static int acpi_thermal_register_thermal
tz->tz_enabled = 1;
diff --git a/driver-core/s390-bus_id-dev_name-conversions.patch b/driver-core/s390-bus_id-dev_name-conversions.patch
index 7c338236145a65..4781f70d07c46b 100644
--- a/driver-core/s390-bus_id-dev_name-conversions.patch
+++ b/driver-core/s390-bus_id-dev_name-conversions.patch
@@ -1609,7 +1609,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* card stuff
--- a/drivers/s390/net/qeth_core_main.c
+++ b/drivers/s390/net/qeth_core_main.c
-@@ -746,7 +746,7 @@ static int qeth_get_problem(struct ccw_d
+@@ -743,7 +743,7 @@ static int qeth_get_problem(struct ccw_d
SCHN_STAT_PROT_CHECK | SCHN_STAT_PROG_CHECK)) {
QETH_DBF_TEXT(TRACE, 2, "CGENCHK");
PRINT_WARN("check on device %s, dstat=x%x, cstat=x%x ",
@@ -1618,7 +1618,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
print_hex_dump(KERN_WARNING, "qeth: irb ", DUMP_PREFIX_OFFSET,
16, 1, irb, 64, 1);
return 1;
-@@ -785,12 +785,12 @@ static long __qeth_check_irb_error(struc
+@@ -782,12 +782,12 @@ static long __qeth_check_irb_error(struc
switch (PTR_ERR(irb)) {
case -EIO:
@@ -1633,7 +1633,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
QETH_DBF_TEXT(TRACE, 2, "ckirberr");
QETH_DBF_TEXT_(TRACE, 2, " rc%d", -ETIMEDOUT);
if (intparm == QETH_RCD_PARM) {
-@@ -804,7 +804,7 @@ static long __qeth_check_irb_error(struc
+@@ -801,7 +801,7 @@ static long __qeth_check_irb_error(struc
break;
default:
PRINT_WARN("unknown error %ld on device %s\n", PTR_ERR(irb),
@@ -1642,7 +1642,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
QETH_DBF_TEXT(TRACE, 2, "ckirberr");
QETH_DBF_TEXT(TRACE, 2, " rc???");
}
-@@ -4092,7 +4092,7 @@ static int qeth_core_probe_device(struct
+@@ -4073,7 +4073,7 @@ static int qeth_core_probe_device(struct
if (!get_device(dev))
return -ENODEV;
diff --git a/series b/series
index e1ac68e8daf83b..c45213330b10a9 100644
--- a/series
+++ b/series
@@ -11,8 +11,6 @@ gregkh/detect-atomic-counter-underflows.patch
#################################
# Driver core patches for 2.6.26
#################################
-driver-core.current/dev_set_name-fix-missing-kernel-doc.patch
-driver-core.current/kobject-documentation-spelling-patch.patch
# broken still :(
driver-core.current/kobject-fix-kobject_rename-and-config_sysfs.patch
@@ -20,10 +18,6 @@ driver-core.current/kobject-fix-kobject_rename-and-config_sysfs.patch
#################################
# USB patches for 2.6.26
#################################
-usb.current/usb-fix-build-bug-in-usb_isightfw.patch
-usb.current/isight_firmware-avoid-crash-on-loading-invalid-firmware.patch
-usb.current/usb-isp1760-assign-resource-fields-before-adding-hcd.patch
-usb.current/usb-don-t-use-reset-resume-if-drivers-don-t-support-it.patch
#####################################################################
# Stuff to be merged after 2.6.26 is out
diff --git a/usb.current/isight_firmware-avoid-crash-on-loading-invalid-firmware.patch b/usb.current/isight_firmware-avoid-crash-on-loading-invalid-firmware.patch
deleted file mode 100644
index fc43b4a1b65756..00000000000000
--- a/usb.current/isight_firmware-avoid-crash-on-loading-invalid-firmware.patch
+++ /dev/null
@@ -1,89 +0,0 @@
-From akpm@linux-foundation.org Fri Jun 6 14:27:29 2008
-From: akpm@linux-foundation.org
-Date: Fri, 06 Jun 2008 12:35:15 -0700
-To: mm-commits@vger.kernel.org
-Cc: mjg59@srcf.ucam.org, greg@kroah.com, justinmattock@gmail.com, mjg@redhat.com
-Subject: isight_firmware: Avoid crash on loading invalid firmware
-Message-ID: <200806061935.m56JZFDr015264@imap1.linux-foundation.org>
-
-From: Matthew Garrett <mjg59@srcf.ucam.org>
-
-Different tools generate slightly different formats of the isight
-firmware. Ensure that the firmware buffer is not overrun, while still
-ensuring that the correct amount of data is written if trailing data is
-present.
-
-Signed-off-by: Matthew Garrett <mjg@redhat.com>
-Report-by: Justin Mattock <justinmattock@gmail.com>
-Tested-by: Justin Mattock <justinmattock@gmail.com>
-Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-
----
- drivers/usb/misc/isight_firmware.c | 23 ++++++++++++++++-------
- 1 file changed, 16 insertions(+), 7 deletions(-)
-
---- a/drivers/usb/misc/isight_firmware.c
-+++ b/drivers/usb/misc/isight_firmware.c
-@@ -39,9 +39,12 @@ static int isight_firmware_load(struct u
- struct usb_device *dev = interface_to_usbdev(intf);
- int llen, len, req, ret = 0;
- const struct firmware *firmware;
-- unsigned char *buf;
-+ unsigned char *buf = kmalloc(50, GFP_KERNEL);
- unsigned char data[4];
-- char *ptr;
-+ u8 *ptr;
-+
-+ if (!buf)
-+ return -ENOMEM;
-
- if (request_firmware(&firmware, "isight.fw", &dev->dev) != 0) {
- printk(KERN_ERR "Unable to load isight firmware\n");
-@@ -59,7 +62,7 @@ static int isight_firmware_load(struct u
- goto out;
- }
-
-- while (1) {
-+ while (ptr+4 <= firmware->data+firmware->size) {
- memcpy(data, ptr, 4);
- len = (data[0] << 8 | data[1]);
- req = (data[2] << 8 | data[3]);
-@@ -71,10 +74,14 @@ static int isight_firmware_load(struct u
- continue;
-
- for (; len > 0; req += 50) {
-- llen = len > 50 ? 50 : len;
-+ llen = min(len, 50);
- len -= llen;
--
-- buf = kmalloc(llen, GFP_KERNEL);
-+ if (ptr+llen > firmware->data+firmware->size) {
-+ printk(KERN_ERR
-+ "Malformed isight firmware");
-+ ret = -ENODEV;
-+ goto out;
-+ }
- memcpy(buf, ptr, llen);
-
- ptr += llen;
-@@ -89,16 +96,18 @@ static int isight_firmware_load(struct u
- goto out;
- }
-
-- kfree(buf);
- }
- }
-+
- if (usb_control_msg
- (dev, usb_sndctrlpipe(dev, 0), 0xa0, 0x40, 0xe600, 0, "\0", 1,
- 300) != 1) {
- printk(KERN_ERR "isight firmware loading completion failed\n");
- ret = -ENODEV;
- }
-+
- out:
-+ kfree(buf);
- release_firmware(firmware);
- return ret;
- }
diff --git a/usb.current/usb-don-t-use-reset-resume-if-drivers-don-t-support-it.patch b/usb.current/usb-don-t-use-reset-resume-if-drivers-don-t-support-it.patch
deleted file mode 100644
index 69c424c627379f..00000000000000
--- a/usb.current/usb-don-t-use-reset-resume-if-drivers-don-t-support-it.patch
+++ /dev/null
@@ -1,91 +0,0 @@
-From stern@rowland.harvard.edu Tue Jun 10 14:31:37 2008
-From: Linus Torvalds <torvalds@linux-foundation.org>
-Date: Tue, 10 Jun 2008 14:59:43 -0400 (EDT)
-Subject: USB: don't use reset-resume if drivers don't support it
-To: Greg KH <greg@kroah.com>
-Cc: Linus Torvalds <torvalds@linux-foundation.org>, Oliver Neukum <oliver@neukum.org>, Pavel Machek <pavel@suse.cz>, USB list <linux-usb@vger.kernel.org>, Andrew Morton <akpm@linuxfoundation.org>, kernel list <linux-kernel@vger.kernel.org>, "Rafael J. Wysocki" <rjw@sisk.pl>
-Message-ID: <Pine.LNX.4.44L0.0806101454480.3658-100000@iolanthe.rowland.org>
-
-From: Linus Torvalds <torvalds@linux-foundation.org>
-
-This patch tries to identify which devices are able to accept
-reset-resume handling, by checking that there is at least one
-interface driver bound and that all of the drivers have a reset_resume
-method defined. If these conditions don't hold then during resume
-processing, the device is logicall disconnected.
-
-This is only a temporary fix. Later on we will explicitly unbind
-drivers that can't handle reset-resumes.
-
-Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
-Cc: Oliver Neukum <oliver@neukum.org>
-Cc: Pavel Machek <pavel@suse.cz>
-Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-
----
- drivers/usb/core/hub.c | 46 ++++++++++++++++++++++++++++++++++++++++++++--
- 1 file changed, 44 insertions(+), 2 deletions(-)
-
---- a/drivers/usb/core/hub.c
-+++ b/drivers/usb/core/hub.c
-@@ -644,6 +644,48 @@ static void hub_stop(struct usb_hub *hub
-
- #ifdef CONFIG_PM
-
-+/* Try to identify which devices need USB-PERSIST handling */
-+static int persistent_device(struct usb_device *udev)
-+{
-+ int i;
-+ int retval;
-+ struct usb_host_config *actconfig;
-+
-+ /* Explicitly not marked persistent? */
-+ if (!udev->persist_enabled)
-+ return 0;
-+
-+ /* No active config? */
-+ actconfig = udev->actconfig;
-+ if (!actconfig)
-+ return 0;
-+
-+ /* FIXME! We should check whether it's open here or not! */
-+
-+ /*
-+ * Check that all the interface drivers have a
-+ * 'reset_resume' entrypoint
-+ */
-+ retval = 0;
-+ for (i = 0; i < actconfig->desc.bNumInterfaces; i++) {
-+ struct usb_interface *intf;
-+ struct usb_driver *driver;
-+
-+ intf = actconfig->interface[i];
-+ if (!intf->dev.driver)
-+ continue;
-+ driver = to_usb_driver(intf->dev.driver);
-+ if (!driver->reset_resume)
-+ return 0;
-+ /*
-+ * We have at least one driver, and that one
-+ * has a reset_resume method.
-+ */
-+ retval = 1;
-+ }
-+ return retval;
-+}
-+
- static void hub_restart(struct usb_hub *hub, int type)
- {
- struct usb_device *hdev = hub->hdev;
-@@ -689,8 +731,8 @@ static void hub_restart(struct usb_hub *
- * turn off the various status changes to prevent
- * khubd from disconnecting it later.
- */
-- if (udev->persist_enabled && status == 0 &&
-- !(portstatus & USB_PORT_STAT_ENABLE)) {
-+ if (status == 0 && !(portstatus & USB_PORT_STAT_ENABLE) &&
-+ persistent_device(udev)) {
- if (portchange & USB_PORT_STAT_C_ENABLE)
- clear_port_feature(hub->hdev, port1,
- USB_PORT_FEAT_C_ENABLE);
diff --git a/usb.current/usb-fix-build-bug-in-usb_isightfw.patch b/usb.current/usb-fix-build-bug-in-usb_isightfw.patch
deleted file mode 100644
index 1d960aef243ecf..00000000000000
--- a/usb.current/usb-fix-build-bug-in-usb_isightfw.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From mingo@elte.hu Fri Jun 6 14:31:01 2008
-From: Ingo Molnar <mingo@elte.hu>
-Date: Mon, 2 Jun 2008 21:21:03 +0200
-Subject: USB: fix build bug in USB_ISIGHTFW
-To: Matthew Garrett <mjg59@srcf.ucam.org>
-Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, gregkh@suse.de, bersace03@laposte.net, johannes@sipsolutions.de
-Message-ID: <20080602192103.GA31589@elte.hu>
-Content-Disposition: inline
-
-
-From: Ingo Molnar <mingo@elte.hu>
-
-USB: fix build bug in USB_ISIGHTFW
-
--tip tree testing found this build bug:
-
- drivers/built-in.o: In function `isight_firmware_load':
- isight_firmware.c:(.text+0x1ade08): undefined reference to `request_firmware'
- isight_firmware.c:(.text+0x1adf9c): undefined reference to `release_firmware'
-
-select FW_LOADER in USB_ISIGHTFW.
-
-
-From: Ingo Molnar <mingo@elte.hu>
-Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-
-
----
- drivers/usb/misc/Kconfig | 1 +
- 1 file changed, 1 insertion(+)
-
---- a/drivers/usb/misc/Kconfig
-+++ b/drivers/usb/misc/Kconfig
-@@ -272,6 +272,7 @@ config USB_TEST
- config USB_ISIGHTFW
- tristate "iSight firmware loading support"
- depends on USB
-+ select FW_LOADER
- help
- This driver loads firmware for USB Apple iSight cameras, allowing
- them to be driven by the USB video class driver available at
diff --git a/usb.current/usb-isp1760-assign-resource-fields-before-adding-hcd.patch b/usb.current/usb-isp1760-assign-resource-fields-before-adding-hcd.patch
deleted file mode 100644
index d99624262e7287..00000000000000
--- a/usb.current/usb-isp1760-assign-resource-fields-before-adding-hcd.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-From ncase@xes-inc.com Fri Jun 6 15:07:08 2008
-From: Nate Case <ncase@xes-inc.com>
-Date: Wed, 21 May 2008 16:28:20 -0500
-Subject: USB: isp1760: Assign resource fields before adding hcd
-To: Sebastian Siewior <bigeasy@linutronix.de>
-Cc: Greg Kroah-Hartman <gregkh@suse.de>, linux-usb@vger.kernel.org, linuxppc-dev <linuxppc-dev@ozlabs.org>
-Message-ID: <1211405300.13845.627.camel@localhost.localdomain>
-
-
-This fixes the bogus "io mem 0x00000000" message printed
-during driver init due to hcd->rsrc_start being assigned after
-the call to usb_add_hcd().
-
-Signed-off-by: Nate Case <ncase@xes-inc.com>
-Acked-by: Sebastian Siewior <bigeasy@linutronix.de>
-Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-
----
- drivers/usb/host/isp1760-hcd.c | 8 ++++----
- 1 file changed, 4 insertions(+), 4 deletions(-)
-
---- a/drivers/usb/host/isp1760-hcd.c
-+++ b/drivers/usb/host/isp1760-hcd.c
-@@ -2207,14 +2207,14 @@ struct usb_hcd *isp1760_register(u64 res
- goto err_put;
- }
-
-- ret = usb_add_hcd(hcd, irq, irqflags);
-- if (ret)
-- goto err_unmap;
--
- hcd->irq = irq;
- hcd->rsrc_start = res_start;
- hcd->rsrc_len = res_len;
-
-+ ret = usb_add_hcd(hcd, irq, irqflags);
-+ if (ret)
-+ goto err_unmap;
-+
- return hcd;
-
- err_unmap:
diff --git a/version b/version
index 6044107c96b962..1306006e518064 100644
--- a/version
+++ b/version
@@ -1 +1 @@
-2.6.26-rc5-git5
+2.6.26-rc5-git7