Skip to content
Permalink
Pawel-Laszczak…
Switch branches/tags

Commits on Mar 15, 2021

  1. usb: webcam: Invalid size of Processing Unit Descriptor

    According with USB Device Class Definition for Video Device the
    Processing Unit Descriptor bLength should be 12 (10 + bmControlSize),
    but it has 11.
    
    Invalid length caused that Processing Unit Descriptor Test Video form
    CV tool failed. To fix this issue patch adds bmVideoStandards into
    uvc_processing_unit_descriptor structure.
    
    The bmVideoStandards field was added in UVC 1.1 and it wasn't part of
    UVC 1.0a.
    
    Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
    Signed-off-by: Pawel Laszczak <pawell@cadence.com>
    pawellcdns authored and intel-lab-lkp committed Mar 15, 2021
  2. usb: gadget: uvc: Updating bcdUVC field to 0x0110

    Command Verifier during UVC Descriptor Tests (Class Video Control
    Interface Descriptor Test Video) complains about:
    
    Video Control Interface Header bcdUVC is 0x0100. USB Video Class
    specification 1.0 has been replaced by 1.1 specification
    (UVC: 6.2.26) Class Video Control Interface Descriptor bcdUVC is not 1.1
    
    Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
    Signed-off-by: Pawel Laszczak <pawell@cadence.com>
    pawellcdns authored and intel-lab-lkp committed Mar 15, 2021

Commits on Mar 12, 2021

  1. usb: typec: tipd: Separate file for tracepoint creation

    Creating the tracepoints only when tracing is enabled.
    
    Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
    Link: https://lore.kernel.org/r/20210310104630.77945-4-heikki.krogerus@linux.intel.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Heikki Krogerus authored and gregkh committed Mar 12, 2021
  2. usb: typec: tps6598x: Move the driver under its own subdirectory

    The driver consist of multiple files. Grouping all of them
    under a separate directory drivers/usb/typec/tipd/.
    
    Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
    Link: https://lore.kernel.org/r/20210310104630.77945-3-heikki.krogerus@linux.intel.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Heikki Krogerus authored and gregkh committed Mar 12, 2021
  3. usb: typec: tps6598x: Fix tracepoint header file

    There were two typos in the precompiler conditions.
    
    Fixes: 65a2f67 ("usb: typec: tps6598x: Add trace event for IRQ events")
    Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
    Link: https://lore.kernel.org/r/20210310104630.77945-2-heikki.krogerus@linux.intel.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Heikki Krogerus authored and gregkh committed Mar 12, 2021
  4. usb: typec: tcpci: Refactor tcpc_presenting_cc1_rd macro

    Defining one macro instead of two for tcpc_presenting_*_rd.
    This is a follow up of the comment left by Heikki Krogerus.
    
    https://patchwork.kernel.org/project/linux-usb/patch/
    20210304070931.1947316-1-badhri@google.com/
    
    Reviewed-by: Guenter Roeck <linux@roeck-us.net>
    Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
    Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
    Link: https://lore.kernel.org/r/20210310223536.3471243-1-badhri@google.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Badhri Jagan Sridharan authored and gregkh committed Mar 12, 2021

Commits on Mar 10, 2021

  1. usb: usb-mx2: Remove unused file

    i.MX21 support has been dropped, so remove such unused file.
    
    Signed-off-by: Fabio Estevam <festevam@gmail.com>
    Link: https://lore.kernel.org/r/20210304023220.2362407-1-festevam@gmail.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    fabioestevam authored and gregkh committed Mar 10, 2021
  2. usb: typec: stusb160x: fix return value check in stusb160x_probe()

    In case of error, the function device_get_named_child_node() returns
    NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check
    should be replaced with NULL test.
    
    Fixes: da0cb63 ("usb: typec: add support for STUSB160x Type-C controller family")
    Reported-by: Hulk Robot <hulkci@huawei.com>
    Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
    Reviewed-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
    Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
    Link: https://lore.kernel.org/r/20210308094839.3586773-1-weiyongjun1@huawei.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Wei Yongjun authored and gregkh committed Mar 10, 2021
  3. usb: typec: tps6598x: Fix return value check in tps6598x_probe()

    In case of error, the function device_get_named_child_node() returns
    NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check
    should be replaced with NULL test.
    
    Fixes: 18a6c86 ("usb: typec: tps6598x: Add USB role switching logic")
    Reported-by: Hulk Robot <hulkci@huawei.com>
    Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
    Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
    Link: https://lore.kernel.org/r/20210308094841.3587751-1-weiyongjun1@huawei.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Wei Yongjun authored and gregkh committed Mar 10, 2021
  4. usb: typec: tcpm: turn tcpm_ams_finish into void function

    This function always return '0' and no callers use the return value.
    So make it a void function.
    
    This eliminates the following coccicheck warning:
    ./drivers/usb/typec/tcpm/tcpm.c:778:5-8: Unneeded variable: "ret".
    Return "0" on line 794
    
    Reported-by: Abaci Robot <abaci@linux.alibaba.com>
    Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
    Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
    Link: https://lore.kernel.org/r/1615185330-118246-1-git-send-email-yang.lee@linux.alibaba.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Yang Li authored and gregkh committed Mar 10, 2021
  5. usb: typec: tcpci: Check ROLE_CONTROL while interpreting CC_STATUS

    While interpreting CC_STATUS, ROLE_CONTROL has to be read to make
    sure that CC1/CC2 is not forced presenting Rp/Rd.
    
    >From the TCPCI spec:
    
    4.4.5.2 ROLE_CONTROL (Normative):
    The TCPM shall write B6 (DRP) = 0b and B3..0 (CC1/CC2) if it wishes
    to control the Rp/Rd directly instead of having the TCPC perform
    DRP toggling autonomously. When controlling Rp/Rd directly, the
    TCPM writes to B3..0 (CC1/CC2) each time it wishes to change the
    CC1/CC2 values. This control is used for TCPM-TCPC implementing
    Source or Sink only as well as when a connection has been detected
    via DRP toggling but the TCPM wishes to attempt Try.Src or Try.Snk.
    
    Table 4-22. CC_STATUS Register Definition:
    If (ROLE_CONTROL.CC1 = Rd) or ConnectResult=1)
    00b: SNK.Open (Below maximum vRa)
    01b: SNK.Default (Above minimum vRd-Connect)
    10b: SNK.Power1.5 (Above minimum vRd-Connect) Detects Rp-1.5A
    11b: SNK.Power3.0 (Above minimum vRd-Connect) Detects Rp-3.0A
    
    If (ROLE_CONTROL.CC2=Rd) or (ConnectResult=1)
    00b: SNK.Open (Below maximum vRa)
    01b: SNK.Default (Above minimum vRd-Connect)
    10b: SNK.Power1.5 (Above minimum vRd-Connect) Detects Rp 1.5A
    11b: SNK.Power3.0 (Above minimum vRd-Connect) Detects Rp 3.0A
    
    Fixes: 74e656d ("staging: typec: Type-C Port Controller Interface driver (tcpci)")
    Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
    Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
    Link: https://lore.kernel.org/r/20210304070931.1947316-1-badhri@google.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Badhri Jagan Sridharan authored and gregkh committed Mar 10, 2021
  6. usb: common: move function's kerneldoc next to its definition

    Following a general rule, add the kerneldoc for a function next
    to it's definition, but not next to its declaration in a header
    file.
    
    Suggested-by: Alan Stern <stern@rowland.harvard.edu>
    Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
    Link: https://lore.kernel.org/r/c4d2e010ae2bf67cdfa0b55e6d1deb9339d9d3dc.1615170625.git.chunfeng.yun@mediatek.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Chunfeng Yun authored and gregkh committed Mar 10, 2021
  7. usb: xhci-mtk: print debug info of endpoint interval

    Print bInterval and convert it into the time expressed in
    us or ms unit, this is the key info when allocate bandwidth
    failed.
    
    Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
    Link: https://lore.kernel.org/r/f7a9fa7a812296fcd6c603bfa9853076144018d6.1615170625.git.chunfeng.yun@mediatek.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Chunfeng Yun authored and gregkh committed Mar 10, 2021
  8. usb: common: add function to get interval expressed in us unit

    Add a new function to convert bInterval into the time expressed
    in 1us unit.
    
    Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
    Link: https://lore.kernel.org/r/25c8a09b055f716c1e5bf11fea72c3418f844482.1615170625.git.chunfeng.yun@mediatek.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Chunfeng Yun authored and gregkh committed Mar 10, 2021
  9. usb: xhci-mtk: support to build xhci-mtk-hcd.ko

    Currently xhci-hcd.ko building depends on USB_XHCI_MTK, this
    is not flexible for some cases. For example:
    USB_XHCI_HCD is y, and USB_XHCI_MTK is m, then we can't
    implement extended functions if only update xhci-mtk.ko
    This patch is used to remove the dependence.
    
    Acked-by: Mathias Nyman <mathias.nyman@linux.intel.com>
    Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
    Link: https://lore.kernel.org/r/0b62e21ddfacc1c2874726dd27ccab80c993f303.1615170625.git.chunfeng.yun@mediatek.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Chunfeng Yun authored and gregkh committed Mar 10, 2021
  10. usb: xhci-mtk: remove declaration of xhci_mtk_setup()

    Move xhci_driver_overrides struct variable after definition
    of xhci_mtk_setup(), then we can remove it's declaration.
    
    Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
    Link: https://lore.kernel.org/r/cf627d611a5c59508371cc3360cb402b70825fd8.1615170625.git.chunfeng.yun@mediatek.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Chunfeng Yun authored and gregkh committed Mar 10, 2021
  11. usb: xhci-mtk: add some schedule error number

    This is used to provide more information about which case
    causes bandwidth schedule failure.
    
    Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
    Link: https://lore.kernel.org/r/9771f44093053b581e9c4be4b7fb68d9fcecad08.1615170625.git.chunfeng.yun@mediatek.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Chunfeng Yun authored and gregkh committed Mar 10, 2021
  12. usb: xhci-mtk: rebuild the way to get bandwidth domain

    Rebuild the function get_bw_index(), get the bandwidth domain
    directly instead its index of domain array.
    
    Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
    Link: https://lore.kernel.org/r/de618970301702c57bd352bf87df48bc17c699dd.1615170625.git.chunfeng.yun@mediatek.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Chunfeng Yun authored and gregkh committed Mar 10, 2021
  13. usb: xhci-mtk: use @tt_info to check the FS/LS device is under a HS hub

    If the LS/FS device is connected to an external HS hub, the member
    @tt_info in xhci_virt_device struct in not NULL, use it to check
    whether a LS/FS device is under an exernal HS hub, then no need get
    the slot context of this device.
    
    Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
    Link: https://lore.kernel.org/r/8117df52f16bd03087e486d7d740a183b6dd634a.1615170625.git.chunfeng.yun@mediatek.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Chunfeng Yun authored and gregkh committed Mar 10, 2021
  14. usb: xhci-mtk: add a member @speed in mu3h_sch_ep_info struct

    This is used to drop parameter @udev for some functions,
    meanwhile remove some unused @udev parameter.
    
    Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
    Link: https://lore.kernel.org/r/cda0833e44d6027cc8fdee1e29ce2b5b2a6ac03d.1615170625.git.chunfeng.yun@mediatek.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Chunfeng Yun authored and gregkh committed Mar 10, 2021
  15. usb: xhci-mtk: use clear type instead of void

    Use struct usb_host_endpoint instead of void to declare
    the member @ep of mu3h_sch_ep_info struct.
    
    Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
    Link: https://lore.kernel.org/r/e9790eb4b959f9f843433fa5048c76772cc59061.1615170625.git.chunfeng.yun@mediatek.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Chunfeng Yun authored and gregkh committed Mar 10, 2021
  16. usb: xhci-mtk: remove unnecessary members of mu3h_sch_tt struct

    The members @usb_tt and @tt_port in mu3h_sch_tt struct
    are not used after initialization, so can be removed
    
    Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
    Link: https://lore.kernel.org/r/9afecc2411895a3c76658df26ebca1c961a39fbb.1615170625.git.chunfeng.yun@mediatek.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Chunfeng Yun authored and gregkh committed Mar 10, 2021
  17. usb: xhci-mtk: add a function to get bandwidth boundary

    This is used to simplify unit test.
    
    Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
    Link: https://lore.kernel.org/r/805b3ba66c2f02a52de4440212519aaa58463039.1615170625.git.chunfeng.yun@mediatek.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Chunfeng Yun authored and gregkh committed Mar 10, 2021
  18. usb: xhci-mtk: add a function to (un)load bandwidth info

    Extract a function to load/unload bandwidth info, and remove
    a dummy check of TT offset.
    
    Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
    Link: https://lore.kernel.org/r/6fbc000756a4a4a7efbce651b785fee7561becb6.1615170625.git.chunfeng.yun@mediatek.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Chunfeng Yun authored and gregkh committed Mar 10, 2021
  19. usb: xhci-mtk: use @sch_tt to check whether need do TT schedule

    It's clearer to use @sch_tt to check whether need do TT schedule,
    no function is changed.
    
    Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
    Link: https://lore.kernel.org/r/324a76782ccaf857a8f01f67aee435e8ec7d0e28.1615170625.git.chunfeng.yun@mediatek.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Chunfeng Yun authored and gregkh committed Mar 10, 2021
  20. usb: xhci-mtk: add only one extra CS for FS/LS INTR

    In USB2 Spec:
    "11.18.5 TT Response Generation
    In general, there will be two (or more) complete-split
    transactions scheduled for a periodic endpoint.
    However, for interrupt endpoints, the maximum size of
    the full-/low-speed transaction guarantees that it can
    never require more than two complete-split transactions.
    Two complete-split transactions are only required
    when the transaction spans a microframe boundary."
    
    Due to the maxp is 64, and less then 188 (at most in one
    microframe), seems never span boundary, so use only one CS
    for FS/LS interrupt transfer, this will save some bandwidth.
    
    Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
    Link: https://lore.kernel.org/r/5b9ff09f53d23cf9e5c5437db4ffc18b798bf60c.1615170625.git.chunfeng.yun@mediatek.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Chunfeng Yun authored and gregkh committed Mar 10, 2021
  21. usb: xhci-mtk: get the microframe boundary for ESIT

    Tune the boundary for FS/LS ESIT due to CS:
    For ISOC out-ep, the controller starts transfer data after
    the first SS; for others, the data is already transferred
    before the last CS.
    
    Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
    Link: https://lore.kernel.org/r/49e5a269a47984f3126a70c3fb471b0c2874b8c2.1615170625.git.chunfeng.yun@mediatek.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Chunfeng Yun authored and gregkh committed Mar 10, 2021
  22. usb: xhci-mtk: improve bandwidth scheduling with TT

    When the USB headset is plug into an external hub, sometimes
    can't set config due to not enough bandwidth, so need improve
    LS/FS INT/ISOC bandwidth scheduling with TT.
    
    Fixes: 54f6a8a ("usb: xhci-mtk: skip dropping bandwidth of unchecked endpoints")
    Cc: stable <stable@vger.kernel.org>
    Signed-off-by: Yaqii Wu <yaqii.wu@mediatek.com>
    Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
    Link: https://lore.kernel.org/r/2f30e81400a59afef5f8231c98149169c7520519.1615170625.git.chunfeng.yun@mediatek.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Chunfeng Yun authored and gregkh committed Mar 10, 2021
  23. usb: xhci-mtk: remove or operator for setting schedule parameters

    Side effect may happen if use or operator to set schedule parameters
    when the parameters are already set before. Set them directly due to
    other bits are reserved.
    
    Fixes: 54f6a8a ("usb: xhci-mtk: skip dropping bandwidth of unchecked endpoints")
    Cc: stable <stable@vger.kernel.org>
    Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
    Link: https://lore.kernel.org/r/d287899e6beb2fc1bfb8900c75a872f628ecde55.1615170625.git.chunfeng.yun@mediatek.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Chunfeng Yun authored and gregkh committed Mar 10, 2021
  24. usb: dwc3: document usb_psy in struct dwc3

    The new struct member was added to struct dwc3, but
    a documentation was missing:
    
    drivers/usb/dwc3/core.h:1273: warning: Function parameter or member 'usb_psy' not described in 'dwc3'
    
    Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
    Signed-off-by: Ray Chi <raychi@google.com>
    Link: https://lore.kernel.org/r/20210303095802.2801733-1-raychi@google.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Ray Chi authored and gregkh committed Mar 10, 2021
  25. usb: dwc3: Fix dereferencing of null dwc->usb_psy

    Currently the null check logic on dwc->usb_psy is inverted as it allows
    calls to power_supply_put with a null dwc->usb_psy causing a null
    pointer dereference. Fix this by removing the ! operator.
    
    Addresses-Coverity: ("Dereference after null check")
    Fixes: 59fa3de ("usb: dwc3: add a power supply for current control")
    Signed-off-by: Colin Ian King <colin.king@canonical.com>
    Link: https://lore.kernel.org/r/20210303095826.6143-1-colin.king@canonical.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Colin Ian King authored and gregkh committed Mar 10, 2021
  26. USB: remove usb_bus_type from usb.h

    We have 2 forward declarations of usb_bus_type, one in the system-wide
    usb.h and the other in the "USB core only header file".  This variable
    is not exported from the USB core, so remove the declaration from usb.h
    as it does not need to be there.
    
    Cc: Thomas Zimmermann <tzimmermann@suse.de>
    Cc: linux-usb@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Link: https://lore.kernel.org/r/20210226102356.716746-1-gregkh@linuxfoundation.org
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    gregkh committed Mar 10, 2021
  27. USB: typec: tcpm: create debugfs subdir for the driver

    The single debugfs file for this driver really is a log file, so make a
    subdir and call it "log" to make it obvious this is what it is for.
    This makes cleanup simpler as we just remove the whole directory, no
    need to handle individual files anymore.
    
    Cc: Guenter Roeck <linux@roeck-us.net>
    Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com>
    Cc: linux-usb@vger.kernel.org
    Reviewed-by: Guenter Roeck <linux@roeck-us.net>
    Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
    Link: https://lore.kernel.org/r/20210216144645.3813043-6-gregkh@linuxfoundation.org
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    gregkh committed Mar 10, 2021
  28. USB: typec: fusb302: create debugfs subdir for the driver

    The single debugfs file for this driver really is a log file, so make a
    subdir and call it "log" to make it obvious this is what it is for.
    This makes cleanup simpler as we just remove the whole directory, no
    need to handle individual files anymore.
    
    Cc: Guenter Roeck <linux@roeck-us.net>
    Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com>
    Cc: linux-usb@vger.kernel.org
    Reviewed-by: Guenter Roeck <linux@roeck-us.net>
    Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
    Link: https://lore.kernel.org/r/20210216144645.3813043-5-gregkh@linuxfoundation.org
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    gregkh committed Mar 10, 2021
  29. USB: host: uhci: remove dentry pointer for debugfs

    There is no need to keep the dentry pointer around for the created
    debugfs file, as it is only needed when removing it from the system.
    When it is to be removed, ask debugfs itself for the pointer, to save on
    storage and make things a bit simpler.
    
    And, no one noticed that a __maybe_unused dentry * in uhci_start()
    really was unused, so remove that as it's obviously not needed, and
    hasn't been for quite some time.
    
    Cc: Alan Stern <stern@rowland.harvard.edu>
    Cc: linux-usb@vger.kernel.org
    Link: https://lore.kernel.org/r/20210216144645.3813043-4-gregkh@linuxfoundation.org
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    gregkh committed Mar 10, 2021
Older