Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp7009268ybn; Mon, 30 Sep 2019 07:19:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKr2DWpp/Ij3e8WGmoce2A+0qqAivIxfgWsLsIZr7MVb95RnAUJR2yO+lJ2z1fBEuCtPJ3 X-Received: by 2002:a5d:4744:: with SMTP id o4mr12885954wrs.95.1569853150901; Mon, 30 Sep 2019 07:19:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569853150; cv=none; d=google.com; s=arc-20160816; b=Nx8q4ZbAwvV2WOQs2UlDvFix6gjb0Qt6QRAsLAL16Br94KpqZLXpXWgSAnH+A+8ZTI FAd6MxxX5QqhjElIh9f6C7cCjMSHx/sFjumQ6dpp1ZvUXUaDVAxuBVItvZsNpa0gycA6 QF6BDfGZ5PS7ru46sIUhOleuTvp6TdL4aTCClTtIH1A/58nPj2v7aHtrvGKmE/TLxR1I GzU11hpb97s6vcLocb7re3PG+AoKnl6C9AXOh+c975Uaj3nUAOG5Bzw3RbM1ewvU77OW H0QG/LA4OlJBsdDaYN/F4OhyCrZNZ7kqQh2XGTnJ4vwG29ewk97GfEl7PKP7TYiLivmc YM1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=QP0DFsMMAC7kVhs1tmrcLIZIS1ExNle970+WXg0R0ZI=; b=EE8zvjAENfWjyUfATHUwCv4TNeDyRF0Id+SgJa07HUoV6tWDtPbA7G2Wdt+ik+5ztH VDevetBvlLuu9xRaithqBok+rbUZ02S7kB1ZH5L16DivhLZ6NUK501K2yAKJhGC4o/zZ ft+GX7fA1Y6QcLNzEpZSAxccEzQGaTVmSIDrJLUCNYniDR2++D7I89JucuyPFj2B41Sn MxHhymRBXZpQIgDspjUO4PkzgYznUm/KLDrpKIhBRqbfLKjwf1X8m+QU1TOedSYi6Oql La7TcbseUc37/rmBBy9FS3eBAleMDDyT3Tl/TIpbSvtvHfQRB4ZBU1pXKPodbs/ACXrK Ag4g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u2si6781459ejr.332.2019.09.30.07.18.44; Mon, 30 Sep 2019 07:19:10 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731503AbfI3OS0 convert rfc822-to-8bit (ORCPT + 99 others); Mon, 30 Sep 2019 10:18:26 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:41397 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730923AbfI3OS0 (ORCPT ); Mon, 30 Sep 2019 10:18:26 -0400 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iEwVM-0005dv-18; Mon, 30 Sep 2019 16:18:24 +0200 Received: from ore by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1iEwVK-0006DO-B7; Mon, 30 Sep 2019 16:18:22 +0200 Date: Mon, 30 Sep 2019 16:18:22 +0200 From: Oleksij Rempel To: Andrew Lunn Cc: Florian Fainelli , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Pengutronix Kernel Team , "David S. Miller" , Heiner Kallweit Subject: Re: [PATCH v1] net: phy: at803x: add ar9331 support Message-ID: <20190930141822.ny5m42qaoccpf5ek@pengutronix.de> References: <20190930092710.32739-1-o.rempel@pengutronix.de> <20190930132041.GE13301@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: <20190930132041.GE13301@lunn.ch> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 16:14:08 up 135 days, 20:32, 87 users, load average: 0.08, 0.04, 0.01 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 30, 2019 at 03:20:41PM +0200, Andrew Lunn wrote: > On Mon, Sep 30, 2019 at 11:27:10AM +0200, Oleksij Rempel wrote: > > Mostly this hardware can work with generic PHY driver, but this change > > is needed to provided interrupt handling support. > > Tested with dsa ar9331-switch driver. > > > > Signed-off-by: Oleksij Rempel > > --- > > drivers/net/phy/at803x.c | 14 ++++++++++++++ > > 1 file changed, 14 insertions(+) > > > > diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c > > index 6ad8b1c63c34..d62a77adb8e7 100644 > > --- a/drivers/net/phy/at803x.c > > +++ b/drivers/net/phy/at803x.c > > @@ -53,6 +53,7 @@ > > #define AT803X_DEBUG_REG_5 0x05 > > #define AT803X_DEBUG_TX_CLK_DLY_EN BIT(8) > > > > +#define AR9331_PHY_ID 0x004dd041 > > #define ATH8030_PHY_ID 0x004dd076 > > #define ATH8031_PHY_ID 0x004dd074 > > #define ATH8035_PHY_ID 0x004dd072 > > Hi Oleksij > > I wonder if we should call this ATH9331_PHY_ID, to keep with the > naming convention? Why did you choose AR, not ATH? Hi Andrew, i have no strong opinion here. Taking what ever name was on the SoC package, was safe enough for me. If you say, it should be ATH9331, i'll rename it. Should i? -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |