Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp970721imw; Wed, 13 Jul 2022 11:17:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vguVutB7VQWLlNkk5DBM0voB73jMV6X1EOJY0GxDxn72ADO2vzRMs7FAtstnn+CD/QJGMa X-Received: by 2002:a05:6402:c44:b0:431:52cc:f933 with SMTP id cs4-20020a0564020c4400b0043152ccf933mr6737505edb.41.1657736231182; Wed, 13 Jul 2022 11:17:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657736231; cv=none; d=google.com; s=arc-20160816; b=s1wDuXuCChGgr5715dqn9u2s5jfz8qjoW27sOtwGK9+4fLYp/yAGtO8pLoLwLRXd54 xTxCu6ynY3upBwYWXk5s1FyPaAoxoCAuDiJEuCcm7OkvrimyEFLeLzC7zoUeSoAPxe25 yHnCmTw9MRpR9HqZgXI+3L95UXqnXbbd5344LidUXxVd9tohXRwoRne+686jyjDLkLDU vRw9YY8qtjfHI7e006XxY/4Wvff17YHE8ogAiF4UIYNLaH4XquxPcVqBMjblyS11sQ+Q ErFYWG4EZgr27oL1JalfDo3974t6aVNk7MMgbACh+czzRlgkI2i4ruEm1GvvenCsOLCn DUIA== 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=Yvxn6S29978hI/T6QCXVM0v4iM3QSPq55Yrl5aDYI6c=; b=GpE2CB287AqbsijNY9zbnbvk392lH8nTrwealzgcF9fSQ2Lbvdrgmw1wIq0i2vvwQQ sJXnrXhs3UQZnGYf/ih9lJGHNgLMGGhn2/K8TVzLNMnL3+zF/8BOpEOvxAdCCSMFImP7 jVd8TimnDdLbStD+/N0RBjcBvlg7RKciZBlOMgXvKSxgHZ1HXqwoS6t4UFHJDgREsGZp rQLkkq/Vdau/dkzy+B1nESkId+CCrZKQ7MaHAnsLt4gkbxH+qIPwQN1yoA78N3+ZrLjD RWBlJZKyr3aE/Oa/wmsAj1K/frLIO6w4ikznfjTaAjJBtz2sxHF2re4wfG5uHDwrAf7T YE0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jnIlgLZ2; 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 sg35-20020a170907a42300b0072b3a923e6csi2313466ejc.974.2022.07.13.11.16.45; Wed, 13 Jul 2022 11:17:11 -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=jnIlgLZ2; 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 S235976AbiGMRvf (ORCPT + 99 others); Wed, 13 Jul 2022 13:51:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229795AbiGMRvc (ORCPT ); Wed, 13 Jul 2022 13:51:32 -0400 Received: from mail-yb1-xb2f.google.com (mail-yb1-xb2f.google.com [IPv6:2607:f8b0:4864:20::b2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0068A2D1C0; Wed, 13 Jul 2022 10:51:31 -0700 (PDT) Received: by mail-yb1-xb2f.google.com with SMTP id r3so20522820ybr.6; Wed, 13 Jul 2022 10:51:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Yvxn6S29978hI/T6QCXVM0v4iM3QSPq55Yrl5aDYI6c=; b=jnIlgLZ2fiKVP4qOrCjnBx+br4vJ+AmDf+BbxMlEqjvFesMThRdGWab3fDiIvvn2mB CmBxUOCxy2LqsH2wGXitO5Lfd/xlKrNOJ4OOQk0CvE/4662285ihChr5BOeODFoM0Djj TE1cAwEZU6cGC1W/hAkA24xyIRtxr7behpzhdScSTAeWzsJV1sS6Jx8NNufcYoq63jKO pGMki2J1eHtPAzKT4giZiZsud0sWt3ExHfRjMt0lCsErtHjFsp6AGxka7B8AOPetDhgd 7YUl2ki7MQVY5/xeiiIRbA7zz3FECmqWo801qtV5C6QC7rpc1fmgRNLwBRzUUndQdpYi sAbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Yvxn6S29978hI/T6QCXVM0v4iM3QSPq55Yrl5aDYI6c=; b=WNXo4iJN85IHgaDmDtwrD9mVZID/3ioFpFiasBQAg/d77jodd+4AJ4rmGZxRWmdihF X82oCDfQXnEfY8hWuTV9K+7cPYg1qB9OoZZerr9eoEaTrRNJUqyERXr0chYrC5xgJr1L UlvNyOKNOlpXWl8dskAyt6dUhuAAspfOW9uFSwvWtYTALJjfmLQywiO1MAm+jVvsgQtu SS6GkvMYeQaU64Uh3kcfbXjgYBp0C6UGDygV7aZfX2KCIvn7nXhM7gsxHWowdbtR8gsb Jv+TOevDP/sjqNhFIAJCGE3+sitYz06NB6ffykUFLqgzb3ROGZXTKurmeY0FZxFpCObT 8UYA== X-Gm-Message-State: AJIora/E9ZHD6voTIIR6s45WvbXi94neLwhsF3GqlqWHVuiFWzrbU6o9 yHT05cLUAMdDzvFAk43+/sKXQdkU5pwLwMtIg+f6aPovQkWwgg== X-Received: by 2002:a25:df97:0:b0:66f:6e7c:b3c0 with SMTP id w145-20020a25df97000000b0066f6e7cb3c0mr4738839ybg.93.1657734690911; Wed, 13 Jul 2022 10:51:30 -0700 (PDT) MIME-Version: 1.0 References: <20220713105910.931983-1-lewis.hanly@microchip.com> <20220713105910.931983-2-lewis.hanly@microchip.com> In-Reply-To: From: Andy Shevchenko Date: Wed, 13 Jul 2022 19:50:54 +0200 Message-ID: Subject: Re: [PATCH v2 1/1] gpio: mpfs: add polarfire soc gpio support To: Conor.Dooley@microchip.com Cc: Lewis.Hanly@microchip.com, "open list:GPIO SUBSYSTEM" , linux-riscv , Linus Walleij , Bartosz Golaszewski , Linux Kernel Mailing List , Palmer Dabbelt , Marc Zyngier , 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,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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, Jul 13, 2022 at 7:44 PM wrote: > On 13/07/2022 12:59, Andy Shevchenko wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe ... > >> +#define BYTE_BOUNDARY 0x04 > > > > Without namespace? > > Does byte_boundary even need to be defined? > is incrementing an address by 0x4 not kinda obvious on its own > as to what it is doing? The less magic is the better. Btw, have you considered gpio-regmap? Can it be utilized here? -- With Best Regards, Andy Shevchenko