Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1162010pxa; Thu, 20 Aug 2020 04:23:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwho/9L5tTGT8r7qteaUmpa+RzD61AtvVUAQHcUTbHXZotlvpNLFv0vXwohZH6QnzVGYl8n X-Received: by 2002:a17:906:12c7:: with SMTP id l7mr2739777ejb.306.1597922599754; Thu, 20 Aug 2020 04:23:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597922599; cv=none; d=google.com; s=arc-20160816; b=oJyPCSNzxde/colXRxFAbJ/JxE+JvazR8pkXlEs3WI1QpyjrW6FuNcVDFdssU7+bNZ 8YZC5xCY/1v2txM+K/26umOeJhzW4hqnng3dS53JK3gba13YDsi72EzzvKF5gJ7MB2uo +QOciE8IhSEvZF18a9KnpeVC9F0H8bYzg5CqneOZ8zC814UACbT8WVD76URNgnyUrTYu 0iiTewYKChQQx9bX042VD1gc3xnuICCubV9O0LurkqyG0sdo+WyViP5/qjuKQZBjeqzF +ISAAouvhLf9Aicapyh3j/VlyntMhGK2OLaubqZxMVLWurf1MxNKfobjRS2wb56Cn6Z+ sqBg== 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=ohfEWTwXhQSMstYzm/6OXzB+lRaN+zQdjX8fExzTluA=; b=xAfulgmi0UtrTWSTRXSGqVdLbJKgqGCfY9oy2swEfi2gF78Lw2OSvJtL+Le2m+u850 HmvDBqELZMgIo++s5+lorjIqyvpb1sMjWZHCsL5B2LKhi+gLWUNDBjUQ+mGLA+gemws2 s1JwoYMMIudISlgivf+XB2oxUwotkmkF73Wav9ABtqSymJ+46WKmkDhK58KgJDzPFbtp qUKvMRHIXYxDcwh3/7X6M4/OroOWmuFUa9OB1NblvDgFxCw50TqM97DNlwtcGoLO76AU RJ3EQU0/+UBMvnpyPY9hEPmadL9wOkpiXMD/KsC0lQF+DxqopsBqqA9aLj5m0Z2K33j0 aP9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=R0qJtzBJ; 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 dn21si1203861edb.207.2020.08.20.04.22.55; Thu, 20 Aug 2020 04:23:19 -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=R0qJtzBJ; 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 S1729680AbgHTLWN (ORCPT + 99 others); Thu, 20 Aug 2020 07:22:13 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:59210 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729769AbgHTLV0 (ORCPT ); Thu, 20 Aug 2020 07:21:26 -0400 X-UUID: 580e092745a84891a3507e5f51e90f4c-20200820 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=ohfEWTwXhQSMstYzm/6OXzB+lRaN+zQdjX8fExzTluA=; b=R0qJtzBJ1vc+N8eEPOkeNxSCcZ1m//4Jc3Nf6S3JPSGBeA4C2Mlr/wxtO3VfddFN4Nzw2PISibZ0yQpJ64YKhp2UGPmLdk/r0rAYfGkD4GdCT5m59878o2NL/7esxDe7oOk0gTPOEuVF6tDNPTKFoIG84lFAxWtEVSQnd1kX+RA=; X-UUID: 580e092745a84891a3507e5f51e90f4c-20200820 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 2126183433; Thu, 20 Aug 2020 19:21:11 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 20 Aug 2020 19:21:07 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 20 Aug 2020 19:21:07 +0800 Message-ID: <1597922468.29505.1.camel@mtkswgap22> Subject: Re: [PATCH] pinctrl: mediatek: check mtk_is_virt_gpio input parameter From: Hanks Chen To: Sean Wang CC: Linus Walleij , Matthias Brugger , "moderated list:ARM/Mediatek SoC support" , "open list:GPIO SUBSYSTEM" , linux-arm Mailing List , lkml , CC Hwang , sin_jieyang Date: Thu, 20 Aug 2020 19:21:08 +0800 In-Reply-To: References: <1597317260-24348-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-TM-SNTS-SMTP: 84FF2A7FAAC6C2272C02EA56389C25CB737D14086DD27890545B84F223C0307A2000:8 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 T24gV2VkLCAyMDIwLTA4LTE5IGF0IDE2OjQzIC0wNzAwLCBTZWFuIFdhbmcgd3JvdGU6DQo+IEhp IEhhbmtzLA0KPiANCj4gT24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