From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_SANE_2 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 57EF9C11F69 for ; Thu, 1 Jul 2021 11:31:25 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2622861481 for ; Thu, 1 Jul 2021 11:31:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2622861481 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Date:CC:To:From:Subject:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=7YQgOUNhZDVjAYpquYq3L9kMzqfiNG3H3HUP6jxxYdc=; b=k4TZ1xjYq+AiG6 1CfD/n3ocfbrLl5cW0mBIWG+EcrYTRD4vNiG07uNNIgHNNmyzKT4kUyUip0bZ0Q3BwuCR5cFddWXe BtJe9/TDR1npWvlNiPE7+pIix1FWBSQlLOrewyZp7Y91fbZejlRAzh11JRibPlPK5kJWLL0XkHulP UbNqrCw1pn9YRMjMU97Ld+lqe76j0VhFcmfRC+7dIAoTO5H8/eBcdXmZkAJTCu8nRppUwQ61Wjz61 yZRhWPPYKbPvaSOVPDT6BwqoECohFHxMYNyAz5BxCKfN/dqP6tUb9qFXzwHbPWOrdRQ25K+4GI23m 5jfqoPRXogAxVQFqyIDw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lyutA-00H2d2-FP; Thu, 01 Jul 2021 11:29:48 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lyut5-00H2c5-PX; Thu, 01 Jul 2021 11:29:45 +0000 X-UUID: 7ec952e363eb46108e659371e8316cc9-20210701 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=O7mnMgacfM+PDoX+KrXWapm3R0wi39txk8DWCXpl9Ug=; b=N4LsFibUzIlRdkb+LFMyWrUKAVy4VKtoaLFYT+sTIcsUujH1T5GRNwGNZWNWiSygUCpefWVsGi+0fwfIoxJ2XXfxUJm+xFYcroJRQwfLdTEgX1D5FfP3a4H0WfDFGnl06FmRYi3t0zCvmW06A3Xu0T0YYsmAZiQD4gw41/crydE=; X-UUID: 7ec952e363eb46108e659371e8316cc9-20210701 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 327973089; Thu, 01 Jul 2021 04:26:49 -0700 Received: from MTKMBS31N1.mediatek.inc (172.27.4.69) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 1 Jul 2021 04:26:47 -0700 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS31N1.mediatek.inc (172.27.4.69) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 1 Jul 2021 19:26:41 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 1 Jul 2021 19:26:40 +0800 Message-ID: <1625138800.17751.2.camel@mhfsdcap03> Subject: Re: [PATCH v2] pinctrl: mediatek: Fix fallback behavior for bias_set_combo From: zhiyong tao To: Chen-Yu Tsai CC: , Hsin-Yi Wang , Sean Wang , Linus Walleij , "Matthias Brugger" , , , , Date: Thu, 1 Jul 2021 19:26:40 +0800 In-Reply-To: References: <20210701080955.2660294-1-hsinyi@chromium.org> X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: 94021A8371E21F668833002CF2AEE8052927E0CD0813736C787753A19F2D86B22000:8 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210701_042943_874360_5870C2B9 X-CRM114-Status: GOOD ( 12.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, 2021-07-01 at 16:41 +0800, Chen-Yu Tsai wrote: > 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 Reviewed-by: Zhiyong Tao _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel