Re: [PATCH v4 4/5] xhci: sideband: add api to trace sideband usage

From: Greg KH
Date: Wed Oct 09 2024 - 08:51:54 EST


On Wed, Oct 09, 2024 at 05:42:58AM +0000, Guan-Yu Lin wrote:
> --- a/include/linux/usb/hcd.h
> +++ b/include/linux/usb/hcd.h
> @@ -84,6 +84,10 @@ struct usb_hcd {
> struct urb *status_urb; /* the current status urb */
> #ifdef CONFIG_PM
> struct work_struct wakeup_work; /* for remote wakeup */
> +#ifdef CONFIG_USB_XHCI_SIDEBAND
> + /* Number of active sideband accessing the host controller. */
> + atomic_t sb_usage_count;

It's a reference count, use refcount_t please.