Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1456234pxv; Fri, 23 Jul 2021 08:44:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwo8ddqV7OdNxj2vA2el5th3t3TK86LjH/XWLvDU4f694lJRAO/NMhU9EDqq20HZtJ47h9A X-Received: by 2002:a5d:8b85:: with SMTP id p5mr4368777iol.43.1627055041173; Fri, 23 Jul 2021 08:44:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627055041; cv=none; d=google.com; s=arc-20160816; b=TU9Huhw2k2Hmr04JeMaVweZEayJFjAqsEYU9MFdJZkHFH0hy4/7q4uVkFEr5/AAYUb TDXJefphr893UJITLu/p2YX/N0gCGO2GmYZajYUBsvcMJKGDA77tXR8BLrSZA2W16kC8 brHqId+zU4V7rqc70QndG8qZbXCb/i7UkNQm40FxWKSa1PJ0hDEnPTTfOiE7Wxn5bbHA KXD87yVugTlg3VTjmrFqvQ8Np/1iiLOm8XyQqGFE36UIBhmUzuqFR3d+smA8Yn3lIgxL dnXkus20MeQLTm5nKVs6a9JUa7woTJx7LBUBVcirVP1c/hq426t9dFD770SRxpoIWq5P MxkQ== 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=O/f1g+Bd2m3qWx8HKI2UdTdvCSkFMuvtajEPkZseSXo=; b=ktxrvmgmMYVifhIzraYr2LCtT0olVTuI9Dq3FMhNoPE+6CPYSD648GbFtV5ghtPy/g blY9pwbEepUjE5iLmru8U2x1UPnmVNxSC2CW8vhU+F8H+lvlAGH08V8GRvtC4nO1zILe BxN59RjfsN2yegYW5PUscyJsvMDTlu9msv26WXj468/UDWKTTmH+vm0nWGeZWRqVcD1y ZhBwHxqwqJUvMgR8w7D0xpedVRFXWtqLJ7oVW3nx4/HaRHgTq+GbN+WtRNdxe4W2qxOf JVPRUQ+ZCEsBXMrawb6WlLRy0uUdxVxAx7KPa0zMi3H9jKiOgviYL7rH3ihVaXWds1wX SrbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P9WIEoot; 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 g17si32130839jaq.116.2021.07.23.08.43.49; Fri, 23 Jul 2021 08:44:01 -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=P9WIEoot; 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 S235579AbhGWPC0 (ORCPT + 99 others); Fri, 23 Jul 2021 11:02:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235472AbhGWPCZ (ORCPT ); Fri, 23 Jul 2021 11:02:25 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91FC5C061757 for ; Fri, 23 Jul 2021 08:42:58 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id q2so2226603ljq.5 for ; Fri, 23 Jul 2021 08:42:58 -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=O/f1g+Bd2m3qWx8HKI2UdTdvCSkFMuvtajEPkZseSXo=; b=P9WIEootakX6Goscgqro+lI7BeHd2NnvAGsPf77p8dHmtnMv5PdY+XquMleRjOo0en N8dQ9HMTolWKMbRpxmESYskXGStw0BdpZAQsqoXuhmojOIhJ53Sf6uQcQjQ9tG2RLPTZ DK4DQ5uJCDdpcyd+LAgvJ7+wh7S2b3FoMzV0i+2QMBVGLRM+mOsqIeADs/3lkS4+z1+A 99y88jczDL0H+qZ3diqcU528DJKCL2eP/9ale4Sv7vMfvEd7WnL0y/xqtS6t8elZqsEY MN5cWFh21q1qmIBNQNsH8VgYf4mbUd/8wEympPPSlUh8I046ULUvC167RulQd0mVko7O jnTQ== 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=O/f1g+Bd2m3qWx8HKI2UdTdvCSkFMuvtajEPkZseSXo=; b=XLW3b6gY9irzNXsDc2YsCM89IYA7kxiIGABA46ifdrh7ae7nzizwJILQxTmM/O7RHQ pZ2+XWnrTvEyZs6bA5YSnYormqbhK2r1KtEFjElyQnqiVmRTEQCC9ZQ0ffvDgYVjDTSt yZfzKJ1dX2+/iANRc1Z2ZYWDUMBoA2ahJ99QJNm6MPqF74pVPZnnsCnCngwORyVqhFdJ XWVmPQH69baqRiW+JDqKhBgaaWeNjdHEce0H48Wvor764z3wV/lvBdeH5L8HXevugT4r h3K5fy7R+3YXajO1ggUHpbOvc93ChMKP0bVdxZB7B9SINUldr3OmoRsP0/k0bvzIetHk c30w== X-Gm-Message-State: AOAM533dVOAggxM/55GthtAokY7Eda+BIsrqM70QiJ8e/UuTGlyaBq53 RWVi858Vi/j3bzIvHrpsBeSdUzcPqa4NNqtoe2G8Nw== X-Received: by 2002:a05:651c:169a:: with SMTP id bd26mr3717379ljb.368.1627054976984; Fri, 23 Jul 2021 08:42:56 -0700 (PDT) MIME-Version: 1.0 References: <20210701080955.2660294-1-hsinyi@chromium.org> In-Reply-To: <20210701080955.2660294-1-hsinyi@chromium.org> From: Linus Walleij Date: Fri, 23 Jul 2021 17:42:46 +0200 Message-ID: Subject: Re: [PATCH v2] pinctrl: mediatek: Fix fallback behavior for bias_set_combo To: Hsin-Yi Wang Cc: Sean Wang , Zhiyong Tao , Matthias Brugger , "moderated list:ARM/Mediatek SoC support" , "open list:GPIO SUBSYSTEM" , Linux ARM , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Hsin-Yi, On Thu, Jul 1, 2021 at 10:10 AM 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 > --- > v2: fix v1 comments Thanks for fixing this up so nicely, great work. Patch applied for fixes! Yours, Linus Walleij