Re: [PATCH v3 2/8] usb: add OTG status selector definition for HNP polling

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

 



On Tue, Mar 17, 2015 at 10:37:46PM +0800, Li Jun wrote:
> A host is required to use the GetStatus command, with wIndex set to the OTG
> status selector(F000H) to request the Host request flag from the peripheral.

Small comment, "Host request flag" you may use all words in capital letter
or lower letter.

Other than that: Acked-by: Peter Chen <peter.chen@xxxxxxxxxxxxx>

> 
> Signed-off-by: Li Jun <jun.li@xxxxxxxxxxxxx>
> ---
>  include/uapi/linux/usb/ch9.h |    2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/include/uapi/linux/usb/ch9.h b/include/uapi/linux/usb/ch9.h
> index aa33fd1..a50ec5f 100644
> --- a/include/uapi/linux/usb/ch9.h
> +++ b/include/uapi/linux/usb/ch9.h
> @@ -678,6 +678,8 @@ struct usb_otg_descriptor {
>  #define USB_OTG_SRP		(1 << 0)
>  #define USB_OTG_HNP		(1 << 1)	/* swap host/device roles */
>  
> +#define OTG_STS_SELECTOR	0xF000		/* OTG status selector */
> +
>  /*-------------------------------------------------------------------------*/
>  
>  /* USB_DT_DEBUG:  for special highspeed devices, replacing serial console */
> -- 
> 1.7.9.5
> 

-- 

Best Regards,
Peter Chen
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux