Patch "USB: fix build error with CONFIG_PM_RUNTIME disabled" has been added to the 3.14-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    USB: fix build error with CONFIG_PM_RUNTIME disabled

to the 3.14-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     usb-fix-build-error-with-config_pm_runtime-disabled.patch
and it can be found in the queue-3.14 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From a9ef803d740bfadf5e505fbc57efa57692e27025 Mon Sep 17 00:00:00 2001
From: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 27 Aug 2014 16:55:29 -0700
Subject: USB: fix build error with CONFIG_PM_RUNTIME disabled

From: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

commit a9ef803d740bfadf5e505fbc57efa57692e27025 upstream.

commit bdd405d2a528 ("usb: hub: Prevent hub autosuspend if
usbcore.autosuspend is -1") causes a build error if CONFIG_PM_RUNTIME is
disabled.  Fix that by doing a simple #ifdef guard around it.

Reported-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
Reported-by: kbuild test robot <fengguang.wu@xxxxxxxxx>
Cc: Roger Quadros <rogerq@xxxxxx>
Cc: Michael Welling <mwelling@xxxxxxxxxxx>
Cc: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

---
 drivers/usb/core/hub.c |    2 ++
 1 file changed, 2 insertions(+)

--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -1699,8 +1699,10 @@ static int hub_probe(struct usb_interfac
 	 * - If user has indicated to prevent autosuspend by passing
 	 *   usbcore.autosuspend = -1 then keep autosuspend disabled.
 	 */
+#ifdef CONFIG_PM_RUNTIME
 	if (hdev->dev.power.autosuspend_delay >= 0)
 		pm_runtime_set_autosuspend_delay(&hdev->dev, 0);
+#endif
 
 	/*
 	 * Hubs have proper suspend/resume support, except for root hubs


Patches currently in stable-queue which might be from gregkh@xxxxxxxxxxxxxxxxxxx are

queue-3.14/hwmon-sis5595-prevent-overflow-problem-when-writing-large-limits.patch
queue-3.14/btrfs-fix-memory-corruption-by-ulist_add_merge-on-32bit-arch.patch
queue-3.14/alsa-hda-realtek-avoid-setting-wrong-coef-on-alc269-co.patch
queue-3.14/crypto-ux500-make-interrupt-mode-plausible.patch
queue-3.14/kvm-nvmx-fix-acknowledge-interrupt-on-exit-when-apicv-is-in-use.patch
queue-3.14/usb-fix-build-error-with-config_pm_runtime-disabled.patch
queue-3.14/tpm-add-missing-tpm_do_selftest-to-st33-i2c-driver.patch
queue-3.14/mei-nfc-fix-memory-leak-in-error-path.patch
queue-3.14/usb-ohci-don-t-lose-track-of-eds-when-a-controller-dies.patch
queue-3.14/x86-xen-use-vmap-to-map-grant-table-pages-in-pvh-guests.patch
queue-3.14/usb-ehci-using-windex-1-for-hub-port.patch
queue-3.14/hpsa-fix-bad-enomem-return-value-in-hpsa_big_passthru_ioctl.patch
queue-3.14/arm-dts-am4372-correct-mailbox-node-data.patch
queue-3.14/hid-fix-a-couple-of-off-by-ones.patch
queue-3.14/drm-radeon-add-additional-si-pci-ids.patch
queue-3.14/usb-serial-ftdi_sio-annotate-the-current-xsens-pid-assignments.patch
queue-3.14/x86_64-vsyscall-fix-warn_bad_vsyscall-log-output.patch
queue-3.14/hwmon-ads1015-fix-off-by-one-for-valid-channel-index-checking.patch
queue-3.14/nfsv4-fix-problems-with-close-in-the-presence-of-a-delegation.patch
queue-3.14/usb-ftdi_sio-add-basic-micro-atom-nano-usb2serial-pid.patch
queue-3.14/serial-core-preserve-termios-c_cflag-for-console-resume.patch
queue-3.14/acpi-pci-fix-sysfs-acpi_index-and-label-errors.patch
queue-3.14/kvm-iommu-fix-the-third-parameter-of-kvm_iommu_put_pages-cve-2014-3601.patch
queue-3.14/alsa-usb-audio-fix-boss-me-25-midi-regression.patch
queue-3.14/alsa-hda-restore-the-gpio-led-after-resume.patch
queue-3.14/btrfs-fix-crash-on-endio-of-reading-corrupted-block.patch
queue-3.14/usb-ehci-pci-usb-host-controller-support-for-intel-quark-x1000.patch
queue-3.14/staging-et131x-fix-errors-caused-by-phydev-addr-accesses-before-initialisation.patch
queue-3.14/nfsd-decrease-nfsd_users-in-nfsd_startup_generic-fail.patch
queue-3.14/alsa-hda-fix-an-external-mic-jack-problem-on-a-hp-machine.patch
queue-3.14/xhci-treat-not-finding-the-event_seg-on-comp_stop-the-same-as-comp_stop_inval.patch
queue-3.14/nfs-fix-proc-fs-nfsfs-servers-and-proc-fs-nfsfs-volumes.patch
queue-3.14/hpsa-fix-non-x86-builds.patch
queue-3.14/nfs3_list_one_acl-check-get_acl-result-with-is_err_or_null.patch
queue-3.14/ext4-update-i_disksize-coherently-with-block-allocation-on-error-path.patch
queue-3.14/ext4-fix-ext4_discard_allocated_blocks-if-we-can-t-allocate-the-pa-struct.patch
queue-3.14/hwmon-lm78-fix-overflow-problems-seen-when-writing-large-temperature-limits.patch
queue-3.14/mei-reset-client-state-on-queued-connect-request.patch
queue-3.14/alsa-virtuoso-add-xonar-essence-stx-ii-support.patch
queue-3.14/btrfs-fix-csum-tree-corruption-duplicate-and-outdated-checksums.patch
queue-3.14/arm-omap3-fix-choice-of-omap3_restore_es-function-in-omap34xx-rev3.1.2-case.patch
queue-3.14/btrfs-read-lock-extent-buffer-while-walking-backrefs.patch
queue-3.14/hwmon-gpio-fan-prevent-overflow-problem-when-writing-large-limits.patch
queue-3.14/ext4-fix-bug_on-in-mb_free_blocks.patch
queue-3.14/arm-8097-1-unistd.h-relocate-comments-back-to-place.patch
queue-3.14/sched-fix-sched_setparam-policy-1-logic.patch
queue-3.14/hid-logitech-perform-bounds-checking-on-device_id-early-enough.patch
queue-3.14/kvm-x86-always-exit-on-eois-for-interrupts-listed-in-the-ioapic-redir-table.patch
queue-3.14/kvm-x86-inter-privilege-level-ret-emulation-is-not-implemeneted.patch
queue-3.14/alsa-hda-add-mute-led-pin-quirk-for-hp-15-touchsmart.patch
queue-3.14/usb-devio-fix-issue-with-log-flooding.patch
queue-3.14/powerpc-powernv-update-dev-dma_mask-in-pci_set_dma_mask-path.patch
queue-3.14/hwmon-amc6821-fix-possible-race-condition-bug.patch
queue-3.14/mei-start-disconnect-request-timer-consistently.patch
queue-3.14/btrfs-fix-compressed-write-corruption-on-enospc.patch
queue-3.14/alsa-hda-ca0132-don-t-try-loading-firmware-at-resume-when-already-failed.patch
queue-3.14/revert-kvm-x86-increase-the-number-of-fixed-mtrr-regs-to-10.patch
queue-3.14/pci-configure-aspm-when-enabling-device.patch
queue-3.14/debugfs-fix-corrupted-loop-in-debugfs_remove_recursive.patch
queue-3.14/usb-xhci-amd-chipset-also-needs-short-tx-quirk.patch
queue-3.14/hwmon-ads1015-fix-out-of-bounds-array-access.patch
queue-3.14/drm-omapdrm-fix-compiler-errors.patch
queue-3.14/jbd2-fix-descriptor-block-size-handling-errors-with-journal_csum.patch
queue-3.14/usb-hub-prevent-hub-autosuspend-if-usbcore.autosuspend-is-1.patch
queue-3.14/hwmon-dme1737-prevent-overflow-problem-when-writing-large-limits.patch
queue-3.14/usb-serial-ftdi_sio-add-support-for-new-xsens-devices.patch
queue-3.14/usb-whiteheat-added-bounds-checking-for-bulk-command-response.patch
queue-3.14/arm-omap2-hwmod-rearm-wake-up-interrupts-for-dt-when-musb-is-idled.patch
queue-3.14/drivers-i2c-busses-use-correct-type-for-dma_map-unmap.patch
queue-3.14/vm_is_stack-use-for_each_thread-rather-then-buggy-while_each_thread.patch
queue-3.14/powerpc-pci-reorder-pci-bus-bridge-unregistration-during-phb-removal.patch
queue-3.14/staging-r8188eu-add-new-usb-id.patch
queue-3.14/drm-radeon-add-new-kv-pci-id.patch
queue-3.14/staging-rtl8188eu-add-0df6-0076-sitecom-europe-b.v.patch
queue-3.14/stable_kernel_rules-add-pointer-to-netdev-faq-for-network-patches.patch
queue-3.14/alsa-usb-audio-adjust-gamecom-780-volume-level.patch
queue-3.14/jbd2-fix-infinite-loop-when-recovering-corrupt-journal-blocks.patch
queue-3.14/nfsv3-fix-another-acl-regression.patch
queue-3.14/drm-radeon-add-new-bonaire-pci-ids.patch
queue-3.14/usb-ohci-fix-bugs-in-debug-routines.patch
queue-3.14/svcrdma-select-nfsv4.1-backchannel-transport-based-on-forward-channel.patch
queue-3.14/usb-fix-persist-resume-of-some-ss-usb-devices.patch
queue-3.14/x86-efi-enforce-config_relocatable-for-efi-boot-stub.patch
queue-3.14/hwmon-lm85-fix-various-errors-on-attribute-writes.patch
queue-3.14/xen-events-fifo-ensure-all-bitops-are-properly-aligned-even-on-x86.patch
queue-3.14/usb-ftdi_sio-added-pid-for-new-ekey-device.patch
queue-3.14/isofs-fix-unbounded-recursion-when-processing-relocated-directories.patch
queue-3.14/x86-xen-resume-timer-irqs-early.patch
queue-3.14/x86-don-t-exclude-low-bios-area-when-allocating-address-space-for-non-pci-cards.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]