]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: net: cpsw: make cpsw_ale.c a module to allow re-use on Keystone
authorKaricheri, Muralidharan <m-karicheri2@ti.com>
Thu, 29 Jan 2015 23:15:51 +0000 (18:15 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Feb 2015 01:33:07 +0000 (17:33 -0800)
commit99f904da374e276ae1904090714260843e8fda3b
tree94b1e068f2a91fd553d18d534eeec8ca619dc1e0
parent46a3ea4aa546e9f3f6eb748fdf6de25ebe6d3672
drivers: net: cpsw: make cpsw_ale.c a module to allow re-use on Keystone

NetCP on Keystone has cpsw ale function similar to other TI SoCs
and this driver is re-used. To allow both ti cpsw and keystone netcp
to re-use the driver, convert the cpsw ale to a module and configure
it through Kconfig option CONFIG_TI_CPSW_ALE. Currently it is statically
linked to both TI CPSW and NetCP and this causes issues when the above
drivers are built as dynamic modules. This patch addresses this issue

While at it, fix the Makefile and code to build both netcp_core and
netcp_ethss as dynamic modules. This is needed to support arm allmodconfig.
This also requires exporting of API calls provided by netcp_core so that
both the above can be dynamic modules.

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Acked-by: Mugunthan V N <mugunthanvnm@ti.com>
Tested-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/Kconfig
drivers/net/ethernet/ti/Makefile
drivers/net/ethernet/ti/cpsw_ale.c
drivers/net/ethernet/ti/netcp_core.c
drivers/net/ethernet/ti/netcp_ethss.c