Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1086059pxk; Fri, 25 Sep 2020 06:01:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyPWgX2R0yKbkbpKxCTDQtMdmD0ceBFkrldckGua/3Qo2khkB+bCGYP/rw1AY2uPYznQRY X-Received: by 2002:a05:6402:6c1:: with SMTP id n1mr1172135edy.215.1601038887291; Fri, 25 Sep 2020 06:01:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601038887; cv=none; d=google.com; s=arc-20160816; b=o2lYT+Y47H5+eu57jnqBeJ+F3J7yUBfxAnbtyP/ciXjY5Chd0LIkOwcySgD/LT1BTC ejhJyj4foXoxRkyOIiH0kWBd8Bhb4FsJNp1KiSidssMA6WQAp6cLKmXLDhTZvs+cHgDN 8cQVFRWV3uXp2YhWiWgyr0gOHv+LC4MDUak8yd1j79XwLFe/XZEWyRX4GM8dDCj43bCb GOF3IcQolRo4m1D7wp0Yz2hhhk8xDOGWNcTR7NupY+zFQBGgB8lKVMPXPQbfBxP6sEpz mMC24ZPSRG0EvOhDZ5vd29wNuryijQ8QpMJQhi1nCPYh/RMN7M0C/eHP3uu0DF3gwrSz c3gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=KDuRXITI29rGTc4me2UihJK6MXBboba2ogqxBZTeDyM=; b=qPj6EOQa7S/nK2OmfeW92MgasobIuYLmSh1wJsmPNjR1UPdF1Xr6NnqHaRx331su9Q gYiSSbGGRP3rCCE1hCPA57lKlCh2h1rwzlf6CRRtkVPJZF6NPsScwbS26RmDFjtnFkXY m2C2qyjW/GgZoHxgP4JY538wdlaOC5LhyTgjibTVd8lED5IqTo6fPsLQK6endnZYCNgk x4xWA6ns/CaR/2wnLtbr1oBmZND/lDkoKKFJu/Z4NqozOGARnKhvSYD6fFyQDoJfGoQ+ 2l1eWNMcoxA2RexbxjCeAK0hiGhkQSifvKiiAhICQeWkB0+6B/4xhr9/+eP+MyHPI557 Bj1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=LZbanRdg; 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=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m15si1701991ejg.633.2020.09.25.06.01.02; Fri, 25 Sep 2020 06:01:27 -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=@mediatek.com header.s=dk header.b=LZbanRdg; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729172AbgIYMvL (ORCPT + 99 others); Fri, 25 Sep 2020 08:51:11 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:40893 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729140AbgIYMvF (ORCPT ); Fri, 25 Sep 2020 08:51:05 -0400 X-UUID: a07de3bf1ad3412e90aebe65da80587d-20200925 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=KDuRXITI29rGTc4me2UihJK6MXBboba2ogqxBZTeDyM=; b=LZbanRdgaV82/7Bm21yNV4GUuvSVDezPoBuqTKvak+GfrPzd5UCTqI3Iy2rOEaW7Bas1omTEmpDW0O+B2fM8iSf4edvA1OU02/QONOhwdyONorrelxdMYbe/cemOtaOVEIZGTJXq/Gbgb1lAK1TUxsiSas6hU+zgLwkEUWgKOkw=; X-UUID: a07de3bf1ad3412e90aebe65da80587d-20200925 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 231553404; Fri, 25 Sep 2020 20:51:00 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 25 Sep 2020 20:50:58 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 25 Sep 2020 20:50:57 +0800 Message-ID: <1601038258.15065.4.camel@mtkswgap22> Subject: Re: [PATCH v2] pinctrl: mediatek: check mtk_is_virt_gpio input parameter From: Hanks Chen To: Sean Wang , Matthias Brugger , Linus Walleij CC: Linus Walleij , Matthias Brugger , , , , , CC Hwang , sin_jieyang Date: Fri, 25 Sep 2020 20:50:58 +0800 In-Reply-To: <1597922546-29633-1-git-send-email-hanks.chen@mediatek.com> References: <1597922546-29633-1-git-send-email-hanks.chen@mediatek.com> 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgU2VhbiAmIExpbnV4ICYgTWF0dGhpYXMsDQoNClBsZWFzZSBraW5kbHkgbGV0IG1lIGtub3cg eW91ciBjb21tZW50cyBhYm91dCB0aGlzIGZpeGVzIHBhdGNoLg0KVGhhbmtzDQoNClJlZ2FyZHMs DQpIYW5rcw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