Thread (4 messages) 4 messages, 3 authors, 2015-07-28

RE: [PATCH v1 net-next 1/1] net: fec: add stop mode request on/off implemention

flat view

From: Duan Andy <hidden>
Date: 2015-07-28 08:55:17

Hi, David,

From: Duan Fugang-B38611 Sent: Monday, July 27, 2015 9:28 AM
To: 'David Miller'
Cc: <redacted>; Li Frank-B20596; stephen@networkplumber.org
Subject: RE: [PATCH v1 net-next 1/1] net: fec: add stop mode request
on/off implemention

From: David Miller <davem@davemloft.net> Sent: Monday, July 27, 2015 7:27
AM
quoted
To: Duan Fugang-B38611
Cc: <redacted>; Li Frank-B20596;
stephen@networkplumber.org
Subject: Re: [PATCH v1 net-next 1/1] net: fec: add stop mode request
on/off implemention

From: Fugang Duan <redacted>
Date: Wed, 22 Jul 2015 18:13:43 +0800
quoted
The current driver depends on platform data to implement stop mode
request on/off that call api pdata->sleep_mode_enable().

To reduce arch platform redundancy code, since the function only set
SOC GPR register bit to request stop mode of/off, so we can move the
function into driver. And the specifix GPR register offset and MASK
bit can be transferred from DTS.

Signed-off-by: Fugang Duan <redacted>
Doesn't this break stop mode on those devices until the DTS is updated?

That's really unfortunate, because you're leaving all of the platform
data and implementation there, yet it's going to be unused.

I really think you need to keep the code using the platform data bits
around until all the DTSs are updated.

No matter what you tell me about how DTSs are updated (don't even
mention the details, I do not care) you simply cannot keep the
platform data code around and not use it.  It is completely
nonsensible to have code that would properly function and properly
support a feature for the device in the kernel, yet not use it.

Period.
Thanks for your comments.

Firstly, I will send some board dts patches (and test).
Secondly, the net/next tree have no platform data for stop mode because
others suggest us to use dts not platform data, and there have no any
boards support stop mode in net/next, so this doesn't break any boards in
net/next.

Regards,
Andy
I remove platform data callback is because there have no any platform use stop mode function. That is to remove redundant code.

I tested the patch on 4.1 with extra patches (imx pm support patches), it works fine.
But Linux next still loss i.MX power management patches, so wakeup source cannot work in next.

So the patch itself has no problem. You can accept it now, or after imx pm patches enter to next, and then I will send it again with imx6x/7x support.

Regards,
Andy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help