lkml.org 
[lkml]   [2016]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 4/9] net: ethernet: ti: cpts: move dt props parsing to cpts driver
From
Date
On 09/14/2016 04:55 PM, Richard Cochran wrote:
> On Wed, Sep 14, 2016 at 04:02:26PM +0300, Grygorii Strashko wrote:
>> Move DT properties parsing into CPTS driver to simplify consumer's
>> code and CPTS driver porting on other SoC in the future
>> (like Keystone 2).
>
> And just who is the consumer?

Now CPSW, and Keystone 2 netcp in the future.

>
>> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
>> ---
>> drivers/net/ethernet/ti/cpsw.c | 16 +---------------
>> drivers/net/ethernet/ti/cpsw.h | 2 --
>> drivers/net/ethernet/ti/cpts.c | 29 ++++++++++++++++++++++++++---
>> drivers/net/ethernet/ti/cpts.h | 5 +++--
>> 4 files changed, 30 insertions(+), 22 deletions(-)
>
> You have more (+) than (-). I wouldn't call that a simplification.


With this change It will not be required to add the same DT parsing code
in Keystone 2 netcp driver, so overall number of lines will be reduced.

As I mentioned in cover letter - this is preparation step and this series
indented help and simplify CPTS integration with few TI net drivers
(now cpsw, soon KS2 netcp), because similar CPTS IP is integrated
in two different TI's SoC families (and might be in more the future).

I've not posted KS2 patches here, because of two reasons:
- they are still under internal review
- I hate big patch series

--
regards,
-grygorii

\
 
 \ /
  Last update: 2016-09-17 09:59    [W:0.056 / U:1.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site