Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp418920ybb; Wed, 25 Mar 2020 02:23:17 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuza7KmjauNSPBqQK09k7pA9mzMbpFl9DiRy6+d81n3O1zbPzugMO4xq2CIikNyZqMF85QT X-Received: by 2002:aca:c608:: with SMTP id w8mr1806647oif.163.1585128197129; Wed, 25 Mar 2020 02:23:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585128197; cv=none; d=google.com; s=arc-20160816; b=Nub1Oh0WahIf1X9bTDXNQOl4LtntQoq2rJS1NFz96FBA2duB2Jsd3etdlF3fUlHSvF CDYy2d+RE7B2zuTimbqid60cOmMtLX/4aDgIBv+bzFtBbnJ10X+nJe6mKcHGwoLKFRGt LE7xu7uFrLFo/4T9PU4BDYXiqflm0rPT+81Q/fp6obBU14gZPoMOv6DgHPDM/zvNfVYp I1p9ffPldzQLV+S/3y1q97AI1yFC/KAzcAGKYDcU3BlP21QjBjjKLdPPUeNZ3+Phsizf tcevy1OguKK9f1tUIiJSpReTD5IwZvycmqHJt+RLDUMuc1sOPAeHWpd7/9/7eK1cpUAq T03A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=BVyTHhelUjx59FjyxWQdpVbGtCVCGjT0t0rY/9a/ceg=; b=Bgi+BmhJ4FNgm9um3o5qZKwjpTJKx5vYeK3rkXTXhoyPBkO0ZKmrvgBpMkTtC3iNxV lq/c6j8F1Z95Mw/rMz95W3WsrBFH2Dezvm80kT+rMkRZRb0oh7L88pEeh+XukZ5ilFwh axK7PbYwcc0kdiW3g69K2bgM2dJIDN3OCH7CFJT1B2oXDvysf4rbIgZyWTDO5nfLrIlQ fjYFNIev4rhEhxJvXZajnA0rVkC5N2YOF5QG3HDVgxqGz+kD/1nDiD7BBgJ9ZygF0H/+ aLQDRE8HHbSoF8GRyHJgtJuHtG0wgOziOEWtv6ezyXjUI4Q9uF7E7g4Z/LHKDeckLblL 29EA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Yg1qvMxP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 89si835657otr.256.2020.03.25.02.23.04; Wed, 25 Mar 2020 02:23:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Yg1qvMxP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726239AbgCYJWe (ORCPT + 99 others); Wed, 25 Mar 2020 05:22:34 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:56353 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725907AbgCYJWe (ORCPT ); Wed, 25 Mar 2020 05:22:34 -0400 X-UUID: b76f619bb6e049fc9be921327f75bc92-20200325 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=BVyTHhelUjx59FjyxWQdpVbGtCVCGjT0t0rY/9a/ceg=; b=Yg1qvMxPnQhw33GbmLfbB9dTN00UUkRGXdhqb8HRojugEDEWgnpVwZgZIUS5Xct0/xypCoWJyuT0YyTUQxmqCatwBt4xqWeTr2+8ElGTWw5Bt2yJV+RhcZx4Mg5/RcqrnYXpEqQDAtdmyljEVz2YU+XFXR4eW5PsbZVzV/6M0Gk=; X-UUID: b76f619bb6e049fc9be921327f75bc92-20200325 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1257327960; Wed, 25 Mar 2020 17:22:24 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 25 Mar 2020 17:22:22 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 25 Mar 2020 17:22:22 +0800 Message-ID: <1585128143.18052.3.camel@mtksdaap41> Subject: Re: [PATCH v4 3/6] pinctrl: mediatek: avoid virtual gpio trying to set reg From: Yingjoe Chen To: Hanks Chen CC: Linus Walleij , Rob Herring , Mark Rutland , "Matthias Brugger" , Sean Wang , , , Andy Teng , , , Mars Cheng Date: Wed, 25 Mar 2020 17:22:23 +0800 In-Reply-To: <1585123964-10791-4-git-send-email-hanks.chen@mediatek.com> References: <1585123964-10791-1-git-send-email-hanks.chen@mediatek.com> <1585123964-10791-4-git-send-email-hanks.chen@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gV2VkLCAyMDIwLTAzLTI1IGF0IDE2OjEyICswODAwLCBIYW5rcyBDaGVuIHdyb3RlOg0KPiBm b3IgdmlydHVhbCBncG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