linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] blackfin: Remove dead DSA code
@ 2017-01-01 22:42 Florian Fainelli
  2017-01-01 22:42 ` [PATCH 1/2] blackfin: tcm-bf518: Remove dsa.h inclusion Florian Fainelli
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Florian Fainelli @ 2017-01-01 22:42 UTC (permalink / raw)
  To: linux-kernel
  Cc: andrew, vivien.didelot, adi-buildroot-devel, realmz6, Florian Fainelli

Hi all,

This patch series removes dead DSA code in the blackfin board specific
code. There is no in tree driver for the KSZ8893M, and clearly this
would not compile anymore.

Preparatory patch to help remove the legacy DSA platform device code from
the tree.

Florian Fainelli (2):
  blackfin: tcm-bf518: Remove dsa.h inclusion
  blackfin: ezbrd: Remove non-functional DSA/KSZ8893M code

 arch/blackfin/mach-bf518/boards/ezbrd.c     | 47 -----------------------------
 arch/blackfin/mach-bf518/boards/tcm-bf518.c |  1 -
 2 files changed, 48 deletions(-)

-- 
2.9.3

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 1/2] blackfin: tcm-bf518: Remove dsa.h inclusion
  2017-01-01 22:42 [PATCH 0/2] blackfin: Remove dead DSA code Florian Fainelli
@ 2017-01-01 22:42 ` Florian Fainelli
  2017-01-01 22:42 ` [PATCH 2/2] blackfin: ezbrd: Remove non-functional DSA/KSZ8893M code Florian Fainelli
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: Florian Fainelli @ 2017-01-01 22:42 UTC (permalink / raw)
  To: linux-kernel
  Cc: andrew, vivien.didelot, adi-buildroot-devel, realmz6, Florian Fainelli

Nothing in that file uses definitions from that header, so just get rid of it.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
 arch/blackfin/mach-bf518/boards/tcm-bf518.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/blackfin/mach-bf518/boards/tcm-bf518.c b/arch/blackfin/mach-bf518/boards/tcm-bf518.c
index 240d5cb1f02c..37d868085f6a 100644
--- a/arch/blackfin/mach-bf518/boards/tcm-bf518.c
+++ b/arch/blackfin/mach-bf518/boards/tcm-bf518.c
@@ -25,7 +25,6 @@
 #include <asm/dpmc.h>
 #include <asm/bfin_sdh.h>
 #include <linux/spi/ad7877.h>
-#include <net/dsa.h>
 
 /*
  * Name the Board for the /proc/cpuinfo
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/2] blackfin: ezbrd: Remove non-functional DSA/KSZ8893M code
  2017-01-01 22:42 [PATCH 0/2] blackfin: Remove dead DSA code Florian Fainelli
  2017-01-01 22:42 ` [PATCH 1/2] blackfin: tcm-bf518: Remove dsa.h inclusion Florian Fainelli
@ 2017-01-01 22:42 ` Florian Fainelli
  2017-01-29  3:15 ` [PATCH 0/2] blackfin: Remove dead DSA code Florian Fainelli
  2017-05-28 23:59 ` Florian Fainelli
  3 siblings, 0 replies; 8+ messages in thread
From: Florian Fainelli @ 2017-01-01 22:42 UTC (permalink / raw)
  To: linux-kernel
  Cc: andrew, vivien.didelot, adi-buildroot-devel, realmz6, Florian Fainelli

There is no in tree driver for the KSZ8893M switch driver, so just get rid of
the code in that board file.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
 arch/blackfin/mach-bf518/boards/ezbrd.c | 47 ---------------------------------
 1 file changed, 47 deletions(-)

diff --git a/arch/blackfin/mach-bf518/boards/ezbrd.c b/arch/blackfin/mach-bf518/boards/ezbrd.c
index d022112927c2..c51d1b810ac3 100644
--- a/arch/blackfin/mach-bf518/boards/ezbrd.c
+++ b/arch/blackfin/mach-bf518/boards/ezbrd.c
@@ -25,7 +25,6 @@
 #include <asm/dpmc.h>
 #include <asm/bfin_sdh.h>
 #include <linux/spi/ad7877.h>
-#include <net/dsa.h>
 
 /*
  * Name the Board for the /proc/cpuinfo
@@ -105,11 +104,7 @@ static const unsigned short bfin_mac_peripherals[] = {
 
 static struct bfin_phydev_platform_data bfin_phydev_data[] = {
 	{
-#if IS_ENABLED(CONFIG_NET_DSA_KSZ8893M)
-		.addr = 3,
-#else
 		.addr = 1,
-#endif
 		.irq = IRQ_MAC_PHYINT,
 	},
 };
@@ -119,9 +114,6 @@ static struct bfin_mii_bus_platform_data bfin_mii_bus_data = {
 	.phydev_data = bfin_phydev_data,
 	.phy_mode = PHY_INTERFACE_MODE_MII,
 	.mac_peripherals = bfin_mac_peripherals,
-#if IS_ENABLED(CONFIG_NET_DSA_KSZ8893M)
-	.phy_mask = 0xfff7, /* Only probe the port phy connect to the on chip MAC */
-#endif
 	.vlan1_mask = 1,
 	.vlan2_mask = 2,
 };
@@ -140,29 +132,6 @@ static struct platform_device bfin_mac_device = {
 	}
 };
 
-#if IS_ENABLED(CONFIG_NET_DSA_KSZ8893M)
-static struct dsa_chip_data ksz8893m_switch_chip_data = {
-	.mii_bus = &bfin_mii_bus.dev,
-	.port_names = {
-		NULL,
-		"eth%d",
-		"eth%d",
-		"cpu",
-	},
-};
-static struct dsa_platform_data ksz8893m_switch_data = {
-	.nr_chips = 1,
-	.netdev = &bfin_mac_device.dev,
-	.chip = &ksz8893m_switch_chip_data,
-};
-
-static struct platform_device ksz8893m_switch_device = {
-	.name		= "dsa",
-	.id		= 0,
-	.num_resources	= 0,
-	.dev.platform_data = &ksz8893m_switch_data,
-};
-#endif
 #endif
 
 #if IS_ENABLED(CONFIG_MTD_M25P80)
@@ -228,19 +197,6 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
 	},
 #endif
 
-#if IS_ENABLED(CONFIG_BFIN_MAC)
-#if IS_ENABLED(CONFIG_NET_DSA_KSZ8893M)
-	{
-		.modalias = "ksz8893m",
-		.max_speed_hz = 5000000,
-		.bus_num = 0,
-		.chip_select = 1,
-		.platform_data = NULL,
-		.mode = SPI_MODE_3,
-	},
-#endif
-#endif
-
 #if IS_ENABLED(CONFIG_MMC_SPI)
 	{
 		.modalias = "mmc_spi",
@@ -714,9 +670,6 @@ static struct platform_device *stamp_devices[] __initdata = {
 #if IS_ENABLED(CONFIG_BFIN_MAC)
 	&bfin_mii_bus,
 	&bfin_mac_device,
-#if IS_ENABLED(CONFIG_NET_DSA_KSZ8893M)
-	&ksz8893m_switch_device,
-#endif
 #endif
 
 #if IS_ENABLED(CONFIG_SPI_BFIN5XX)
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH 0/2] blackfin: Remove dead DSA code
  2017-01-01 22:42 [PATCH 0/2] blackfin: Remove dead DSA code Florian Fainelli
  2017-01-01 22:42 ` [PATCH 1/2] blackfin: tcm-bf518: Remove dsa.h inclusion Florian Fainelli
  2017-01-01 22:42 ` [PATCH 2/2] blackfin: ezbrd: Remove non-functional DSA/KSZ8893M code Florian Fainelli
@ 2017-01-29  3:15 ` Florian Fainelli
  2017-05-28 23:59 ` Florian Fainelli
  3 siblings, 0 replies; 8+ messages in thread
From: Florian Fainelli @ 2017-01-29  3:15 UTC (permalink / raw)
  To: linux-kernel; +Cc: andrew, vivien.didelot, adi-buildroot-devel, realmz6

On 01/01/2017 02:42 PM, Florian Fainelli wrote:
> Hi all,
> 
> This patch series removes dead DSA code in the blackfin board specific
> code. There is no in tree driver for the KSZ8893M, and clearly this
> would not compile anymore.
> 
> Preparatory patch to help remove the legacy DSA platform device code from
> the tree.

Ping, is anyone maintaining blackfin these days?

> 
> Florian Fainelli (2):
>   blackfin: tcm-bf518: Remove dsa.h inclusion
>   blackfin: ezbrd: Remove non-functional DSA/KSZ8893M code
> 
>  arch/blackfin/mach-bf518/boards/ezbrd.c     | 47 -----------------------------
>  arch/blackfin/mach-bf518/boards/tcm-bf518.c |  1 -
>  2 files changed, 48 deletions(-)
> 

-- 
Florian

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 0/2] blackfin: Remove dead DSA code
  2017-01-01 22:42 [PATCH 0/2] blackfin: Remove dead DSA code Florian Fainelli
                   ` (2 preceding siblings ...)
  2017-01-29  3:15 ` [PATCH 0/2] blackfin: Remove dead DSA code Florian Fainelli
@ 2017-05-28 23:59 ` Florian Fainelli
  2017-05-30  0:45   ` Adam Borowski
  3 siblings, 1 reply; 8+ messages in thread
From: Florian Fainelli @ 2017-05-28 23:59 UTC (permalink / raw)
  To: linux-kernel; +Cc: andrew, vivien.didelot, adi-buildroot-devel, realmz6



On 01/01/2017 02:42 PM, Florian Fainelli wrote:
> Hi all,
> 
> This patch series removes dead DSA code in the blackfin board specific
> code. There is no in tree driver for the KSZ8893M, and clearly this
> would not compile anymore.
> 
> Preparatory patch to help remove the legacy DSA platform device code from
> the tree.

Hello? anyone still maintaining blackfin here?

> 
> Florian Fainelli (2):
>   blackfin: tcm-bf518: Remove dsa.h inclusion
>   blackfin: ezbrd: Remove non-functional DSA/KSZ8893M code
> 
>  arch/blackfin/mach-bf518/boards/ezbrd.c     | 47 -----------------------------
>  arch/blackfin/mach-bf518/boards/tcm-bf518.c |  1 -
>  2 files changed, 48 deletions(-)
> 

-- 
Florian

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 0/2] blackfin: Remove dead DSA code
  2017-05-28 23:59 ` Florian Fainelli
@ 2017-05-30  0:45   ` Adam Borowski
  2017-07-16 15:59     ` Florian Fainelli
  0 siblings, 1 reply; 8+ messages in thread
From: Adam Borowski @ 2017-05-30  0:45 UTC (permalink / raw)
  To: Florian Fainelli
  Cc: linux-kernel, andrew, vivien.didelot, adi-buildroot-devel, realmz6

On Sun, May 28, 2017 at 04:59:47PM -0700, Florian Fainelli wrote:
> Hello? anyone still maintaining blackfin here?

Looks like people edit arch/blackfin/ a lot whenever it interferes with some
other work, but the only blackfin-specific fixes seem to be a couple of
drive-by ones by Al Viro, then nothing until first half of 2015.

Last maintainer pull request: 668b54a1 on 2015-04-24.

There was some mailing list traffic in Jan 2016:
https://sourceforge.net/p/adi-buildroot/mailman/adi-buildroot-devel/

So it looks pretty dead...

-- 
Don't be racist.  White, amber or black, all beers should be judged based
solely on their merits.  Heck, even if occasionally a cider applies for a
beer's job, why not?
On the other hand, corpo lager is not a race.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 0/2] blackfin: Remove dead DSA code
  2017-05-30  0:45   ` Adam Borowski
@ 2017-07-16 15:59     ` Florian Fainelli
  2017-07-16 16:00       ` Florian Fainelli
  0 siblings, 1 reply; 8+ messages in thread
From: Florian Fainelli @ 2017-07-16 15:59 UTC (permalink / raw)
  To: Adam Borowski, akpm
  Cc: linux-kernel, andrew, vivien.didelot, adi-buildroot-devel, realmz6



On 05/29/2017 05:45 PM, Adam Borowski wrote:
> On Sun, May 28, 2017 at 04:59:47PM -0700, Florian Fainelli wrote:
>> Hello? anyone still maintaining blackfin here?
> 
> Looks like people edit arch/blackfin/ a lot whenever it interferes with some
> other work, but the only blackfin-specific fixes seem to be a couple of
> drive-by ones by Al Viro, then nothing until first half of 2015.
> 
> Last maintainer pull request: 668b54a1 on 2015-04-24.
> 
> There was some mailing list traffic in Jan 2016:
> https://sourceforge.net/p/adi-buildroot/mailman/adi-buildroot-devel/
> 
> So it looks pretty dead...

Yes indeed, Andrew, would you or someone else be willing to take these
two patches, or should we just remove blackfin entirely from the source
tree (there might still be active users).

Thanks!
-- 
Florian

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 0/2] blackfin: Remove dead DSA code
  2017-07-16 15:59     ` Florian Fainelli
@ 2017-07-16 16:00       ` Florian Fainelli
  0 siblings, 0 replies; 8+ messages in thread
From: Florian Fainelli @ 2017-07-16 16:00 UTC (permalink / raw)
  To: Adam Borowski, akpm
  Cc: linux-kernel, andrew, vivien.didelot, adi-buildroot-devel, realmz6



On 07/16/2017 08:59 AM, Florian Fainelli wrote:
> 
> 
> On 05/29/2017 05:45 PM, Adam Borowski wrote:
>> On Sun, May 28, 2017 at 04:59:47PM -0700, Florian Fainelli wrote:
>>> Hello? anyone still maintaining blackfin here?
>>
>> Looks like people edit arch/blackfin/ a lot whenever it interferes with some
>> other work, but the only blackfin-specific fixes seem to be a couple of
>> drive-by ones by Al Viro, then nothing until first half of 2015.
>>
>> Last maintainer pull request: 668b54a1 on 2015-04-24.
>>
>> There was some mailing list traffic in Jan 2016:
>> https://sourceforge.net/p/adi-buildroot/mailman/adi-buildroot-devel/
>>
>> So it looks pretty dead...
> 
> Yes indeed, Andrew, would you or someone else be willing to take these
> two patches, or should we just remove blackfin entirely from the source
> tree (there might still be active users).

With akpm's corrected email this time.
-- 
Florian

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-07-16 16:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-01 22:42 [PATCH 0/2] blackfin: Remove dead DSA code Florian Fainelli
2017-01-01 22:42 ` [PATCH 1/2] blackfin: tcm-bf518: Remove dsa.h inclusion Florian Fainelli
2017-01-01 22:42 ` [PATCH 2/2] blackfin: ezbrd: Remove non-functional DSA/KSZ8893M code Florian Fainelli
2017-01-29  3:15 ` [PATCH 0/2] blackfin: Remove dead DSA code Florian Fainelli
2017-05-28 23:59 ` Florian Fainelli
2017-05-30  0:45   ` Adam Borowski
2017-07-16 15:59     ` Florian Fainelli
2017-07-16 16:00       ` Florian Fainelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).