From 8816de0b0fbf2f6dac19e334c315119a6332e1a1 Mon Sep 17 00:00:00 2001 From: Josh Boyer Date: Tue, 26 Mar 2013 07:52:06 -0400 Subject: [PATCH] Add quirk for Realtek card reader to avoid 10 sec boot delay (rhbz 806587) --- ...-quirk-for-Realtek-Multi-card-reader.patch | 45 +++++++++++++++++++ kernel.spec | 7 +++ 2 files changed, 52 insertions(+) create mode 100644 HID-usbhid-quirk-for-Realtek-Multi-card-reader.patch diff --git a/HID-usbhid-quirk-for-Realtek-Multi-card-reader.patch b/HID-usbhid-quirk-for-Realtek-Multi-card-reader.patch new file mode 100644 index 000000000..6bccd6cd1 --- /dev/null +++ b/HID-usbhid-quirk-for-Realtek-Multi-card-reader.patch @@ -0,0 +1,45 @@ +From 926bb9deb21046248d01e2f6fc86fdbb149b514c Mon Sep 17 00:00:00 2001 +From: Josh Boyer +Date: Fri, 15 Mar 2013 10:27:36 -0400 +Subject: [PATCH 1/2] HID: usbhid: quirk for Realtek Multi-card reader + +This device has an odd HID entry and causes a 10 second delay in boot. +Add this device to the quirks list with HID_QUIRK_NO_INIT_REPORTS. + +This fixes Red Hat bugzilla https://bugzilla.redhat.com/show_bug.cgi?id=806587 + +Signed-off-by: Josh Boyer +--- + drivers/hid/hid-ids.h | 3 +++ + drivers/hid/usbhid/hid-quirks.c | 1 + + 2 files changed, 4 insertions(+) + +diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h +index 92e47e5..d1063e9 100644 +--- a/drivers/hid/hid-ids.h ++++ b/drivers/hid/hid-ids.h +@@ -684,6 +684,9 @@ + #define USB_DEVICE_ID_QUANTA_OPTICAL_TOUCH_3001 0x3001 + #define USB_DEVICE_ID_QUANTA_OPTICAL_TOUCH_3008 0x3008 + ++#define USB_VENDOR_ID_REALTEK 0x0bda ++#define USB_DEVICE_ID_REALTEK_READER 0x0152 ++ + #define USB_VENDOR_ID_ROCCAT 0x1e7d + #define USB_DEVICE_ID_ROCCAT_ARVO 0x30d4 + #define USB_DEVICE_ID_ROCCAT_ISKU 0x319c +diff --git a/drivers/hid/usbhid/hid-quirks.c b/drivers/hid/usbhid/hid-quirks.c +index e0e6abf..e991d81 100644 +--- a/drivers/hid/usbhid/hid-quirks.c ++++ b/drivers/hid/usbhid/hid-quirks.c +@@ -80,6 +80,7 @@ static const struct hid_blacklist { + { USB_VENDOR_ID_PRODIGE, USB_DEVICE_ID_PRODIGE_CORDLESS, HID_QUIRK_NOGET }, + { USB_VENDOR_ID_QUANTA, USB_DEVICE_ID_QUANTA_OPTICAL_TOUCH_3001, HID_QUIRK_NOGET }, + { USB_VENDOR_ID_QUANTA, USB_DEVICE_ID_QUANTA_OPTICAL_TOUCH_3008, HID_QUIRK_NOGET }, ++ { USB_VENDOR_ID_REALTEK, USB_DEVICE_ID_REALTEK_READER, HID_QUIRK_NO_INIT_REPORTS }, + { USB_VENDOR_ID_SENNHEISER, USB_DEVICE_ID_SENNHEISER_BTD500USB, HID_QUIRK_NOGET }, + { USB_VENDOR_ID_SIGMATEL, USB_DEVICE_ID_SIGMATEL_STMP3780, HID_QUIRK_NOGET }, + { USB_VENDOR_ID_SUN, USB_DEVICE_ID_RARITAN_KVM_DONGLE, HID_QUIRK_NOGET }, +-- +1.8.1.2 + diff --git a/kernel.spec b/kernel.spec index fbb9bc83a..1b3d8d549 100644 --- a/kernel.spec +++ b/kernel.spec @@ -747,6 +747,9 @@ Patch21275: VMX-x86-handle-host-TSC-calibration-failure.patch #rhbz 907221 Patch21277: HID-usbhid-quirk-for-MSI-GX680R-led-panel.patch +#rhbz 806587 +Patch21278: HID-usbhid-quirk-for-Realtek-Multi-card-reader.patch + Patch22000: weird-root-dentry-name-debug.patch #selinux ptrace child permissions @@ -1454,6 +1457,9 @@ ApplyPatch mac80211-Dont-restart-sta-timer-if-not-running.patch #rhbz 907221 ApplyPatch HID-usbhid-quirk-for-MSI-GX680R-led-panel.patch +#rhbz 806587 +ApplyPatch HID-usbhid-quirk-for-Realtek-Multi-card-reader.patch + # END OF PATCH APPLICATIONS %endif @@ -2296,6 +2302,7 @@ fi # || || %changelog * Tue Mar 26 2013 Josh Boyer +- Add quirk for Realtek card reader to avoid 10 sec boot delay (rhbz 806587) - Add quirk for MSI keyboard backlight to avoid 10 sec boot delay (rhbz 907221) * Mon Mar 25 2013 Justin M. Forbes