Re: [PATCH net-next 16/19] net: ethernet: ti: cpsw: move common hw init code in separate func

From: Grygorii Strashko
Date: Thu Apr 25 2019 - 10:14:44 EST




On 25.04.19 16:38, Murali Karicheri wrote:
> On 04/23/2019 09:09 AM, Grygorii Strashko wrote:
>> move common hw init code in separate function as preparation for adding new
>> switchdev driver.
> All of the changes indicates a better name for the file is cpsw_common.c; commit log,
new function cpsw_init_common() etc. Any specific reason to use cpsw_priv.[ch]?

I've been thinking about this, but cpsw_coomon.c is used by davinici_emac also.
More over, I have a hope that it'd be possible to get rid of cpsw_common.c at all
by switching to nvmem.

Also, I'd be very appreciated if you'd be able to cut your replies.
It's a little bit hard to find your comments

>
>>
>> Signed-off-by: Grygorii Strashko <grygorii.strashko@xxxxxx>
>> ---
>> Â drivers/net/ethernet/ti/MakefileÂÂÂ |ÂÂ 2 +-
>> Â drivers/net/ethernet/ti/cpsw.cÂÂÂÂÂ | 106 ++---------------------
>> Â drivers/net/ethernet/ti/cpsw_priv.c | 128 ++++++++++++++++++++++++++++
>> Â drivers/net/ethernet/ti/cpsw_priv.h |ÂÂ 3 +
>> Â 4 files changed, 137 insertions(+), 102 deletions(-)
>> Â create mode 100644 drivers/net/ethernet/ti/cpsw_priv.c
>>
>> diff --git a/drivers/net/ethernet/ti/Makefile b/drivers/net/ethernet/ti/Makefile
>> index 2f159a71f88e..de1561596646 100644
...

--
Best regards,
grygorii