From: Paul Gortmaker <paul.gortmaker@windriver.com>
To: Michael Schmitz <schmitzmic@gmail.com>, linux-m68k@vger.kernel.org
Cc: geert@linux-m68k.org, debian-68k@lists.debian.org,
davem@davemloft.net, netdev@vger.kernel.org,
Michael Schmitz <schmitz@debian.org>
Subject: Re: [PATCH] m68k/atari: EtherNEC - ethernet support (ne),>
Date: Tue, 12 Aug 2014 10:55:46 -0400 [thread overview]
Message-ID: <53EA2AF2.3040709@windriver.com> (raw)
In-Reply-To: <1407636153-24864-1-git-send-email-schmitzmic@gmail.com>
[Subject added from patch]
On 14-08-09 10:02 PM, Michael Schmitz wrote:
> new version of the patch adding Atari EtherNEC (IRQ-less ROM port ISA NE2k
> adapter) support to ne.c, as announced before.
>
> Thanks,
>
> Michael Schmitz
Please don't send subjectless mails by attaching a commit to a mail,
just use git send-email directly.
>
> From 224ce049f71577d6ec380aeb94a4d25c3c4016a7 Mon Sep 17 00:00:00 2001
> From: Michael Schmitz <schmitzmic@gmail.com>
> Date: Sat, 6 Apr 2013 13:26:42 +1300
> Subject: [PATCH] m68k/atari: EtherNEC - ethernet support (ne)
>
> Support for Atari EtherNEC ROM port adapters in ne.c
Is that all there is to say about these? Nothing about which platforms
might have it, or what it was tested on or ... ?
>
> Signed-off-by: Michael Schmitz <schmitz@debian.org>
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
> ---
> drivers/net/ethernet/8390/Kconfig | 3 ++-
> drivers/net/ethernet/8390/ne.c | 2 ++
> 2 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/net/ethernet/8390/Kconfig b/drivers/net/ethernet/8390/Kconfig
> index 0988811..2d89bd0 100644
> --- a/drivers/net/ethernet/8390/Kconfig
> +++ b/drivers/net/ethernet/8390/Kconfig
> @@ -91,7 +91,8 @@ config MCF8390
>
> config NE2000
> tristate "NE2000/NE1000 support"
> - depends on (ISA || (Q40 && m) || M32R || MACH_TX49XX)
> + depends on (ISA || (Q40 && m) || M32R || MACH_TX49XX || \
> + ATARI_ETHERNEC)
> select CRC32
> ---help---
> If you have a network (Ethernet) card of this type, say Y and read
> diff --git a/drivers/net/ethernet/8390/ne.c b/drivers/net/ethernet/8390/ne.c
> index 58eaa8f..de566fb 100644
> --- a/drivers/net/ethernet/8390/ne.c
> +++ b/drivers/net/ethernet/8390/ne.c
> @@ -169,6 +169,8 @@ bad_clone_list[] __initdata = {
> #elif defined(CONFIG_PLAT_OAKS32R) || \
> defined(CONFIG_MACH_TX49XX)
> # define DCR_VAL 0x48 /* 8-bit mode */
> +#elif defined(CONFIG_ATARI) /* 8-bit mode on Atari, normal on Q40 */
> +# define DCR_VAL (MACH_IS_ATARI ? 0x48 : 0x49)
This doesn't make sense. Is not MACH_IS_ATARI set when CONFIG_ATARI
is set? And even if it isn't then just set 48 for MACH_IS_ATARI and
let the default of 49 below take the ATARI=y and IS_ATARI=n case,
without the need for the ?: operator at all. On top of that, why
aren't you using the ATARI_ETHERNEC option here for your 48 trigger,
instead of the much higher arch/mach level triggers at all?
P.
--
> #else
> # define DCR_VAL 0x49
> #endif
>
next prev parent reply other threads:[~2014-08-12 14:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-10 2:02 (unknown), Michael Schmitz
2014-08-12 14:55 ` Paul Gortmaker [this message]
2014-08-12 15:16 ` [PATCH] m68k/atari: EtherNEC - ethernet support (ne),> Geert Uytterhoeven
2014-08-12 21:40 ` Michael Schmitz
2014-08-13 7:15 ` Geert Uytterhoeven
2014-08-13 8:37 ` Michael Schmitz
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=53EA2AF2.3040709@windriver.com \
--to=paul.gortmaker@windriver.com \
--cc=davem@davemloft.net \
--cc=debian-68k@lists.debian.org \
--cc=geert@linux-m68k.org \
--cc=linux-m68k@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=schmitz@debian.org \
--cc=schmitzmic@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox