[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-id: <002a01cf6b20$6417ca80$2c475f80$%an@samsung.com>
Date: Fri, 09 May 2014 09:48:27 +0900
From: Byungho An <bh74.an@...sung.com>
To: 'Francois Romieu' <romieu@...zoreil.com>
Cc: 'Florian Fainelli' <f.fainelli@...il.com>,
'netdev' <netdev@...r.kernel.org>,
linux-samsung-soc@...r.kernel.org,
'David Miller' <davem@...emloft.net>,
"'ks.giri'" <ks.giri@...sung.com>,
"'vipul.pandya'" <vipul.pandya@...sung.com>
Subject: RE: [PATCH] net: sxgbe: Added tail point update
Francois Romieu wrote :
> Byungho An <bh74.an@...sung.com> :
> > Florian Fainelli wrote:
> [...]
> > > I think that at some point you should revisit your abstraction, all
> > > the patches that I see do take a void __iomem * argument as the first
> > > function argument, you should probably use your driver private context
> > > here. The day you support a different version of the hardware, there
> > > might be other differences that need to be taken care of.
> > >
> > I agree with you, it would be more robust for different version of the
> hardware and make simple function argument.
> > But most functions of this driver deal with read/write register using
> ioaddr.
>
> It does not imply that they should urge on ioaddr.
>
> drivers/net/ethernet/broadcom/tg3.c gets it right and there is no reason
> why sxgbe should be different.
>
I fully understood.
> > As of now I think it is enough but I'll consider it later.
>
> In the meantime:
> 1) more use-once function pointers are added
> 2) their parameter list keeps growing
>
> Please reconsider sooner than later.
I'll revisit above things sooner (after this patch set).
Thanks.
>
> --
> Ueimor
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists