On Thu, Mar 12, 2015 at 10:30:20AM +0800, Li Jun wrote:
> From: Li Jun <b47...@freescale.com>
> 
> Adds host_request_flag for gadget to store host request information from 
> application, which can be used to response to HNP polling from host.

typo, %s/response to/respond
> 
> Signed-off-by: Li Jun <jun...@freescale.com>
> ---
>  include/linux/usb/gadget.h |    3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h
> index e2f00fd..6443512 100644
> --- a/include/linux/usb/gadget.h
> +++ b/include/linux/usb/gadget.h
> @@ -521,6 +521,8 @@ struct usb_gadget_ops {
>   *   only supports HNP on a different root port.
>   * @b_hnp_enable: OTG device feature flag, indicating that the A-Host
>   *   enabled HNP support.
> + * @host_request_flag: OTG device feature flag, indicating if A-Peripheral
> + *   or B-Peripheral wants to take host role.
>   * @quirk_ep_out_aligned_size: epout requires buffer size to be aligned to
>   *   MaxPacketSize.
>   * @is_selfpowered: if the gadget is self-powered.
> @@ -563,6 +565,7 @@ struct usb_gadget {
>       unsigned                        b_hnp_enable:1;
>       unsigned                        a_hnp_support:1;
>       unsigned                        a_alt_hnp_support:1;
> +     unsigned                        host_request_flag:1;
>       unsigned                        quirk_ep_out_aligned_size:1;
>       unsigned                        is_selfpowered:1;
>  };
> -- 
> 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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to