Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4852283imm; Tue, 31 Jul 2018 00:55:43 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcIciMYhUHurHttDKIeT0UOxD2TZNcVQD9xxnN10jj6RL/U8td+teIaxJbPL8uOknZJykIE X-Received: by 2002:a17:902:e3:: with SMTP id a90-v6mr19812684pla.227.1533023743324; Tue, 31 Jul 2018 00:55:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533023743; cv=none; d=google.com; s=arc-20160816; b=eGDAJIa5PpY0+66qtV4u+JI+bKmzS0UZDIg5Qwr0hl6jEmIqIbpQrCFXdCCK6RoXSu 5LhkZrS1kZ3f9ws0PdGupxl6IxtHxWTHIevSWpg6G/jEK7Am11/g+x17CuEMdpIcEnqx IgOuEPM8Deza2DetJjXa0WFy4iP2uWveOwKjmAV8QzSKrqMuQYVzEkYT4cDMLhaDylDF cMKvnoEuSF0tvW0RVZcwLyuUEb/e3ZlZUuX/KscBMgOIAJLKM5pzyWGw2ZTZKf4lYndl hZUuUamjZMmd7aD0PeJ9kWXvFgynyLbtOMdeld3lDu0ErIM4XC4QoavZ38P/veozFVLl LN+g== 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:arc-authentication-results; bh=NTvOnM+hGVMeYrQoEZUIHtKHih4hHA2DGRGmu7NgHQM=; b=rWRDjVfYfZ0B4SouNXKWLx1xbfWkFN9C9NZL+GxkEzoGmDhqNZ+eezdxpmfnHJzxec 5++lnkX8AEti8cnnBvZqT0pOk/6xV42t3RAqDJfGOiRvhKkfGi1BvU2znS4sTzre8li0 ZPySDdWRY3Ly2K9vAw/AxxlUQrgDYzESqk2NZLcI8x1RInHS1iYBIXyrxA7FMPRAJfMx k/KTle2pFnir6xZ9nsN2oSfe6M2mjQcC35Tfu6Cxpqgr+g1t9GezIxrZkUCbp+6J2POK YiiXqGYNqUN72NSDfhl6oYk8/WNG0+roBIurpv+FkDzFXF5SeJHdGwk640vSYu7n3L4a CBrQ== 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 z20-v6si14918425pfj.337.2018.07.31.00.55.29; Tue, 31 Jul 2018 00:55: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; 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 S1729797AbeGaJco (ORCPT + 99 others); Tue, 31 Jul 2018 05:32:44 -0400 Received: from mail.bootlin.com ([62.4.15.54]:56136 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727279AbeGaJco (ORCPT ); Tue, 31 Jul 2018 05:32:44 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 4AACB207AB; Tue, 31 Jul 2018 09:53:38 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (242.171.71.37.rev.sfr.net [37.71.171.242]) by mail.bootlin.com (Postfix) with ESMTPSA id 1C10B2069C; Tue, 31 Jul 2018 09:53:28 +0200 (CEST) Date: Tue, 31 Jul 2018 09:53:29 +0200 From: Alexandre Belloni To: Quentin Schulz Cc: ralf@linux-mips.org, paul.burton@mips.com, jhogan@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, davem@davemloft.net, kishon@ti.com, andrew@lunn.ch, f.fainelli@gmail.com, linux-mips@linux-mips.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, allan.nielsen@microsemi.com, thomas.petazzoni@bootlin.com Subject: Re: [PATCH net-next 03/10] net: mscc: ocelot: get HSIO regmap from syscon Message-ID: <20180731075329.GP28585@piout.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 30/07/2018 14:43:48+0200, Quentin Schulz wrote: > HSIO address space was moved to a syscon, hence we need to get the > regmap of this address space from there and no more from the device > node. > > Signed-off-by: Quentin Schulz Acked-by: Alexandre Belloni > --- > drivers/net/ethernet/mscc/ocelot_board.c | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/ethernet/mscc/ocelot_board.c b/drivers/net/ethernet/mscc/ocelot_board.c > index 26bb3b1..b7d755b 100644 > --- a/drivers/net/ethernet/mscc/ocelot_board.c > +++ b/drivers/net/ethernet/mscc/ocelot_board.c > @@ -9,6 +9,7 @@ > #include > #include > #include > +#include > #include > > #include "ocelot.h" > @@ -162,6 +163,7 @@ static int mscc_ocelot_probe(struct platform_device *pdev) > struct device_node *np = pdev->dev.of_node; > struct device_node *ports, *portnp; > struct ocelot *ocelot; > + struct regmap *hsio; > u32 val; > > struct { > @@ -173,7 +175,6 @@ static int mscc_ocelot_probe(struct platform_device *pdev) > { QSYS, "qsys" }, > { ANA, "ana" }, > { QS, "qs" }, > - { HSIO, "hsio" }, > }; > > if (!np && !pdev->dev.platform_data) > @@ -196,6 +197,14 @@ static int mscc_ocelot_probe(struct platform_device *pdev) > ocelot->targets[res[i].id] = target; > } > > + hsio = syscon_regmap_lookup_by_compatible("mscc,ocelot-hsio"); > + if (IS_ERR(hsio)) { > + dev_err(&pdev->dev, "missing hsio syscon\n"); > + return PTR_ERR(hsio); > + } > + > + ocelot->targets[HSIO] = hsio; > + > err = ocelot_chip_init(ocelot); > if (err) > return err; > -- > git-series 0.9.1 -- Alexandre Belloni, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com