Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp320746pxj; Fri, 28 May 2021 04:58:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzu/zoC8zY3JE05e1YsHCVgw/o3lhwxGwJb8PafsFZHn+koTxgSEGRJCkKuvWo/FgrAgH+y X-Received: by 2002:a17:907:20ce:: with SMTP id qq14mr8409087ejb.35.1622203104415; Fri, 28 May 2021 04:58:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622203104; cv=none; d=google.com; s=arc-20160816; b=OSPKc2onOj0cdcCxP77oC16I5c8/N62aBSEYltoIFbCMbaMNCAIsejF93xA0Y/DkJA dcFxOyU8fFIjdwqgVR4cRJ+2+ehxuBGm03fKJW50832Mp7Ata16wNj417ezMYHIP3IJN DtvXLGyXe734fhjM4GVrStXQfRw0Oc0rZfV8cAEO66dRRMfiS8wJSxpRElPjQ9hwantZ otcOnMd+WKkaN/HPoR0jZFUfn7QLGJ7/KSe3N7Md+354nzzAXqkXXagfhKh8LbPjuyTK i3PUOkgLEFMrApH/wkrG32dmv3wHIgr6HxtjgjWKLuD1wBTcupHzQh34jwl2iDKwZxbq DLOQ== 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=9NyLm4M6sno3u68FwAJ1r8D39ashG0coxPAL+2ytbo8=; b=E4WchBw88VxcZtcGquoPYEIqY2aAvi1omN+jfQLdmB96Wz4RiFkw7jRNTW2NuZ2efV uKOWQQaHfIQb/6bm32d03UP9EALroCwo4b1f6yEmvbkOFWXo5fI8FqrROJ45G4KqWV1a d9WcrKLLAOjJu3ew7sS5gNz/vp8eBIrXR+myjnRFU9J0MRw41deSM4H/eIxtQM02EtRs 7RcaiBxe6gyr5zOr6DyO+Nxan5uy155bflS86WVo47DGexARl1EMCwr3fzwVMbP3Sdt0 goWGG0T8UmDXnpHdn2xMffzBKtShN9cjlfrS4PaCZ5P8txHXkQHjnnSVyt4kcYO4W4bH ZmFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=m3KjY1b2; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a15si5342360edr.192.2021.05.28.04.58.00; Fri, 28 May 2021 04:58:24 -0700 (PDT) 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=@linaro.org header.s=google header.b=m3KjY1b2; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235564AbhE1JWV (ORCPT + 99 others); Fri, 28 May 2021 05:22:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233521AbhE1JWV (ORCPT ); Fri, 28 May 2021 05:22:21 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98A31C061574 for ; Fri, 28 May 2021 02:20:46 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id o8so4451909ljp.0 for ; Fri, 28 May 2021 02:20:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9NyLm4M6sno3u68FwAJ1r8D39ashG0coxPAL+2ytbo8=; b=m3KjY1b2H8lewGLvYfwdijyr0kT3Wu1LNZP93AXyhqs4bkCFph4GD0igddPrB5cwtJ SLE8Z0Hj94599O30PbmqxaWGcDKwpl8evubGvvvDUo9qnFujjaHmzdEyVbVJGsAT9g23 06hlKbVRew3zE4IWYQxfbqY5/yf+h889FoOBQqzqS2DDJlYqqed2ErBfg1e2FRQMj1BU 3sCl43FNTZ/cWgLdzbSnCyVGjLytnIrwWAYZDB3jOEZZF7wbL7VH5XoWnkIcWlSil00x WYVF1NimFto7/MwtV39GJ9iW9GCP7v/zxWwpJ900USlaLozoL38IpIVS2PdswG5uS+W8 +q2w== 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; bh=9NyLm4M6sno3u68FwAJ1r8D39ashG0coxPAL+2ytbo8=; b=q855h/MmsKvB9AYCx40dpEl6ghnMwJvIOgzVhLxXuAC05SIYE5uPSrrbF84Jpg6WAU MaB2vedT6BoHxgKFNqR86Sn08mVxv9o7oUUDCdl4rsPgRxtzZhBo99cyYG0AvQs2xeu8 h3EUmQ2pxPggQ8Z9HWsI4RYpq7X2lpHFczV42B7OY+RwB6ztguL1qX8kaq0zIYHO5ZbY 0ISTUC/N1W/1+iLvPDHSvIFe0Jn6xmG/4ECUpl6djDK/pn+aB2/fhPCdIfdBhOIkwtnp VrUwsBLxdZulsKKB0aKPaRpTphRvRCe1KE6Ww/qKjGQpJJMQun/NdPVFenuPosqGbyrg oPlw== X-Gm-Message-State: AOAM531fLaYETJeU5nNK5ZihQNzIou5BItx7/EODdjoJCdpQTWaXiTHu Wafgp1WC5bhx/vYHViWfLSa0b+u10yZyENoYmmXDPw== X-Received: by 2002:a05:651c:4c6:: with SMTP id e6mr5831209lji.326.1622193644998; Fri, 28 May 2021 02:20:44 -0700 (PDT) MIME-Version: 1.0 References: <20210519162409.3755679-1-fparent@baylibre.com> <20210519162409.3755679-2-fparent@baylibre.com> In-Reply-To: From: Linus Walleij Date: Fri, 28 May 2021 11:20:33 +0200 Message-ID: Subject: Re: [PATCH 2/3] pinctrl: mediatek: don't hardcode mode encoding in common code To: Fabien Parent Cc: Sean Wang , Matthias Brugger , Mattijs Korpershoek , "moderated list:ARM/Mediatek SoC support" , "open list:GPIO SUBSYSTEM" , linux-kernel , Linux ARM Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 28, 2021 at 11:11 AM Fabien Parent wrote: > - bit = BIT(pin & 0xf); > + bit = BIT(offset & pctl->devdata->mode_mask); > > I should not have replaced 'pin' by 'offset' here. What do you > recommend me to do here, shall I send a V2 of this series and you will > drop my V1 from your tree, or do you want me to make a new patch that > fixes the error created by this patch? I just made the small patch myself, it's faster. Sending it out as we speak. Yours, Linus Walleij