From: Jakub Kicinski <kuba@kernel.org>
To: Helge Deller <deller@gmx.de>
Cc: davem@davemloft.net, netdev@vger.kernel.org,
linux-parisc@vger.kernel.org,
"linux-alpha@vger.kernel.org" <linux-alpha@vger.kernel.org>
Subject: Re: [PATCH net-next] net: mark tulip obsolete
Date: Tue, 26 Apr 2022 14:31:34 -0700 [thread overview]
Message-ID: <20220426143134.1b8de3d4@kernel.org> (raw)
In-Reply-To: <87650cea-d190-9642-edf7-7dea42802dab@gmx.de>
On Tue, 26 Apr 2022 22:53:00 +0200 Helge Deller wrote:
> >> That intention is ok, but "obsolete" means it's not used any more,
> >> and that's not true.
> >
> > Hi Helge! Which incarnation of tulip do you need for PA-RISC, exactly?
>
> For parisc I have:
>
> CONFIG_NET_TULIP=y
> # CONFIG_DE2104X is not set
> CONFIG_TULIP=y
> # CONFIG_TULIP_MWI is not set
> # CONFIG_TULIP_MMIO is not set
> # CONFIG_TULIP_NAPI is not set
> # CONFIG_DE4X5 is not set
> # CONFIG_WINBOND_840 is not set
> # CONFIG_DM9102 is not set
> # CONFIG_ULI526X is not set
> # CONFIG_PCMCIA_XIRCOM is not set
> # CONFIG_NET_VENDOR_DLINK is not set
> # CONFIG_NET_VENDOR_EMULEX is not set
>
> So not the DE4X5.
>
> > I'd like to try to remove DE4X5, if that's not the one you need
> > (getting rid of virt_to_bus()-using drivers).
>
> I've CC'ed the linux-alpha mailing list, as the DE4X5 driver might be
> needed there, so removing it completely might not be the best idea.
>
> But since you want to remove virt_to_bus()....
> It seems this virt_to_bus() call is used for really old x86 machines/cards,
> which probably aren't supported any longer.
>
> See drivers/net/ethernet/dec/tulip/de4x5.c:
> ...
> #if !defined(__alpha__) && !defined(__powerpc__) && !defined(CONFIG_SPARC) && !defined(DE4X5_DO_MEMCPY)
> ...
> tmp = virt_to_bus(p->data);
> ...
>
> Maybe you could simply remove the part inside #if...#else
> and insert a pr_err() instead (and return NULL)?
Ah, good find, thanks for taking a look! I'll look into dropping just
sections of the code.
prev parent reply other threads:[~2022-04-26 21:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-15 18:43 [PATCH net-next] net: mark tulip obsolete Jakub Kicinski
2022-03-15 18:44 ` Helge Deller
2022-03-15 19:04 ` Jakub Kicinski
2022-03-15 22:18 ` Helge Deller
2022-04-26 12:53 ` Jakub Kicinski
2022-04-26 20:53 ` Helge Deller
2022-04-26 21:31 ` Jakub Kicinski [this message]
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=20220426143134.1b8de3d4@kernel.org \
--to=kuba@kernel.org \
--cc=davem@davemloft.net \
--cc=deller@gmx.de \
--cc=linux-alpha@vger.kernel.org \
--cc=linux-parisc@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/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.