linux_dsm_epyc7002/drivers/phy
Hans de Goede 6d36b6f313 phy-core: Don't allow building phy-core as a module
include/phy/phy.h has stub code in there for when building without the
phy-core enabled. This is useful for generic drivers such as ahci-platform,
ehci-platoform and ohci-platform which have support for driving an optional
phy passed to them through the devicetree.

Since on some boards this phy functionality is not needed, being able to
disable the phy subsystem without needing a lot of #ifdef magic in the
driver using it is quite useful.

However this breaks when the module using the phy subsystem is build-in and
the phy-core is not, which leads to the build failing with missing symbol
errors in the linking stage of the zImage.

Which leads to gems such as this being added to the Kconfig for achi_platform:

	depends on GENERIC_PHY || !GENERIC_PHY

Rather then duplicating this code in a lot of places using the phy-core,
I believe it is better to simply not allow the phy-core to be built as a
module. The phy core is quite small and has no external dependencies, so
always building it in when enabling it should not be an issue.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-02-15 12:28:39 -08:00
..
Kconfig phy-core: Don't allow building phy-core as a module 2014-02-15 12:28:39 -08:00
Makefile USB patches for 3.14-rc1 2014-01-20 16:13:02 -08:00
phy-bcm-kona-usb2.c phy: add Broadcom Kona USB2 PHY driver 2013-12-23 14:33:02 -06:00
phy-core.c phy: phy-core.c: remove unnecessary initialization of local variables 2013-12-24 23:52:58 +05:30
phy-exynos-dp-video.c
phy-exynos-mipi-video.c
phy-mvebu-sata.c Phy: Add a PHY driver for Marvell MVEBU SATA PHY. 2013-12-24 23:52:58 +05:30
phy-omap-usb2.c
phy-twl4030-usb.c