Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4112379pxf; Tue, 16 Mar 2021 06:10:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybcEQpByMB3ZKR5Wkzfn1Lwtw2gOcGhRxfa5fbQHsYdVkco5hqtmGBjs1A3VOYB4i9XCMx X-Received: by 2002:a17:907:b06:: with SMTP id h6mr29327120ejl.144.1615900216288; Tue, 16 Mar 2021 06:10:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615900216; cv=none; d=google.com; s=arc-20160816; b=Itee0D97UTgVhsSDu6cVyrq6grA+dIrssW9V3syrWkfz0d4AAiZJpZF4fBLXYQ/4eu eFo7+B6g1XfYyD0fQXw7I8sPm3LhDPAyAJjOUFHJyfo1lv5n21RA8Qkr9UB4W1CQHD4l s0AaIFtHamf4beB7ssZZHINg85JUFiUZJOweHrqv7au3CEOfvQgeWNrDjib/FysiqdGz uS3vEs3BLDn0QcPACLfQSvlVt8XRNX6Zuuyyht/Bkirvs58JGvHvSOprjqbzYPRjFVx0 H58BJPtdTxzEdl9XIiQ5UXXwH7whggxraQor6vZrciTvD4yhP8tj//bj504qzF/BpZi4 rnig== 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=FkZGHytsgs955UTmW2uQrKqZUSuzH4HOG79H2hLEryo=; b=lhZw9kpDqP2U9jUxe07dOkRwgkwnKHNHMwOEskHeoZHyU/4B71Cr0is6n5VsJZ+Kst 8T5nrzc/kQX3PKb9YvEtVVPL255NU7F9GYMicjEqll2zKTCr1JcGibRZG9WsO2q2FqwL Qfrn4729Xzjubl6tiWnZEtmVa+GMVKTrUKjEcZd3kid/HFWEeLqX9hNBXV3D/YtFtA/n UlsfsxcT8NOdHDe0ndJSyaPmSf4dJfd3t4yoCu30lU8CiRMEUdxka710LHU3OHXNbWhL YpPw9Qv39NXWdgRT/kWyfZk/5tc1MZ17Ns+mj5OFuhxBM8Az5vvZLEpxTUo+HFqmOLcu JdKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="U4Dq/yky"; 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 d2si13594694edv.66.2021.03.16.06.09.53; Tue, 16 Mar 2021 06:10:16 -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="U4Dq/yky"; 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 S233201AbhCPGKt (ORCPT + 99 others); Tue, 16 Mar 2021 02:10:49 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:58898 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S235749AbhCPGK2 (ORCPT ); Tue, 16 Mar 2021 02:10:28 -0400 X-UUID: db2040add5c44cb0b6f8c3f5419bebe9-20210316 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=FkZGHytsgs955UTmW2uQrKqZUSuzH4HOG79H2hLEryo=; b=U4Dq/ykytFoenN+pMHFn8saj375x3DSjizQYGrFYWAuKY/wWrgZWZWNboIO3GNJHcorJEtNCXS0gGheY2Sb457Cxg0jqxzmnYpX41II1Lpc/a5iIjh1EUtEiSgqPpS02bJfAbzl0eJ/duianOC//ux46w3CRgKnTBi1fIkMGR00=; X-UUID: db2040add5c44cb0b6f8c3f5419bebe9-20210316 Received: from mtkcas32.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 876990971; Tue, 16 Mar 2021 14:10:25 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS31N1.mediatek.inc (172.27.4.69) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 16 Mar 2021 14:10:21 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 16 Mar 2021 14:10:20 +0800 Message-ID: <1615875020.11060.1.camel@mhfsdcap03> Subject: Re: [PATCH] pinctrl: add lock in mtk_rmw function. From: zhiyong tao To: Sean Wang CC: Rob Herring , Linus Walleij , Mark Rutland , "Matthias Brugger" , srv_heupstream , , Eddie Huang =?UTF-8?Q?=28=E9=BB=83=E6=99=BA=E5=82=91=29?= , , Biao Huang , Hongzhou Yang , Erin Lo =?UTF-8?Q?=28=E7=BE=85=E9=9B=85=E9=BD=A1=29?= , "Sean Wang =?UTF-8?Q?=28=E7=8E=8B=E5=BF=97=E4=BA=98=29?=" , , , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , lkml , linux-arm Mailing List , "moderated list:ARM/Mediatek SoC support" , "open list:GPIO SUBSYSTEM" Date: Tue, 16 Mar 2021 14:10:20 +0800 In-Reply-To: References: <20210312063502.3685-1-zhiyong.tao@mediatek.com> <20210312063502.3685-2-zhiyong.tao@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: 214DA13DA4340811ED1F8D29BF8856DE9D759CE9D7346FA589D3BCD2733CB6912000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gVHVlLCAyMDIxLTAzLTE2IGF0IDEzOjA1ICswODAwLCBTZWFuIFdhbmcgd3JvdGU6DQo+IEhp IFpoaXlvbmcsDQo+IA0KPiBPbiBGcmksIE1hciAxMiwgMjAyMSBhdCAyOjM1IFBNIFpoaXlvbmcg VGFvIDx6aGl5b25nLnRhb0BtZWRpYXRlay5jb20+IHdyb3RlOg0KPiA+DQo+ID4gV2hlbiBtdWx0 aXBsZSB0aHJlYWRzIG9wZXJhdGUgb24gdGhlIHNhbWUgcmVnaXN0ZXIgcmVzb3VyY2UNCj4gPiB3 aGljaCBpbmNsdWRlIG11bHRpcGxlIHBpbiwgSXQgd2lsbCBtYWtlIHRoZSByZWdpc3RlciByZXNv dXJjZQ0KPiA+IHdyb25nIHRvIGNvbnRyb2wuIFNvIHdlIGFkZCBsb2NrIHRvIGF2b2lkIHRoZSBj YXNlLg0KPiA+DQo+ID4gU2lnbmVkLW9mZi1ieTogWmhpeW9uZyBUYW8gPHpoaXlvbmcudGFvQG1l ZGlhdGVrLmNvbT4NCj4gPiAtLS0NCj4gPiAgZHJpdmVycy9waW5jdHJsL21lZGlhdGVrL3BpbmN0 cmwtbXRrLWNvbW1vbi12Mi5jIHwgNCArKysrDQo+ID4gIGRyaXZlcnMvcGluY3RybC9tZWRpYXRl ay9waW5jdHJsLW10ay1jb21tb24tdjIuaCB8IDIgKysNCj4gPiAgZHJpdmVycy9waW5jdHJsL21l ZGlhdGVrL3BpbmN0cmwtcGFyaXMuYyAgICAgICAgIHwgMiArKw0KPiA+ICAzIGZpbGVzIGNoYW5n ZWQsIDggaW5zZXJ0aW9ucygrKQ0KPiA+DQo+ID4gZGlmZiAtLWdpdCBhL2RyaXZlcnMvcGluY3Ry bC9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