Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1974594yba; Thu, 25 Apr 2019 08:39:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqz+lb4FUM9ZcZrNpqkpcjb145TN3tKuYTKH1u3ZU3+DkgotRFcosi7za6yMUBvBJWICpmoc X-Received: by 2002:a63:d34b:: with SMTP id u11mr6022599pgi.385.1556206754786; Thu, 25 Apr 2019 08:39:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556206754; cv=none; d=google.com; s=arc-20160816; b=1HIWk8cxAo7Ri225rf1acbFlk/igDgX4/6tvLaJBmnctg126gZ8zEDt1cXIe6U8flD nB4I30wllChUEOiYgyXSaK6D7TPFjeAPZ0bXVd78Itz7Yi1G5huv/M7V7I+XEVGdWJq9 Ctun+6gSAdi1/+L0MJ1kzHRPTpu8fgx4HRbR+eMzQ3iXF5wCFpMmnkGPjhhdzAS3vjld WBZ0ZF9Copa0eJHWUsLe1mJtUZrDw/WblFBFZCAY0B3Mws4Fp6MbQnv0a2F8He1+n3Vj xd+18dy1JbdxF5XDHXX4ThW8uPfwqVbuG5JaMarvliT6DqxzSD4rcXclGSjq08RfBusQ PrNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=mnzOSiUdg09gG9afWMjshvm0a4M026nYgd6lwUOdW1Q=; b=YhMXKkhmtWxOptz2YnbdPh2RuXL0ZAq6j4gdJEZ4zX37RfkJMPO1KyuWrd3W1tM6gx vtxZJcYvHh2m8c6V72WGcNDVqvHyUTFVHo388MGHmFz6E0TMNxkpfXQlSwWRj2cy+PJ8 2B4DKlzF3/7iVjMYKrR9K21Ex9NDG/7cu6jB7ji0Ldms8irXmwUfH5r4K+CmId4VdgxZ n1rlRpT/8rEZoF+sU4lHu/uj4S6kNBcO2p5wBpMJxoPsBtn1XLEC5/8+sxJDlcRt5W7D Kz0BxbiT7tmF5X9a9Drwa29nwn0OJH4PnNjzdxvWw6ktMNDn0L0SJ11RzFUN+VDP+NXm YsNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=htF+g3n2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e26si22349116pfi.54.2019.04.25.08.38.58; Thu, 25 Apr 2019 08:39:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=htF+g3n2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727662AbfDYOOm (ORCPT + 99 others); Thu, 25 Apr 2019 10:14:42 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:57922 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726120AbfDYOOl (ORCPT ); Thu, 25 Apr 2019 10:14:41 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x3PEEbfw103626; Thu, 25 Apr 2019 09:14:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1556201677; bh=mnzOSiUdg09gG9afWMjshvm0a4M026nYgd6lwUOdW1Q=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=htF+g3n2wOQcYbt3H1ss606d2GCU+Rfzu5khH59hih8tnCuw8rNCgK17ytYZTUgoG u2oUjqv+RbsxiIk205Zk3areeuGCkNLZCBq4+4UpPL9jyoUnKfeIAFG2tNuXqzCxgj YPSRgNdkh17nxLpcCee+V1dpJ9pKPw9YggcbcOvU= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x3PEEbhW005749 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 25 Apr 2019 09:14:37 -0500 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 25 Apr 2019 09:14:36 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Thu, 25 Apr 2019 09:14:36 -0500 Received: from [172.22.129.216] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x3PEEXfn060365; Thu, 25 Apr 2019 09:14:34 -0500 Subject: Re: [PATCH net-next 16/19] net: ethernet: ti: cpsw: move common hw init code in separate func To: Murali Karicheri , , Ilias Apalodimas , "David S . Miller" , Ivan Khoronzhuk CC: Florian Fainelli , Andrew Lunn , Sekhar Nori , , References: <1556024950-20752-1-git-send-email-grygorii.strashko@ti.com> <1556024950-20752-17-git-send-email-grygorii.strashko@ti.com> <71d13a87-a078-a49d-43b2-33beb19f0e46@ti.com> From: Grygorii Strashko Message-ID: <0bec250e-7c16-4c5b-d56e-581e8d8ca46b@ti.com> Date: Thu, 25 Apr 2019 17:14:32 +0300 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <71d13a87-a078-a49d-43b2-33beb19f0e46@ti.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 >> --- >>   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