Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp726855ybl; Wed, 8 Jan 2020 04:57:32 -0800 (PST) X-Google-Smtp-Source: APXvYqxubvYZ0/tCHzFGePoNKDaUcIX9H0QHMwWPaaAWILuMi4mN/+RI52slj3cSd1YNh+JlmY1S X-Received: by 2002:a9d:7d09:: with SMTP id v9mr4223193otn.338.1578488252668; Wed, 08 Jan 2020 04:57:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578488252; cv=none; d=google.com; s=arc-20160816; b=EByMtNABt0oPHTOqI77mInnzTBpo6oUBshw/5oxfBBPiJslps94tAZ14avBZprK6Fk NLZngWVi7Vw8Qg47utokz7qUM8nhtpJEYino32V214124A+7QD0s0vtOeeqtl28Ig7kL NfPJjdZCO/5N2MQkPL1TcNV71ABIAXXHrecR24edqk0pa5Y0zFz7MoQM3MzQOj19cuSw k0eslTXO6F5KVy6lt5ENcV4H22PIRNpABB6aBqt9DgZmF969i5Hp8T++9TurOBty+kDW nrvvtqyf+vMJ01e0Ws1Eb8arcrhHkUr+mU1Bq4ULxwdlhskt4dae0biSJTK/oHM1///3 oRsA== 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=1fi/fDDjeP/w31P1XgOwqFMDo56O99pCAi7DUbNxiWw=; b=wVRCVVA0H+VNVxac06RBGkkUMx5beK3LV4S1c34HP7zQXmZ+X9CbSIhuPUEep4qwKS AiBuRVLz8rXqT8/7d6jbrhKuahaqjK8d/AVQFqOWfV51Qg8wyekfTeuqVmHr1KH/CLfd YtyK2vBZqNjTpz2mWGpbRi7D18vUbs9a4BBRIfYYr4oRE/zqJQixOyzsokUfs4e0bZL4 SS8PJRMrqja+7/YAtFXafltclZvE/BFkpXz2i0QTHNxhvucbX3MfT9zkzSX68cv24V+0 bFtQBWzzzHqbq3m5+/+1SCuwoSmMKYCe8zo+QKUICfF6dLHxeMkRzTkkzRGgCRfotx0o rAjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="r/5T5aJW"; 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 d21si1666087oic.168.2020.01.08.04.57.20; Wed, 08 Jan 2020 04:57:32 -0800 (PST) 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="r/5T5aJW"; 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 S1726947AbgAHL1l (ORCPT + 99 others); Wed, 8 Jan 2020 06:27:41 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:29186 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726098AbgAHL1k (ORCPT ); Wed, 8 Jan 2020 06:27:40 -0500 X-UUID: c02c473c9be144d299865735663f90f0-20200108 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=1fi/fDDjeP/w31P1XgOwqFMDo56O99pCAi7DUbNxiWw=; b=r/5T5aJWB59LTnEkYNHmW6r5/rlvodqYKmJvWZ4DBmfbXvx14YA6w2sXfrmVK8ed2rNBb71n4uE6EsfTWVEcJ6ZQ6QtBU2082sqAjE1Y5YiuVINjsR4frij6u3q7guy1Qqjk/Fzt8kjYs4tqeeDjb9mSGU0a+MZtdBvA+8tYJ64=; X-UUID: c02c473c9be144d299865735663f90f0-20200108 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1577135201; Wed, 08 Jan 2020 19:27:36 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 8 Jan 2020 19:28:10 +0800 Received: from [172.21.77.33] (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 8 Jan 2020 19:25:57 +0800 Message-ID: <1578482850.7554.18.camel@mtkswgap22> Subject: Re: [PATCH v2 05/11] pinctrl: mediatek: avoid virtual gpio trying to set reg From: Hanks Chen To: Linus Walleij CC: Rob Herring , CC Hwang , , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Stephen Boyd , Sean Wang , Loda Chou , "linux-kernel@vger.kernel.org" , Marc Zyngier , "Mars Cheng" , mtk01761 , Matthias Brugger , "moderated list:ARM/Mediatek SoC support" , linux-clk Date: Wed, 8 Jan 2020 19:27:30 +0800 In-Reply-To: References: <1566206502-4347-1-git-send-email-mars.cheng@mediatek.com> <1566206502-4347-6-git-send-email-mars.cheng@mediatek.com> <1577022724.7468.20.camel@mtkswgap22> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 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 T24gVHVlLCAyMDIwLTAxLTA3IGF0IDExOjI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