All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jaccon Bastiaansen <jaccon.bastiaansen@gmail.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: Rob Herring <robherring2@gmail.com>,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	Russell King <linux@arm.linux.org.uk>,
	Nicolas Pitre <nico@fluxnic.net>, Olof Johansson <olof@lixom.net>,
	Rob Herring <rob.herring@calxeda.com>,
	Randy Dunlap <rdunlap@xenotime.net>,
	Sascha Hauer <s.hauer@pengutronix.de>,
	Russell Nelson <nelson@crynwr.com>
Subject: Re: [PATCH 1/5] ARM: remove ixp23xx and ixp2000 platforms
Date: Wed, 11 Apr 2012 00:13:00 +0200	[thread overview]
Message-ID: <CAGzjT4ehXa5vY8+7SP-k7kMCvEDZaGGd6NzFMkSVpgp0tDkm+Q@mail.gmail.com> (raw)
In-Reply-To: <201204041235.32648.arnd@arndb.de>

Hello Arnd,

Op 4 april 2012 14:35 heeft Arnd Bergmann <arnd@arndb.de> het volgende
geschreven:
> On Wednesday 04 April 2012, Rob Herring wrote:
>> From: Rob Herring <rob.herring@calxeda.com>
>>
>> ixp2xxx platforms have had no real changes since ~2006 and the maintainer
>> has said on irc that they can be removed:
>>
>> 13:05 < nico> do you still care about ixp2000?
>> 13:22 < lennert> not really, no
>> 13:58 < nico> do you think we could remove it from the kernel tree?
>> 14:01 < lennert> go for it, and remove ixp23xx too while you're at it
>>
>> Removing will help simplify ARM consolidation in general and PCI re-work
>> specifically.
>
> This will let us kill another bit of ugly code:
> 8<-----
> [PATCH] net: cs89x0: remove ixp2xxx specific hacks
>
> The IXDP2351 and IXDP2X01 machines are getting removed from the kernel, so there
> is no longer a need to special-case them in the cs89x0 driver.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
>  drivers/net/ethernet/cirrus/cs89x0.c |   36 ----------------------------------
>  1 files changed, 0 insertions(+), 36 deletions(-)
>
> diff --git a/drivers/net/ethernet/cirrus/cs89x0.c b/drivers/net/ethernet/cirrus/cs89x0.c
> index b9406cb..6b92080 100644
> --- a/drivers/net/ethernet/cirrus/cs89x0.c
> +++ b/drivers/net/ethernet/cirrus/cs89x0.c
> @@ -173,21 +173,11 @@ static char version[] __initdata =
>  /* The cs8900 has 4 IRQ pins, software selectable. cs8900_irq_map maps
>    them to system IRQ numbers. This mapping is card specific and is set to
>    the configuration of the Cirrus Eval board for this chip. */
> -#if defined(CONFIG_MACH_IXDP2351)
> -#define CS89x0_NONISA_IRQ
> -static unsigned int netcard_portlist[] __used __initdata = {IXDP2351_VIRT_CS8900_BASE, 0};
> -static unsigned int cs8900_irq_map[] = {IRQ_IXDP2351_CS8900, 0, 0, 0};
> -#elif defined(CONFIG_ARCH_IXDP2X01)
> -#define CS89x0_NONISA_IRQ
> -static unsigned int netcard_portlist[] __used __initdata = {IXDP2X01_CS8900_VIRT_BASE, 0};
> -static unsigned int cs8900_irq_map[] = {IRQ_IXDP2X01_CS8900, 0, 0, 0};
> -#else
>  #ifndef CONFIG_CS89x0_PLATFORM
>  static unsigned int netcard_portlist[] __used __initdata =
>    { 0x300, 0x320, 0x340, 0x360, 0x200, 0x220, 0x240, 0x260, 0x280, 0x2a0, 0x2c0, 0x2e0, 0};
>  static unsigned int cs8900_irq_map[] = {10,11,12,5};
>  #endif
> -#endif
>
>  #if DEBUGGING
>  static unsigned int net_debug = DEBUGGING;
> @@ -345,31 +335,6 @@ out:
>  #endif
>  #endif
>
> -#if defined(CONFIG_MACH_IXDP2351)
> -static u16
> -readword(unsigned long base_addr, int portno)
> -{
> -       return __raw_readw(base_addr + (portno << 1));
> -}
> -
> -static void
> -writeword(unsigned long base_addr, int portno, u16 value)
> -{
> -       __raw_writew(value, base_addr + (portno << 1));
> -}
> -#elif defined(CONFIG_ARCH_IXDP2X01)
> -static u16
> -readword(unsigned long base_addr, int portno)
> -{
> -       return __raw_readl(base_addr + (portno << 1));
> -}
> -
> -static void
> -writeword(unsigned long base_addr, int portno, u16 value)
> -{
> -       __raw_writel(value, base_addr + (portno << 1));
> -}
> -#else
>  static u16
>  readword(unsigned long base_addr, int portno)
>  {
> @@ -381,7 +346,6 @@ writeword(unsigned long base_addr, int portno, u16 value)
>  {
>        outw(value, base_addr + portno);
>  }
> -#endif
>
>  static void
>  readwords(unsigned long base_addr, int portno, void *buf, int length)

You can now also remove all the uses of CS89x0_NONISA_IRQ, since those
are only used for the IXDP specific parts of the CS89x0 driver.

Regards
  Jaccon

WARNING: multiple messages have this Message-ID (diff)
From: jaccon.bastiaansen@gmail.com (Jaccon Bastiaansen)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/5] ARM: remove ixp23xx and ixp2000 platforms
Date: Wed, 11 Apr 2012 00:13:00 +0200	[thread overview]
Message-ID: <CAGzjT4ehXa5vY8+7SP-k7kMCvEDZaGGd6NzFMkSVpgp0tDkm+Q@mail.gmail.com> (raw)
In-Reply-To: <201204041235.32648.arnd@arndb.de>

Hello Arnd,

Op 4 april 2012 14:35 heeft Arnd Bergmann <arnd@arndb.de> het volgende
geschreven:
> On Wednesday 04 April 2012, Rob Herring wrote:
>> From: Rob Herring <rob.herring@calxeda.com>
>>
>> ixp2xxx platforms have had no real changes since ~2006 and the maintainer
>> has said on irc that they can be removed:
>>
>> 13:05 < nico> do you still care about ixp2000?
>> 13:22 < lennert> not really, no
>> 13:58 < nico> do you think we could remove it from the kernel tree?
>> 14:01 < lennert> go for it, and remove ixp23xx too while you're at it
>>
>> Removing will help simplify ARM consolidation in general and PCI re-work
>> specifically.
>
> This will let us kill another bit of ugly code:
> 8<-----
> [PATCH] net: cs89x0: remove ixp2xxx specific hacks
>
> The IXDP2351 and IXDP2X01 machines are getting removed from the kernel, so there
> is no longer a need to special-case them in the cs89x0 driver.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> ?drivers/net/ethernet/cirrus/cs89x0.c | ? 36 ----------------------------------
> ?1 files changed, 0 insertions(+), 36 deletions(-)
>
> diff --git a/drivers/net/ethernet/cirrus/cs89x0.c b/drivers/net/ethernet/cirrus/cs89x0.c
> index b9406cb..6b92080 100644
> --- a/drivers/net/ethernet/cirrus/cs89x0.c
> +++ b/drivers/net/ethernet/cirrus/cs89x0.c
> @@ -173,21 +173,11 @@ static char version[] __initdata =
> ?/* The cs8900 has 4 IRQ pins, software selectable. cs8900_irq_map maps
> ? ?them to system IRQ numbers. This mapping is card specific and is set to
> ? ?the configuration of the Cirrus Eval board for this chip. */
> -#if defined(CONFIG_MACH_IXDP2351)
> -#define CS89x0_NONISA_IRQ
> -static unsigned int netcard_portlist[] __used __initdata = {IXDP2351_VIRT_CS8900_BASE, 0};
> -static unsigned int cs8900_irq_map[] = {IRQ_IXDP2351_CS8900, 0, 0, 0};
> -#elif defined(CONFIG_ARCH_IXDP2X01)
> -#define CS89x0_NONISA_IRQ
> -static unsigned int netcard_portlist[] __used __initdata = {IXDP2X01_CS8900_VIRT_BASE, 0};
> -static unsigned int cs8900_irq_map[] = {IRQ_IXDP2X01_CS8900, 0, 0, 0};
> -#else
> ?#ifndef CONFIG_CS89x0_PLATFORM
> ?static unsigned int netcard_portlist[] __used __initdata =
> ? ?{ 0x300, 0x320, 0x340, 0x360, 0x200, 0x220, 0x240, 0x260, 0x280, 0x2a0, 0x2c0, 0x2e0, 0};
> ?static unsigned int cs8900_irq_map[] = {10,11,12,5};
> ?#endif
> -#endif
>
> ?#if DEBUGGING
> ?static unsigned int net_debug = DEBUGGING;
> @@ -345,31 +335,6 @@ out:
> ?#endif
> ?#endif
>
> -#if defined(CONFIG_MACH_IXDP2351)
> -static u16
> -readword(unsigned long base_addr, int portno)
> -{
> - ? ? ? return __raw_readw(base_addr + (portno << 1));
> -}
> -
> -static void
> -writeword(unsigned long base_addr, int portno, u16 value)
> -{
> - ? ? ? __raw_writew(value, base_addr + (portno << 1));
> -}
> -#elif defined(CONFIG_ARCH_IXDP2X01)
> -static u16
> -readword(unsigned long base_addr, int portno)
> -{
> - ? ? ? return __raw_readl(base_addr + (portno << 1));
> -}
> -
> -static void
> -writeword(unsigned long base_addr, int portno, u16 value)
> -{
> - ? ? ? __raw_writel(value, base_addr + (portno << 1));
> -}
> -#else
> ?static u16
> ?readword(unsigned long base_addr, int portno)
> ?{
> @@ -381,7 +346,6 @@ writeword(unsigned long base_addr, int portno, u16 value)
> ?{
> ? ? ? ?outw(value, base_addr + portno);
> ?}
> -#endif
>
> ?static void
> ?readwords(unsigned long base_addr, int portno, void *buf, int length)

You can now also remove all the uses of CS89x0_NONISA_IRQ, since those
are only used for the IXDP specific parts of the CS89x0 driver.

Regards
  Jaccon

  reply	other threads:[~2012-04-10 22:13 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-04  1:33 [PATCH 1/5] ARM: remove ixp23xx and ixp2000 platforms Rob Herring
2012-04-04  1:33 ` Rob Herring
2012-04-04  1:34 ` [PATCH 2/5] net: remove ixp2000 ethernet driver Rob Herring
2012-04-04  1:34   ` Rob Herring
2012-04-04  1:34   ` Rob Herring
2012-04-04 10:20   ` Jeff Kirsher
2012-04-04 10:20     ` Jeff Kirsher
2012-04-04 12:25     ` Lennert Buytenhek
2012-04-04 12:25       ` Lennert Buytenhek
2012-04-04 22:09       ` David Miller
2012-04-04 22:09         ` David Miller
2012-04-04  1:34 ` [PATCH 3/5] i2c: remove ixp2000 driver Rob Herring
2012-04-04  1:34   ` Rob Herring
2012-04-04  1:34   ` Rob Herring
2012-04-22 16:31   ` Wolfram Sang
2012-04-22 16:31     ` Wolfram Sang
2012-04-22 16:31     ` Wolfram Sang
2012-04-04  1:34 ` [PATCH 4/5] mtd: remove ixp2000 map device Rob Herring
2012-04-04  1:34   ` Rob Herring
2012-04-04  1:34   ` Rob Herring
2012-04-04  1:34 ` [PATCH 5/5] watchdog: remove ixp2000 driver Rob Herring
2012-04-04  1:34   ` Rob Herring
2012-05-02 16:15   ` Wim Van Sebroeck
2012-04-04 12:18 ` [PATCH 1/5] ARM: remove ixp23xx and ixp2000 platforms Rob Herring
2012-04-04 12:18   ` Rob Herring
2012-04-04 12:24   ` Lennert Buytenhek
2012-04-04 12:24     ` Lennert Buytenhek
2012-04-04 12:35 ` Arnd Bergmann
2012-04-04 12:35   ` Arnd Bergmann
2012-04-10 22:13   ` Jaccon Bastiaansen [this message]
2012-04-10 22:13     ` Jaccon Bastiaansen

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=CAGzjT4ehXa5vY8+7SP-k7kMCvEDZaGGd6NzFMkSVpgp0tDkm+Q@mail.gmail.com \
    --to=jaccon.bastiaansen@gmail.com \
    --cc=arnd@arndb.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=nelson@crynwr.com \
    --cc=nico@fluxnic.net \
    --cc=olof@lixom.net \
    --cc=rdunlap@xenotime.net \
    --cc=rob.herring@calxeda.com \
    --cc=robherring2@gmail.com \
    --cc=s.hauer@pengutronix.de \
    /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.