Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp224764pxj; Fri, 28 May 2021 02:24:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjy5qO0/wavn4+gAUXjNXucNc+LJk6bomcbeuMt3YzaiTLKnxtLIxqeIQTUd3mFeEGwKLW X-Received: by 2002:a02:b90b:: with SMTP id v11mr7642107jan.1.1622193893930; Fri, 28 May 2021 02:24:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622193893; cv=none; d=google.com; s=arc-20160816; b=Ysj1M1DGOYNoI9GpnArSMxicYvl6lRmdn+hJE2AfRjuuLkr5Hol/TYPx/ygHJFiChz rbeci84MYm33IXSy9cpfJ7+yvZdQflgDTwxqrdQ6YzdhFvbuXSnodhV3SdDTAMhbR95x il3CjpexozFoo0jOQtimhMmrrRX/i2Ag4PkAm1pet5veKQk5cZoWZ5XOC+jcVitycBYm wnFuo5Q1xAqTNSq41yAd7qD1ul563ah9IzOYgsikldcSZ08dOCJRMtjw8XMhReWCsTZy 9MTKCwka4n5vsH4+uDzjjyQtVwJKtLEZU3ELiqSSZjfwn6gH6x7XYxIZNVw37jYRGeS/ Vcag== 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=gIUXlVBGOqZPspzkSPyviaBDLyPSaDvhzeC44ewpxPM=; b=Dt/axToHgwTbOXWiIXjigHS5x7MNColeuQ+Lfi+2GGT88wIzFKscIT9p6KfHkPaCDA TzNKcAmJ+ddlQfLaZiHxGqO1qZYOwpFTsA8Hj+Fljfwjq9zmsCZ8vEKoyWYwfKGiMRk5 fkbchqvPLTYHjORw6cfZC3bOwnuLpjyZ07Tq/wgIkFZ8ctdmsWb0JpMjf3w6WESscFF6 WDdAqMtvRZfVWi3B+ZP7guUAAylZ++9s9r8dUyRUMfF1QNMyrmE1entYL0DAF+MIjW6M wv1ASuedhP6EHfneo2Ad91Yjvu5Vm1V3ZCZaAwbN//e1hkCqKX5nNeH5+75Yyz9n43og pr3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=fi5Azr0q; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l23si4571594jas.94.2021.05.28.02.24.41; Fri, 28 May 2021 02:24:53 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=fi5Azr0q; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229950AbhE1JNO (ORCPT + 99 others); Fri, 28 May 2021 05:13:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235031AbhE1JNN (ORCPT ); Fri, 28 May 2021 05:13:13 -0400 Received: from mail-il1-x133.google.com (mail-il1-x133.google.com [IPv6:2607:f8b0:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E60FC061760 for ; Fri, 28 May 2021 02:11:35 -0700 (PDT) Received: by mail-il1-x133.google.com with SMTP id g11so2741127ilq.3 for ; Fri, 28 May 2021 02:11:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gIUXlVBGOqZPspzkSPyviaBDLyPSaDvhzeC44ewpxPM=; b=fi5Azr0qFURaRzo6mc6Hkid9uTMOG5gmKyG1OokAxJyeV9GDgDGWcDbPAzHwGhMCdN OSDz8xznB0MNPzPxAXvV7N90UC2NcBHagcJhMu10gZyG8aSekkerVqLScm+qbMKJ2UhE c5HlSWYrs4dWQv8MknJ+AWxiLPwRe35Wlk+jZfmwKV+XvZJmf6Yjwa4Nx+2VPIKh48oC C+c7+2ljHgtOyOufxWX9eY9GhZzuv0bfyJHXxqrraylx/u8M3sp7aoZ5DlT4QNWEuNWW 64G270cl15PRefcyYTZa03mzWTETxgzhYIKmLM3Jn7QIf6SCRcqM7qtefKDFIb0PV8LW oTqw== 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=gIUXlVBGOqZPspzkSPyviaBDLyPSaDvhzeC44ewpxPM=; b=hRkJGuV/ve2mGCZ7KJq6/mVkVcvh9hhNMlyrq/zZWO5bEghFTHhqzmBQ4SBkDHnBXX ORoBCqT9D6nNhy/9heTWKCaAfn8cooWNVptEAozkXb/QbKmiB0rhdgrNcplSfZAhpGoJ oJvTiyPDLU5jq69BP/YOU7W2bUC5jX8OpLmc3DyAR3jMtc0HO1tkSMI2Akc3VF+a2fsH +w4yVM2pp9fbcWfSWIwEZBhhP0dmPOlzODlSndlHtPYrkLqX46XHYH8YId8lPE1rmGbT 2GxxcMDzJTMhJLeKs4ffL2up9FWQ4bgsadRIYd+M4iQjsiVya+gF61Vmkh/UacPe9cXJ nXhA== X-Gm-Message-State: AOAM533YCLMOQekNTqHFIwThL0yGjzBiZ0CVG9If0MNMs/E+ChaM7zmq yugVxPTWTbBhACQRgVg+kyBzJ8ZR80nQegV1GSPD6Q== X-Received: by 2002:a92:260b:: with SMTP id n11mr6323557ile.134.1622193095281; Fri, 28 May 2021 02:11:35 -0700 (PDT) MIME-Version: 1.0 References: <20210519162409.3755679-1-fparent@baylibre.com> <20210519162409.3755679-2-fparent@baylibre.com> In-Reply-To: From: Fabien Parent Date: Fri, 28 May 2021 11:11:24 +0200 Message-ID: Subject: Re: [PATCH 2/3] pinctrl: mediatek: don't hardcode mode encoding in common code To: Linus Walleij 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 Hi Linus, > Patch applied. I just noticed an error in my patch: @@ -135,7 +134,7 @@ static int mtk_pconf_set_ies_smt(struct mtk_pinctrl *pctl, unsigned pin, pin, pctl->devdata->port_align, value, arg); } - 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? Thanks, Fabien