Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp6946020ybn; Mon, 30 Sep 2019 06:22:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqy58ZN0GvIvbAa6/4EmerWwtlwiJO+ZJk6P9rLb5qXw6epjURP8MrTvAEAzCqxj+LPEdpy2 X-Received: by 2002:a50:9625:: with SMTP id y34mr19306053eda.72.1569849763198; Mon, 30 Sep 2019 06:22:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569849763; cv=none; d=google.com; s=arc-20160816; b=TqucBX4+YL4MnSIDJrVRKlJmQztfud+NDoxnBxJEPci48cnvIFkTC7NBJfINpv6v2G ZAE9D8QrkN9v1ul6F0jCq8bOygl1VrWSLqgRfiR6q/GVR58o77lnYsL8rcIZKnch1M+D JGjYC4wWRKKJ5ddEihNHhZPhMBn0IOs8M999Jhw8AhLgfm0GVb2S3AODwewayjIdMEOx 6FEzMAs+y2qKcGGRcv6V984gJ2VLMF6hXqDDDZ/QPT9tPg8a7EM6c29HuKcGsBIrSXMB +Mn7zbD8DPfjx0EGppxDYbKoSMXjtHFh4/5zIoEUJG1RRMYEdxL+8bJg3YcBcKHJMyHY h5ew== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=QKGHtGGZYx5PmIm0H778adLOapt9EArFPSKaXfErBIk=; b=GE8aBf/HYyyuAZXXEN0gIIYmgAM+5Pgdn3XTEJB46cagjh2suVET7uj/Ih0ThLgWP+ I43e7VGZoFA6e/gan3j+0ixKEAS8kDx1PsNGltcimfy1w0hVcHKrz/MpoAnnsI3DUG8s dgsLOV/RHFIp6qTDse2uIF29MEw7p72dFk6N3rSRD6ekf0YL44BBUuTB6O14zaQuhA15 qAEpYMTCSx9gNntx1HS4wvluR+XX6eguryXNNP6tTxL/uWyrJNa5WYDpXH0Tw5lhJ8Gk 1UI1sdIusnRi1YJDWgBCyndt//U1dziR15Gf/UtPviuxTA1xb+lJC0O8X4ZSWdjOXr7U sd2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=bwfp+J5c; 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 y2si6786993eds.98.2019.09.30.06.22.18; Mon, 30 Sep 2019 06:22:43 -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=fail header.i=@lunn.ch header.s=20171124 header.b=bwfp+J5c; 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 S1731329AbfI3NUq (ORCPT + 99 others); Mon, 30 Sep 2019 09:20:46 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:54410 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731214AbfI3NUp (ORCPT ); Mon, 30 Sep 2019 09:20:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=QKGHtGGZYx5PmIm0H778adLOapt9EArFPSKaXfErBIk=; b=bwfp+J5c4S86vr++NupdgY57NL w2qUlT7VMwyDNjsh3CFEiZXNMA9r7/dWkyjz0jphs9u0UvyKf/vAchWumWj7zdEW1SB68+abE8d7b 2fIAEZGoynGrQUXlzosrjsk9FlRGFP/1Bn1hn2Bbm3x2sxipAarVn6gE3MHDvFwpfhus=; Received: from andrew by vps0.lunn.ch with local (Exim 4.92.2) (envelope-from ) id 1iEvbV-0003oP-BW; Mon, 30 Sep 2019 15:20:41 +0200 Date: Mon, 30 Sep 2019 15:20:41 +0200 From: Andrew Lunn To: Oleksij Rempel Cc: Florian Fainelli , Heiner Kallweit , Pengutronix Kernel Team , "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] net: phy: at803x: add ar9331 support Message-ID: <20190930132041.GE13301@lunn.ch> References: <20190930092710.32739-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190930092710.32739-1-o.rempel@pengutronix.de> User-Agent: Mutt/1.10.1 (2018-07-13) 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 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? Thanks Andrew