Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp449950pxv; Thu, 1 Jul 2021 01:43:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCT7G/I2y8QeuewUlnV4cGrQ9Ud3JJuDJq/u2PJ5O64J3Rm5cnuKX6JIzIw8oDX1A/ba2s X-Received: by 2002:a17:907:94d4:: with SMTP id dn20mr3421035ejc.93.1625128990136; Thu, 01 Jul 2021 01:43:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625128990; cv=none; d=google.com; s=arc-20160816; b=cUBgKAkeAqq+PwpE3oY/S8kN6oT8nTB3C72OilzbdY3C1ZJ3/Dws/MNm9xGpMMZun2 fUWhZhu2KddjgBP8T/O8YfcYlNFp25QJC28Z3iJ+rg5HBWp32s5ARitjqu9d8PQ+ehaG lBauYJquHTz+5biIB4Se93XRwBFSkWw6XQEUCe+qdAW5qSsbRhaxPb3NxpqoXO1ItunH 0TJedIRCnZoix+2iGblWrsjbswlErCidg/eus+ZIFW0cAzP0vHAWCQSppUNOHuzAHa4O Kmt52vJw4rBiRaYG+UGklqcezOpvctcWp3jx0Rzqes6DGQgNG5+t8jBpSK/mZvOwBdWA yZ3w== 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=94oP0rsAT+ayytaK2fzZltuXE6U/Q4mr4HlOcI5ZZUc=; b=NUmfz4AHb0g0mfdaCyHpIZna5G3wMkL8yNlJAnXyxN9MDJDwbAhgHioj/Lw+U8o3gL lN9WdXN9t68lS+D5bNOGgoyFxn5midD3lyxYMfD3D3bTjVm+zDvYPpnueTnQP2XXltSl fU61qcfSPaJKdh4nu0QHe4oC3mTKixlMi3yx4KCCSLRFOtySxsvmjhE+cz+t26/lJ15r mtdmJZ0PG26CNSEww+c504MkpX+uHoBzfgqaQYltnmZL3PKTb8zjZG21JCWE5egFyv6R /tHBBSFedtSNTqUq0yY3eKkkmmGaDn8TrpyzUHT28WQwV4gPjm5reK63PnALRsy1aUWN V3vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IYfWYr+L; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f25si22266390edu.543.2021.07.01.01.42.46; Thu, 01 Jul 2021 01:43:10 -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=@chromium.org header.s=google header.b=IYfWYr+L; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235088AbhGAIno (ORCPT + 99 others); Thu, 1 Jul 2021 04:43:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235356AbhGAInn (ORCPT ); Thu, 1 Jul 2021 04:43:43 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BF51C0617A8 for ; Thu, 1 Jul 2021 01:41:13 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id w11so7414101ljh.0 for ; Thu, 01 Jul 2021 01:41:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=94oP0rsAT+ayytaK2fzZltuXE6U/Q4mr4HlOcI5ZZUc=; b=IYfWYr+Ll1UHRSBEQLgPnx0M/OFTM1LsCjadsw0+P1P68+KYnrpVzB9D0/zTj9eTDY n1sST4eb5nWLIAUz/KUoAO7T9Rz22Xb4TEvo8pHlUXDZhtrw9kF4ndiBAHSvYuo3qjyi qeoha0gJyPVepVX2k8QfzsjvcJFw0paxkGH4g= 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=94oP0rsAT+ayytaK2fzZltuXE6U/Q4mr4HlOcI5ZZUc=; b=ir/5mfjKWOqrcKztzffqxVetpRsXNxIDHlyQExhB5fEPX1OF5k+Jm1DXlxOPfT/vlZ w8+QeGzjtJJO+NSGaFi6806Td6+fIM4iqokdPKk6BXgwNn6K0rmDl5Xvv40g2SkG2yWT kVAAXU+bKHxX3WKCt80XUZMANYVYNWILb+kZcgPSPdvy4eLjpziaJI8u69XmPQoiSndn AJoOL+khrg9tiVNG8wQkowCyi4+h3Mb1wbulAK8Elu3nx5KNT4c9HbRcKOptOPshmY+W 4tFJgk3TUV6QExQQeT7ZZbAm+3jrI7Zcy8+dctdbnYx8VcEcW2EFGwOGlp8+M2MrVYPP 16EA== X-Gm-Message-State: AOAM530GVHjjKBC9mQrOmzHOftwuCRAh0JeqB066XEtB0GeFooyXzmE1 OA157DtUTR7WmLRVkHm77SCRFWRXt8Z7BZRzYq1Qgw== X-Received: by 2002:a05:651c:32e:: with SMTP id b14mr11049376ljp.251.1625128871805; Thu, 01 Jul 2021 01:41:11 -0700 (PDT) MIME-Version: 1.0 References: <20210701080955.2660294-1-hsinyi@chromium.org> In-Reply-To: <20210701080955.2660294-1-hsinyi@chromium.org> From: Chen-Yu Tsai Date: Thu, 1 Jul 2021 16:41:01 +0800 Message-ID: Subject: Re: [PATCH v2] pinctrl: mediatek: Fix fallback behavior for bias_set_combo To: Hsin-Yi Wang Cc: Sean Wang , Linus Walleij , zhiyong.tao@mediatek.com, Matthias Brugger , linux-mediatek@lists.infradead.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 1, 2021 at 4:10 PM Hsin-Yi Wang wrote: > > Some pin doesn't support PUPD register, if it fails and fallbacks with > bias_set_combo case, it will call mtk_pinconf_bias_set_pupd_r1_r0() to > modify the PUPD pin again. > > Since the general bias set are either PU/PD or PULLSEL/PULLEN, try > bias_set or bias_set_rev1 for the other fallback case. If the pin > doesn't support neither PU/PD nor PULLSEL/PULLEN, it will return > -ENOTSUPP. > > Fixes: 81bd1579b43e ("pinctrl: mediatek: Fix fallback call path") > Signed-off-by: Hsin-Yi Wang Reviewed-by: Chen-Yu Tsai