Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp306278imn; Wed, 3 Aug 2022 04:46:22 -0700 (PDT) X-Google-Smtp-Source: AA6agR7Kqi0RpRVuc0iqWrVQxcIxiG86ofE3lihg6Y37dftTUOBwbvdsn23EVcqEwTx6qkBUNac6 X-Received: by 2002:a17:90b:3a90:b0:1f2:edfe:db4 with SMTP id om16-20020a17090b3a9000b001f2edfe0db4mr4430491pjb.105.1659527182349; Wed, 03 Aug 2022 04:46:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659527182; cv=none; d=google.com; s=arc-20160816; b=XfciyUPqzVvd25a82nPfPQcXADhI2Vma2smdMU6wNdxxv8Yh5lVFOyIbJOTnjYylE+ GHFmraGzvZw6n6F8cMVDBAHMbJ2HaYyxjcVz8f8jS+glpuGLwKia03o6Lxxixc6d8wKv S8ahuMC+giPwj/SxCYP602Aq6RwjoP0CQYpDPbmpGeojyvvVQHKtmhWtSKCj9TIWjomM sDrPLg7H3nKJxcttwzEa0oHHI6VlnNpiP9miHAc2sc6sAKM7+CNO71Ohzo5t9eBouJZL jYJN1xD4FdsZUSkEG2COGvFeYGGp3TQu9aOqdQnlWRtPflrFEoRbcLI9tf9UuEyMDXYA 7bOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=onxOdMmI5QbIGUE/oDxEeplm+cELkOPvfMCEuj17XyE=; b=skUXTte3K37uN8EpZEeJ5GsTf43oxwFoHwelAF+Qjogfi4ybmwYrkOWEyaW9Rncsrv DTNXX1T9ckH1BgjNFCIqY/S8uKGGr4GXuH8ZAr20oTPZIjHvkzgPXR2mJW1iGCBMlJTF /gi0KZEMYbPmsLWq71+oid/zZ3q8zy6vv2hDgT4Lt4H6VsCrdMPHaUoQoa4mPXtYu8M7 ueksQpdLuse02xp7ZBoPtOSBBDio7WpDnD6lXkHQ05nJ7jNXCp3AC6Q4ybUWKuftKeIQ CJi//rlhFr0tgkrwB6Fp2yqeAjsJMD+FQwJuvhUmXjXJDdH3kHI44xFGX4s3vnZeTtgA 2UTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=e80QPsaO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y70-20020a638a49000000b0041bf2178b93si10714322pgd.165.2022.08.03.04.46.07; Wed, 03 Aug 2022 04:46:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=e80QPsaO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237683AbiHCLdg (ORCPT + 99 others); Wed, 3 Aug 2022 07:33:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237600AbiHCLd1 (ORCPT ); Wed, 3 Aug 2022 07:33:27 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 298B23DF04; Wed, 3 Aug 2022 04:33:26 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id a89so21080726edf.5; Wed, 03 Aug 2022 04:33:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=onxOdMmI5QbIGUE/oDxEeplm+cELkOPvfMCEuj17XyE=; b=e80QPsaOkwgNFQn0rtSDmXyeEbAurKgI3paSkgTLa6gTyVHa4LZNNjhtUPrF+TiYjA 94enMiVEPbAjGBow0aSG8cUAW3ZEHaOR45ycZ+1tq/oSxijXyyqCBYgpEPAUdCA40UfB xf9hnsyrmSN9yHji5necoonhG3fAqvDoqGH+sC+mk0P8cYe1PgVmkPsergu6ydQuLYtb v5cr6vxyrSMjl6EK8rEExDJKgIxHanmvRoVqIYOOFDjnkDofyNCnsKKLPzAogpDGQAO6 z9YOfBvvyQA1AHXt3uI0kbnHPeMmo0Jo8SphvPbwBYPnrPvSoJ24cXXt4yQXwFhAiOgA U4cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=onxOdMmI5QbIGUE/oDxEeplm+cELkOPvfMCEuj17XyE=; b=soC+EZo8Y6gpLUDiDMFXHnHsKH3uHZm8mZLsZJ54hgq+xxDfh+EeyEFADNpyu7EhhF JBKCNygUOxXJ2k3u19TANThldau20MNQ663ixH3UQjyUrS+5hZOKZpsLZQRBO6xxI4bx JxRKKejMQ6azXo0Td1icxhVRfQTmqTiLoq5I9UDuk5EsdL7+p8jsHYIEuPjxfyyWOoGY G8vduC49mjursHEllNXxeL9Lealt1wKpfIzPTEMPkj9kPve2l67gLcTDjwOXywimIcUv s24diN3HB/fzoAVn283RcPEQysv8IEvhWgpQRoYXs6jhAvr3hKYJmmjltb/h9chNoG3/ HEsQ== X-Gm-Message-State: AJIora+KjzT/XZZ7X+HE/0CVKNnb6f9SgXTd3OMKmbIopZstjPOoo3uL SWWs/Za+XzMuqQN6j+vd/JAPi/fum5OXdGHXB84= X-Received: by 2002:a05:6402:280b:b0:43b:5d75:fcfa with SMTP id h11-20020a056402280b00b0043b5d75fcfamr24685276ede.114.1659526404638; Wed, 03 Aug 2022 04:33:24 -0700 (PDT) MIME-Version: 1.0 References: <20220803054728.1541104-1-colin.foster@in-advantage.com> <20220803054728.1541104-7-colin.foster@in-advantage.com> In-Reply-To: <20220803054728.1541104-7-colin.foster@in-advantage.com> From: Andy Shevchenko Date: Wed, 3 Aug 2022 13:32:47 +0200 Message-ID: Subject: Re: [PATCH v15 mfd 6/9] pinctrl: microchip-sgpio: add ability to be used in a non-mmio configuration To: Colin Foster Cc: linux-arm Mailing List , "open list:GPIO SUBSYSTEM" , netdev , Linux Kernel Mailing List , devicetree , Terry Bowman , Vladimir Oltean , Wolfram Sang , Microchip Linux Driver Support , Steen Hegelund , Lars Povlsen , Linus Walleij , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , Russell King , Heiner Kallweit , Andrew Lunn , Krzysztof Kozlowski , Rob Herring , Lee Jones , katie.morris@in-advantage.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 3, 2022 at 7:47 AM Colin Foster wrote: > > There are a few Ocelot chips that can contain SGPIO logic, but can be > controlled externally. Specifically the VSC7511, 7512, 7513, and 7514. In > the externally controlled configurations these registers are not > memory-mapped. > > Add support for these non-memory-mapped configurations. FWIW, Reviewed-by: Andy Shevchenko > Signed-off-by: Colin Foster > Reviewed-by: Vladimir Oltean > Acked-by: Linus Walleij > --- > > (No changes since v14) > > v14 > * Add Reviewed and Acked tags > > --- > drivers/pinctrl/pinctrl-microchip-sgpio.c | 8 ++------ > 1 file changed, 2 insertions(+), 6 deletions(-) > > diff --git a/drivers/pinctrl/pinctrl-microchip-sgpio.c b/drivers/pinctrl/pinctrl-microchip-sgpio.c > index e56074b7e659..2b4167a09b3b 100644 > --- a/drivers/pinctrl/pinctrl-microchip-sgpio.c > +++ b/drivers/pinctrl/pinctrl-microchip-sgpio.c > @@ -12,6 +12,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -904,7 +905,6 @@ static int microchip_sgpio_probe(struct platform_device *pdev) > struct reset_control *reset; > struct sgpio_priv *priv; > struct clk *clk; > - u32 __iomem *regs; > u32 val; > struct regmap_config regmap_config = { > .reg_bits = 32, > @@ -937,11 +937,7 @@ static int microchip_sgpio_probe(struct platform_device *pdev) > return -EINVAL; > } > > - regs = devm_platform_ioremap_resource(pdev, 0); > - if (IS_ERR(regs)) > - return PTR_ERR(regs); > - > - priv->regs = devm_regmap_init_mmio(dev, regs, ®map_config); > + priv->regs = ocelot_regmap_from_resource(pdev, 0, ®map_config); > if (IS_ERR(priv->regs)) > return PTR_ERR(priv->regs); > > -- > 2.25.1 > -- With Best Regards, Andy Shevchenko