linux/drivers/usb/phy
Paul Gortmaker 4e682bbd32 usb: limit OMAP related USB options to OMAP2PLUS platforms
commit 57f6ce072e ("usb: phy:
add a new driver for usb3 phy") added the new Kconfig option
OMAP_USB3, but it had no dependencies whatsoever, and hence
became available across all arch/platforms.

Which presumably caused this to show up in x86 randconfig:

    warning: (USB_MUSB_HDRC && OMAP_USB3) selects \
        OMAP_CONTROL_USB which has unmet direct \
        dependencies (USB_SUPPORT && ARCH_OMAP2PLUS)

Then commit 6992819feb ("usb: phy:
fix Kconfig warning") was added.  However, this just deleted the
ARCH_OMAP2PLUS dependency from OMAP_CONTROL_USB, further
compounding the problem by opening up OMAP_CONTROL_USB to
all arch/platforms as well.

Earlier it was suggested[1] that we revert the change of 6992819feb
to restore the dependency, and add a same ARCH_OMAP2PLUS dependency
to the new OMAP_USB3 entry.  However that was discouraged on the
grounds of people wanting the extra sanity compile testing on x86,
even though the driver could probably never be used there.

Now we have CONFIG_COMPILE_TEST, so developers who value the ability
to compile drivers on an architecture that it never can be used for
can have that, and people who want dependencies to shield them from
seeing options that aren't relevant to their platform get what they
want too.

Here we restore the dependency but couple it with COMPILE_TEST, in
order to achieve both of the above goals.

[1] https://patchwork.kernel.org/patch/2194511/

Acked-by: Felipe Balbi <balbi@ti.com>
Cc: Kishon Vijay Abraham I <kishon@ti.com>
Cc: Moiz Sonasath <m-sonasath@ti.com>
Cc: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-07-26 13:55:21 -07:00
..
Kconfig usb: limit OMAP related USB options to OMAP2PLUS platforms 2013-07-26 13:55:21 -07:00
Makefile USB: phy: remove CONFIG_USB_DEBUG usage 2013-07-23 16:34:50 -07:00
of.c usb: add devicetree helpers for determining dr_mode and phy_type 2013-06-17 13:47:09 -07:00
phy-ab8500-usb.c usb: phy: ab8500-usb: add ab9540 support 2013-05-28 20:03:55 +03:00
phy-fsl-usb.c USB: phy: remove custom DBG macro 2013-07-23 16:33:23 -07:00
phy-fsl-usb.h usb: phy: rename all phy drivers to phy-$name-usb.c 2013-03-18 11:18:08 +02:00
phy-fsm-usb.c usb: phy: rename all phy drivers to phy-$name-usb.c 2013-03-18 11:18:08 +02:00
phy-fsm-usb.h USB: phy: remove custom DBG macro 2013-07-23 16:33:23 -07:00
phy-gpio-vbus-usb.c usb: phy: Fix NULL pointer exception during usb_get_phy 2013-05-15 17:32:47 +03:00
phy-isp1301-omap.c USB: phy: remove custom DBG macro 2013-07-23 16:33:23 -07:00
phy-isp1301.c usb: phy: Fix NULL pointer exception during usb_get_phy 2013-05-15 17:32:47 +03:00
phy-msm-usb.c usb: otg: msm: Convert to clk_prepare/unprepare 2013-06-24 13:06:42 -07:00
phy-mv-u3d-usb.c drivers/usb/phy: don't check resource with devm_ioremap_resource 2013-05-18 11:58:00 +02:00
phy-mv-u3d-usb.h usb: phy: rename all phy drivers to phy-$name-usb.c 2013-03-18 11:18:08 +02:00
phy-mv-usb.c usb: phy: mv-usb: Remove redundant platform_set_drvdata() 2013-05-15 17:22:56 +03:00
phy-mv-usb.h usb: otg: mv_otg: remove unused clock 2013-04-02 11:42:45 +03:00
phy-mxs-usb.c drivers/usb/phy: don't check resource with devm_ioremap_resource 2013-05-18 11:58:00 +02:00
phy-nop.c usb: phy: phy-nop: Remove redundant use of of_match_ptr 2013-05-28 20:14:39 +03:00
phy-omap-control.c usb: phy: rename all phy drivers to phy-$name-usb.c 2013-03-18 11:18:08 +02:00
phy-omap-usb2.c usb: phy: rename all phy drivers to phy-$name-usb.c 2013-03-18 11:18:08 +02:00
phy-omap-usb3.c usb: phy: omap-usb3: updated dpll M,N values to support DRA7xx devices 2013-06-01 00:22:49 +03:00
phy-rcar-usb.c usb: phy: rcar-usb: Fix comment w.r.t. devm_ioremap_resource 2013-06-17 13:37:07 -07:00
phy-samsung-usb2.c usb: phy: samsung: Add support HSIC on Exynos4X12 2013-05-28 20:16:37 +03:00
phy-samsung-usb3.c usb: phy: samsung: Pass enable/disable callbacks through driver data 2013-05-28 20:07:15 +03:00
phy-samsung-usb.c usb: phy: samsung: Add support HSIC on Exynos4X12 2013-05-28 20:16:37 +03:00
phy-samsung-usb.h usb: phy: samsung: Add support HSIC on Exynos4X12 2013-05-28 20:16:37 +03:00
phy-tegra-usb.c usb: phy: tegra: remove duplicated include from phy-tegra-usb.c 2013-06-24 16:15:27 -07:00
phy-twl4030-usb.c usb: patches for v3.10 merge window 2013-04-05 15:18:00 -07:00
phy-twl6030-usb.c mfd: twl-core: Change TWL6025 references to TWL6032 2013-06-20 10:26:29 +02:00
phy-ulpi-viewport.c usb: phy: export ulpi_viewport_access_ops 2013-06-17 13:54:47 -07:00
phy-ulpi.c usb: phy: rename all phy drivers to phy-$name-usb.c 2013-03-18 11:18:08 +02:00
phy.c usb: phy: remove exported function from __init section 2013-04-23 14:13:48 +03:00