Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1322198pxb; Thu, 4 Mar 2021 08:28:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxz/CV5OSOoCImUQQscxcuA9SwP8qeRxmZSzBNU127r9jtF4qJNeKLya6ebznvL5CT62wNJ X-Received: by 2002:a17:906:1a44:: with SMTP id j4mr5194906ejf.401.1614875323752; Thu, 04 Mar 2021 08:28:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614875323; cv=none; d=google.com; s=arc-20160816; b=RuD9exTjr/KWTMK60gPR14UQ9KfAIFo0rrU6iK6P3zCDFfAsqNO1d7IyPzyz3aLG+H 0VRCCSJKzX9fS34afmQ2r1opdwDu4vOYzZoBsld5I13k5WfyO44muOPxArsMY7iCXvJV BKsBNFZVdAKtf4IALEdam4rXRB0IaH/U7PG0Cog96GkKwJG7Dg/ICUEXQyXNljKsxXBf LMnMRHph2VWUKEcwHjCxRxqzpSeEmJ6fLurzkyor8MUgfMBBsQJ2a99PYIFBzWvzR+HH feEoKYZngAlL0/UHGcdOO1CmCCz7aP55AgsaCoRuwVweZhac/ZJf/2Nlyb3+aiZIwGR0 tuXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=FoGsnOzXi7H9nz19W/bgb/1Kxx0meiyadtP/QvxkNiA=; b=F/+zQtJs0P+PwESIkiewtPM70Ry/NBUDyBiUzpSJXOgD58vYWDYgB3JGt24jasBrZj jC3e3VWPWSaLZhIv0npIhekoLLzsYV3WOVnX++Phq31r3yOcKOaTw4h2gv8Vu9esISRR cANLrtJAqllBXqPuIDNuYZTtYxnGTNEAliGff+dc4mJ9heR/uYpb/P/Vcgf+bHRHscfX XMflmF6i9ks26jJ/W0W6arpKFZhf+mnBUt8KzqrbFWV4c2SWvxcDq86pJuHZ7stn8fLN tv+/MWrt+28S5Pp93tacG1kDWZLFZcGXX8NFEI1JxoPlNNg7KqwsGnNdgfxE4iBWBRUu aMDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=n53vzKHX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v2si14890411ejg.251.2021.03.04.08.28.20; Thu, 04 Mar 2021 08:28:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=n53vzKHX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S238924AbhCDKvL (ORCPT + 99 others); Thu, 4 Mar 2021 05:51:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235138AbhCDKup (ORCPT ); Thu, 4 Mar 2021 05:50:45 -0500 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 015C8C061574; Thu, 4 Mar 2021 02:50:05 -0800 (PST) Received: by mail-pf1-x42d.google.com with SMTP id x24so1407880pfn.5; Thu, 04 Mar 2021 02:50:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=FoGsnOzXi7H9nz19W/bgb/1Kxx0meiyadtP/QvxkNiA=; b=n53vzKHXuqPKNk87GMWTNa2nfV96TlDoPYmjDgzqyo8kcAWpEOU6OhiwMfLVeo/qf2 pyjk16yl/13dlOsHu5T3E2PzqDcGryW6gjBTdeA99cZm0dp452DOUH2E84CvTqOSJul9 mPFfdH0ASp/msC5XRsUr0CLBhjO0o6J7dMG8/0X1uTFZdYJX9skqHIIyjFRIteJnQa/S /r5eWnNud0OqXJ3jGdt/96Th4uZDK/NPoTKSjRqVT9fCkw4IVc/eoE4HoCA+Ge37X7ED aKTuI9TdwZddRXhrkVPFbNO4zmy/YPz03Dv6OnJ2mgSySDmjEh6jnHvG1cHqR2mrGvm3 knNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=FoGsnOzXi7H9nz19W/bgb/1Kxx0meiyadtP/QvxkNiA=; b=ShtlVHSOQCsGU7NIKVfN996S3l1Qok5athbKuuxCdVZd5SjpfeHI4nCdjEeX33fs0y 0OuHE+Yu6EXC4LbxemzC5xKnwXNP5FpMODQcQXR1S9e1ErNYoAZfiujV5rH8UxwNS+HK 3KuHRnYy7yOrq04oGt+4UGSKrk8A9N1qvVepAhyklzNfTVPpxtC+F5AzT7txkSDs0PA1 xltWOD6gEXBZ3/bYinV0teDoLObT12vMMyQjYTIIxsbDGvpg0r5DSEBwMgpqkwQ/gyR5 aTXovzGyteHCZFZht/zAxpEMX9w804R7IsjbkS5zYKWT2RMrd8E4ivIGdtZsgIb6ITqI hTIg== X-Gm-Message-State: AOAM532W+v5ZzSN9boaC9gj9koKAWkrtMZrEZNS9zgs/JxCfjEJhvhOO 2QcwT4MSSA5KNE9S2SNg477TSdHKZVFUOHwnVv8= X-Received: by 2002:a62:7c43:0:b029:1ef:20ce:ba36 with SMTP id x64-20020a627c430000b02901ef20ceba36mr2144918pfc.40.1614855004451; Thu, 04 Mar 2021 02:50:04 -0800 (PST) MIME-Version: 1.0 References: <20210304085710.7128-1-noltari@gmail.com> <20210304085710.7128-6-noltari@gmail.com> In-Reply-To: <20210304085710.7128-6-noltari@gmail.com> From: Andy Shevchenko Date: Thu, 4 Mar 2021 12:49:48 +0200 Message-ID: Subject: Re: [PATCH v4 05/15] pinctrl: add a pincontrol driver for BCM6328 To: =?UTF-8?B?w4FsdmFybyBGZXJuw6FuZGV6IFJvamFz?= Cc: Linus Walleij , Rob Herring , Michael Walle , Bartosz Golaszewski , Florian Fainelli , bcm-kernel-feedback-list , Jonas Gorski , Necip Fazil Yildiran , "open list:GPIO SUBSYSTEM" , devicetree , Linux Kernel Mailing List , linux-arm Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 4, 2021 at 10:57 AM =C3=81lvaro Fern=C3=A1ndez Rojas wrote: > > Add a pincontrol driver for BCM6328. BCM628 supports muxing 32 pins as > GPIOs, as LEDs for the integrated LED controller, or various other > functions. Its pincontrol mux registers also control other aspects, like > switching the second USB port between host and device mode. ... > +static inline unsigned int bcm6328_mux_off(unsigned int pin) > +{ > + static const unsigned int bcm6328_mux[] =3D { > + BCM6328_MUX_LO_REG, > + BCM6328_MUX_HI_REG, > + BCM6328_MUX_OTHER_REG When it's not terminator add a comma, otherwise remove a comma. Also, why is it inside a function? It's anyway global and constant. > + }; ... > + regmap_update_bits(pc->regs, bcm6328_mux_off(pin), > + 3UL << ((pin % 16) * 2), 3UL =3D> #define BLABLA GENMASK(1, 0) > + mux << ((pin % 16) * 2)); ... > +static const struct of_device_id bcm6328_pinctrl_match[] =3D { > + { .compatible =3D "brcm,bcm6328-pinctrl", }, > + { }, No comma. > +}; Above comments to all your patches. --=20 With Best Regards, Andy Shevchenko