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

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



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.




[Index of Archives]     [Pulseaudio]     [Linux Audio Users]     [ALSA Devel]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux