From: Sergei Shtylyov <sergei.shtylyov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
To: Ezequiel Garcia
<ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>,
linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org>
Subject: Re: [PATCH 2/2] usb: musb: Rework USB and USB_GADGET dependency
Date: Thu, 26 Dec 2013 16:40:19 +0400 [thread overview]
Message-ID: <52BC23B3.4080107@cogentembedded.com> (raw)
In-Reply-To: <1388060693-2716-3-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
Hello.
On 26-12-2013 16:24, Ezequiel Garcia wrote:
> This USB controller can work in as host-only, gadget-only or dual-role
> modes. Rework the dependency on the USB and USB_GADGET configs in order
> to allow building the driver when !USB or !USG_GADGET.
> Signed-off-by: Ezequiel Garcia <ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
[...]
> diff --git a/drivers/usb/musb/Kconfig b/drivers/usb/musb/Kconfig
> index 57dfc0c..a1d805f 100644
> --- a/drivers/usb/musb/Kconfig
> +++ b/drivers/usb/musb/Kconfig
> @@ -6,7 +6,7 @@
> # (M)HDRC = (Multipoint) Highspeed Dual-Role Controller
> config USB_MUSB_HDRC
> tristate 'Inventra Highspeed Dual Role Controller (TI, ADI, ...)'
> - depends on USB_GADGET
> + depends on (USB || USB_GADGET)
Parens are not needed here. Be consistent with other entries MUSB please.
> help
> Say Y here if your system has a dual role high speed USB
> controller based on the Mentor Graphics silicon IP. Then
> @@ -35,21 +35,21 @@ choice
>
> config USB_MUSB_HOST
> bool "Host only mode"
> - depends on USB
> + depends on USB=y || USB=USB_MUSB_HDRC
> help
> Select this when you want to use MUSB in host mode only,
> thereby the gadget feature will be regressed.
>
> config USB_MUSB_GADGET
> bool "Gadget only mode"
> - depends on USB_GADGET
> + depends on USB_GADGET=y || USB_GADGET=USB_MUSB_HDRC
> help
> Select this when you want to use MUSB in gadget mode only,
> thereby the host feature will be regressed.
>
> config USB_MUSB_DUAL_ROLE
> bool "Dual Role mode"
> - depends on (USB && USB_GADGET)
> + depends on ((USB=y || USB=USB_MUSB_HDRC) && (USB_GADGET=y || USB_GADGET=USB_MUSB_HDRC))
Outer parens are not needed either...
WBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2013-12-26 12:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-26 12:24 [PATCH 0/2] musb: Rework USB and USB_GADGET config Ezequiel Garcia
2013-12-26 12:24 ` [PATCH 1/2] usb: musb: Remove usb_disable() check in module_init() Ezequiel Garcia
2013-12-26 12:24 ` [PATCH 2/2] usb: musb: Rework USB and USB_GADGET dependency Ezequiel Garcia
[not found] ` <1388060693-2716-3-git-send-email-ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2013-12-26 12:40 ` Sergei Shtylyov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52BC23B3.4080107@cogentembedded.com \
--to=sergei.shtylyov-m4dtvfq/zs1mrggop+s0pdbpr1lh4cv8@public.gmane.org \
--cc=balbi-l0cyMroinI0@public.gmane.org \
--cc=ezequiel.garcia-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org \
--cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.