lkml.org 
[lkml]   [2014]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [RFC PATCH v2] xhci: Prevent runtime pm from autosuspending during initialization
    From
    On Mon, Feb 24, 2014 at 8:29 AM, Mathias Nyman
    <mathias.nyman@linux.intel.com> wrote:
    > xHCI driver has its own pci probe function that will call usb_hcd_pci_probe
    > to register its usb-2 bus, and then continue to manually register the
    > usb-3 bus. usb_hcd_pci_probe does a pm_runtime_put_noidle at the end and
    > might thus trigger a runtime suspend before the usb-3 bus is ready.
    >
    > Prevent the runtime suspend by increasing the usage count in the
    > beginning of xhci_pci_probe, and decrease it once the usb-3 bus is
    > ready.
    >
    > xhci-platform driver is not using usb_hcd_pci_probe to set up
    > busses and should not need to have it's usage count increased during probe.
    >
    > Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>

    Acked-by: Dan Williams <dan.j.williams@intel.com>


    \
     
     \ /
      Last update: 2014-02-24 19:01    [W:3.077 / U:0.044 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site