Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4462127rwb; Tue, 6 Sep 2022 07:54:02 -0700 (PDT) X-Google-Smtp-Source: AA6agR6n3hHKalxTnFmSI2RBRmJvFNTINnlEvqFtvimGDwk1trDq1XFVKvws9k7emrnX88mNJJau X-Received: by 2002:aa7:ccd3:0:b0:44e:6c07:6b8 with SMTP id y19-20020aa7ccd3000000b0044e6c0706b8mr10404670edt.426.1662476042317; Tue, 06 Sep 2022 07:54:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662476042; cv=none; d=google.com; s=arc-20160816; b=kgi1R/HBxIskE2vixte4CjFLmv1rFKjFT/53BBdd6wrZBrp1mvYuKPjqwMKT3IULNp GuPO8nV1Kj3GMOOs7w70LJ82/5McQwRGgY3hHQzwUNMeD6gc12Qk/qpp2XOK1AjUtz/U wCWQh18ws0bP4fCfDG7Uvv82SnEzZLLuGWh9E2Y4XnwvGNALM3TTN6EwGHKxkuG2cxGs eRicAcGHjmNdba45eZ91FCZa/w3pb2Q0oPdT6vif/hrpFY/2RBVaE9Xf+NJIACIMnLdq x4bTePVA9MtWYqhTNfi+2HwLzc4coIxIWm8LgWX1bW+0jRfkFSndhH3PB2od2QMoexDs aLmw== 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=88S83VgtdPyH77FG9hMS+SUCEVS9Ip7NvKSaBXxAsxM=; b=jOettkJCNDawjHkxTSnptt6/iHGtbYUKOngOdJ1oT6/fn+uSFYfTIV+lbqMgFOAm2z PuLJgmkeC9IYLPvP7SMsyBRuT5vnq1YO1BsocSm5oDxD9ny3fKK70vtUFwLqwaUgNZ2z AkbVFrI/W+ln0XaHohnPa6Yfa6GRCjCA4rD4u74E0lhPZaWWf5b7Qxm81mmT9u7VhDSn ikQMbufx6XEqyHy1SH/FPKLFN2VFqdtFiITsHcL0JImHo3TwwCYSISE3glpu/GoCEuIs Rkx24XCAyjZyVnsfT8tfVVjcz89RH4iC/GYq4Pb8qQHi/43eMylN2JF8oVqmCtojvpy1 G/NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mAyIh9BL; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cr14-20020a170906d54e00b0073dd129cb40si1301820ejc.415.2022.09.06.07.53.22; Tue, 06 Sep 2022 07:54:02 -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=@linaro.org header.s=google header.b=mAyIh9BL; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233621AbiIFNJx (ORCPT + 99 others); Tue, 6 Sep 2022 09:09:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233313AbiIFNJr (ORCPT ); Tue, 6 Sep 2022 09:09:47 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 411D8167C5 for ; Tue, 6 Sep 2022 06:09:45 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id r4so15063353edi.8 for ; Tue, 06 Sep 2022 06:09:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=88S83VgtdPyH77FG9hMS+SUCEVS9Ip7NvKSaBXxAsxM=; b=mAyIh9BL6U13TF8OsThv9eGZVdT6lvAT5c+VkmlaX2Blb9QVFDnzwRqY3DlVOjnVyp bF33+Zy3zElL8dojbFmG5JVyijBo+Em15s8Hjp11XZGOsBa4L1JKNshzsdSXlgY5Up3a Nz1bq8y6+yl5SuqRWlAnNFwUljDjPrGqMqxqjplClzH1JQZB17kI14cEE0/HY8Ef+Wxz KiPmBw815Dl4lsAJxOsiwXYaTYhfnJLsOAo8dSd95m4YSd65uVgNnkTAwSfLYDEGL+Vb 8lgEK+0gOlk05N5Kv2A96lZMo7AHB8Raxp9OmR4nv8ddpe44e5IcRMYMpyhdq5BLpXXI ODuw== 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:subject:date; bh=88S83VgtdPyH77FG9hMS+SUCEVS9Ip7NvKSaBXxAsxM=; b=MKm7x9VljBSRfWI+QUWk2kHQHYuIBDTZU/coVlA4UGbEtnCPvFxkCuC+cvJ34WU+kT LT7Z3E1OW94XdkNBbvY3I7UILbgm5QrmnE+nR7D6pWYoE1xwpCTxdLyZ09WYRm8uJ51I 0TLHJY+uFlpLFq8NU2m6IT1Nx3c8doSubNbTcCvAB/Zcv3h7tGaKabV1BmJWdqwUzFTc 4+GsKl4vZHEbLLt8wkiT5o0FIovs046hHWcrgfG5ClMzewSIsFHw39WxQz29ko7D/RO7 q0txrvs3tFFnB/iDN7EG9LppzHzzTcH5gYWiwcOohzuWAKe9dkjswN1cES1qb07w6PlV /CJA== X-Gm-Message-State: ACgBeo0eKEsXEw9TZWhk/oPerdQVu03+OJqWAW8BvXemWLYVLAULFT4U iclUzO4qOxuYl2neREALybqhzbyoJ+P1ZRPaBi+Rnw== X-Received: by 2002:aa7:d6d9:0:b0:44d:e1b7:d905 with SMTP id x25-20020aa7d6d9000000b0044de1b7d905mr11675722edr.32.1662469783678; Tue, 06 Sep 2022 06:09:43 -0700 (PDT) MIME-Version: 1.0 References: <20220815120834.1562544-1-lewis.hanly@microchip.com> <20220815120834.1562544-2-lewis.hanly@microchip.com> <31d2bd0514652685cb87a7c9d17529b9064de2bf.camel@microchip.com> <23d74882a69b39025005495886faec3e5b129ba7.camel@microchip.com> In-Reply-To: <23d74882a69b39025005495886faec3e5b129ba7.camel@microchip.com> From: Linus Walleij Date: Tue, 6 Sep 2022 15:09:32 +0200 Message-ID: Subject: Re: [PATCH v6 1/1] gpio: mpfs: add polarfire soc gpio support To: Lewis.Hanly@microchip.com Cc: linux-riscv@lists.infradead.org, Conor.Dooley@microchip.com, brgl@bgdev.pl, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, palmer@dabbelt.com, maz@kernel.org, Daire.McNamara@microchip.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,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Mon, Sep 5, 2022 at 12:45 PM wrote: > On Wed, 2022-08-31 at 15:19 +0200, Linus Walleij wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you > > know the content is safe > > > > On Tue, Aug 30, 2022 at 6:51 AM wrote: > > > > > We had looked at the bpgpio_init, our controller is not fully > > > memory > > > mapped to support the bgpio_init() and get all routines for free. > > > While we have in/out and intr (interrupt state) 32-bit registers, > > > we > > > would not get as much free as other generic memory mapped > > > controllers. > > > > You're not really saying what the problem is? > > > > Is it that some registers are not one-bit-indexed from 0 per GPIO? > Yes some of the registers are not one-bit-indexed per GPIO and for this > reason we had not implemented bgpio_init(). OK that's a valid reason not to use that. Thanks! The regmap may help though, have a look! Yours, Linus Walleij