[lkml]   [2005]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: sungem driver patch testing..
    On Sat, Sep 10, 2005 at 08:11:22PM -0700, Linus Torvalds wrote:
    > I've been grepping around for things that do their own PCI ROM mapping and
    > do it badly, and one thing that matches that description is the sungem
    > ethernet driver on PC's.
    > If anybody has such a beast, can you please try this patch and report
    > whether it works for you?
    > Linus
    > ---
    > diff --git a/drivers/net/sungem.c b/drivers/net/sungem.c
    > --- a/drivers/net/sungem.c
    > +++ b/drivers/net/sungem.c
    > @@ -2817,7 +2817,7 @@ static int gem_ioctl(struct net_device *
    > #if (!defined(__sparc__) && !defined(CONFIG_PPC_PMAC))
    > /* Fetch MAC address from vital product data of PCI ROM. */
    > -static void find_eth_addr_in_vpd(void __iomem *rom_base, int len, unsigned char *dev_addr)
    > +static int find_eth_addr_in_vpd(void __iomem *rom_base, int len, unsigned char *dev_addr)

    While we're at it the cpp conditioal looks bogus. We definitly needs this
    when plugging a SUN card into a mac. I'd suggest compiling this
    unconditionally and fall back to it when whatever firmware method to get
    the mac address fails.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-09-11 14:06    [W:0.034 / U:50.740 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site