* [PATCH] tulip: de2104x, fix init. sections
@ 2005-03-02 5:44 Randy.Dunlap
2005-03-02 6:09 ` Jeff Garzik
0 siblings, 1 reply; 10+ messages in thread
From: Randy.Dunlap @ 2005-03-02 5:44 UTC (permalink / raw)
To: netdev, jgarzik; +Cc: torvalds, akpm
tulip/de2104x: some __devinit functions were calling __init
functions, made the latter __devinit also;
Error: ./drivers/net/tulip/de2104x.o .text refers to 000000000000176d R_X86_64_PC32 .init.text+0xfffffffffffffffc
Error: ./drivers/net/tulip/de2104x.o .text refers to 0000000000001798 R_X86_64_PC32 .init.text+0xfffffffffffffffc
Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
diffstat:=
drivers/net/tulip/de2104x.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff -Naurp ./drivers/net/tulip/de2104x.c~de2104x_sections ./drivers/net/tulip/de2104x.c
--- ./drivers/net/tulip/de2104x.c~de2104x_sections 2005-02-27 12:54:05.830037144 -0800
+++ ./drivers/net/tulip/de2104x.c 2005-03-01 21:41:19.354417488 -0800
@@ -1691,7 +1691,7 @@ static struct ethtool_ops de_ethtool_ops
.get_regs = de_get_regs,
};
-static void __init de21040_get_mac_address (struct de_private *de)
+static void __devinit de21040_get_mac_address (struct de_private *de)
{
unsigned i;
@@ -1709,7 +1709,7 @@ static void __init de21040_get_mac_addre
}
}
-static void __init de21040_get_media_info(struct de_private *de)
+static void __devinit de21040_get_media_info(struct de_private *de)
{
unsigned int i;
@@ -1736,7 +1736,7 @@ static void __init de21040_get_media_inf
}
/* Note: this routine returns extra data bits for size detection. */
-static unsigned __init tulip_read_eeprom(void __iomem *regs, int location, int addr_len)
+static unsigned __devinit tulip_read_eeprom(void __iomem *regs, int location, int addr_len)
{
int i;
unsigned retval = 0;
@@ -1771,7 +1771,7 @@ static unsigned __init tulip_read_eeprom
return retval;
}
-static void __init de21041_get_srom_info (struct de_private *de)
+static void __devinit de21041_get_srom_info (struct de_private *de)
{
unsigned i, sa_offset = 0, ofs;
u8 ee_data[DE_EEPROM_SIZE + 6] = {};
---
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] tulip: de2104x, fix init. sections
2005-03-02 5:44 [PATCH] tulip: de2104x, fix init. sections Randy.Dunlap
@ 2005-03-02 6:09 ` Jeff Garzik
2005-03-02 7:02 ` Linus Torvalds
2005-03-02 7:25 ` Christoph Hellwig
0 siblings, 2 replies; 10+ messages in thread
From: Jeff Garzik @ 2005-03-02 6:09 UTC (permalink / raw)
To: Randy.Dunlap; +Cc: netdev, torvalds, akpm
Randy.Dunlap wrote:
> tulip/de2104x: some __devinit functions were calling __init
> functions, made the latter __devinit also;
Should go the other way: all the stuff in de2104x should be __init, not
__devinit.
Nobody ever hotplugs a de2104x.
Jeff
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] tulip: de2104x, fix init. sections
2005-03-02 6:09 ` Jeff Garzik
@ 2005-03-02 7:02 ` Linus Torvalds
2005-03-02 7:03 ` Jeff Garzik
2005-03-02 7:25 ` Christoph Hellwig
1 sibling, 1 reply; 10+ messages in thread
From: Linus Torvalds @ 2005-03-02 7:02 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Randy.Dunlap, netdev, akpm
On Wed, 2 Mar 2005, Jeff Garzik wrote:
>
> Nobody ever hotplugs a de2104x.
Are you sure? I'm pretty certain some of the Cardbus cards are based on
that chipset. In fact, I'm pretty sure that's exactly that I used to have
(and actually used when I did the "CardBus as a real PCI bridge" stuff).
CardBus tulip network cards may be less interesting these days, but I'd be
surprised if they are all gone. The tulip chip used to be the most common
one.
(And don't be fooled by the Xircom config stuff - those have a special
driver partly because Xircom did something wrong, and probably partly
because the old PCMCIA layer just was too damn confused, and thought that
CardBus devices needed something else than a PCI driver. Most tulip
cardbus cards used just the bog-standard tulip driver after my Cardbus
rewrite, I do believe).
Linus
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] tulip: de2104x, fix init. sections
2005-03-02 7:02 ` Linus Torvalds
@ 2005-03-02 7:03 ` Jeff Garzik
2005-03-02 7:14 ` Linus Torvalds
0 siblings, 1 reply; 10+ messages in thread
From: Jeff Garzik @ 2005-03-02 7:03 UTC (permalink / raw)
To: Linus Torvalds; +Cc: Randy.Dunlap, netdev, akpm
On Tue, Mar 01, 2005 at 11:02:16PM -0800, Linus Torvalds wrote:
>
>
> On Wed, 2 Mar 2005, Jeff Garzik wrote:
> >
> > Nobody ever hotplugs a de2104x.
>
> Are you sure? I'm pretty certain some of the Cardbus cards are based on
> that chipset. In fact, I'm pretty sure that's exactly that I used to have
> (and actually used when I did the "CardBus as a real PCI bridge" stuff).
Nope -- You are thinking of the 2114x stuff. You even bought me a
cardbus card of my own to get things going on that, way back when. :)
2104x is truly ancient.
Jeff
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] tulip: de2104x, fix init. sections
2005-03-02 7:03 ` Jeff Garzik
@ 2005-03-02 7:14 ` Linus Torvalds
0 siblings, 0 replies; 10+ messages in thread
From: Linus Torvalds @ 2005-03-02 7:14 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Randy.Dunlap, netdev, akpm
On Wed, 2 Mar 2005, Jeff Garzik wrote:
>
> Nope -- You are thinking of the 2114x stuff. You even bought me a
> cardbus card of my own to get things going on that, way back when. :)
>
> 2104x is truly ancient.
Ahh, ok. Goodie.
Linus
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] tulip: de2104x, fix init. sections
2005-03-02 6:09 ` Jeff Garzik
2005-03-02 7:02 ` Linus Torvalds
@ 2005-03-02 7:25 ` Christoph Hellwig
2005-03-02 7:30 ` Jeff Garzik
1 sibling, 1 reply; 10+ messages in thread
From: Christoph Hellwig @ 2005-03-02 7:25 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Randy.Dunlap, netdev, torvalds, akpm
On Wed, Mar 02, 2005 at 01:09:54AM -0500, Jeff Garzik wrote:
> Randy.Dunlap wrote:
> >tulip/de2104x: some __devinit functions were calling __init
> > functions, made the latter __devinit also;
>
> Should go the other way: all the stuff in de2104x should be __init, not
> __devinit.
>
> Nobody ever hotplugs a de2104x.
How comes that you want to dictate what cards I put into my hotplug
PCI slots?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] tulip: de2104x, fix init. sections
2005-03-02 7:25 ` Christoph Hellwig
@ 2005-03-02 7:30 ` Jeff Garzik
2005-03-02 7:32 ` Christoph Hellwig
0 siblings, 1 reply; 10+ messages in thread
From: Jeff Garzik @ 2005-03-02 7:30 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: Randy.Dunlap, netdev, torvalds, akpm
Christoph Hellwig wrote:
> On Wed, Mar 02, 2005 at 01:09:54AM -0500, Jeff Garzik wrote:
>
>>Randy.Dunlap wrote:
>>
>>>tulip/de2104x: some __devinit functions were calling __init
>>> functions, made the latter __devinit also;
>>
>>Should go the other way: all the stuff in de2104x should be __init, not
>>__devinit.
>>
>>Nobody ever hotplugs a de2104x.
>
>
> How comes that you want to dictate what cards I put into my hotplug
> PCI slots?
When someone proves this is possible, I will accept the code change. I
doubt this will ever happen, for two reasons:
1) Hotplug PCI slots are highly likely to choke on the 2104x's very
early and slightly weird PCI hardware implementation.
2) It's an ancient card and nobody will ever bother trying to hotplug it.
Jeff
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] tulip: de2104x, fix init. sections
2005-03-02 7:30 ` Jeff Garzik
@ 2005-03-02 7:32 ` Christoph Hellwig
2005-03-02 7:37 ` Jeff Garzik
2005-03-02 7:41 ` Jeff Garzik
0 siblings, 2 replies; 10+ messages in thread
From: Christoph Hellwig @ 2005-03-02 7:32 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Christoph Hellwig, Randy.Dunlap, netdev, torvalds, akpm
On Wed, Mar 02, 2005 at 02:30:17AM -0500, Jeff Garzik wrote:
> When someone proves this is possible, I will accept the code change. I
> doubt this will ever happen, for two reasons:
>
> 1) Hotplug PCI slots are highly likely to choke on the 2104x's very
> early and slightly weird PCI hardware implementation.
>
> 2) It's an ancient card and nobody will ever bother trying to hotplug it.
No, it's a matter of correctness. The pci core can call ->probe all the
time and every driver must be prepared. Even if no one tries it physically
it's easily done with Greg's fake hotplug driver.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] tulip: de2104x, fix init. sections
2005-03-02 7:32 ` Christoph Hellwig
@ 2005-03-02 7:37 ` Jeff Garzik
2005-03-02 7:41 ` Jeff Garzik
1 sibling, 0 replies; 10+ messages in thread
From: Jeff Garzik @ 2005-03-02 7:37 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: Randy.Dunlap, netdev, torvalds, akpm
Christoph Hellwig wrote:
> On Wed, Mar 02, 2005 at 02:30:17AM -0500, Jeff Garzik wrote:
>
>>When someone proves this is possible, I will accept the code change. I
>>doubt this will ever happen, for two reasons:
>>
>>1) Hotplug PCI slots are highly likely to choke on the 2104x's very
>>early and slightly weird PCI hardware implementation.
>>
>>2) It's an ancient card and nobody will ever bother trying to hotplug it.
>
>
> No, it's a matter of correctness. The pci core can call ->probe all the
> time and every driver must be prepared. Even if no one tries it physically
> it's easily done with Greg's fake hotplug driver.
The change can be made when it's actually useful to someone. Making
janitors and Christoph happy is not a good enough reason in my book.
Jeff
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] tulip: de2104x, fix init. sections
2005-03-02 7:32 ` Christoph Hellwig
2005-03-02 7:37 ` Jeff Garzik
@ 2005-03-02 7:41 ` Jeff Garzik
1 sibling, 0 replies; 10+ messages in thread
From: Jeff Garzik @ 2005-03-02 7:41 UTC (permalink / raw)
To: netdev; +Cc: Christoph Hellwig, Randy.Dunlap, torvalds, akpm
For what it's worth, I'm not just being obstinate :) I build this
driver in hotplug kernels, and I know it will never be hotplugged. In
other words, I like it like that.
Jeff
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2005-03-02 7:41 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-02 5:44 [PATCH] tulip: de2104x, fix init. sections Randy.Dunlap
2005-03-02 6:09 ` Jeff Garzik
2005-03-02 7:02 ` Linus Torvalds
2005-03-02 7:03 ` Jeff Garzik
2005-03-02 7:14 ` Linus Torvalds
2005-03-02 7:25 ` Christoph Hellwig
2005-03-02 7:30 ` Jeff Garzik
2005-03-02 7:32 ` Christoph Hellwig
2005-03-02 7:37 ` Jeff Garzik
2005-03-02 7:41 ` Jeff Garzik
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).