Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1569320ybj; Wed, 6 May 2020 00:46:53 -0700 (PDT) X-Google-Smtp-Source: APiQypKxQB57aLNcfNC/HHsmzMYzfDBGyejgbRmDTVQyLahCNlpbejSh5OBPMJjRN9QKRZeE/RUk X-Received: by 2002:a50:e70a:: with SMTP id a10mr6109579edn.124.1588751212976; Wed, 06 May 2020 00:46:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588751212; cv=none; d=google.com; s=arc-20160816; b=HDGebevzVhzcAHkHop3am9OMXE6v9vA2lw5gT51fP8oxVtBj24ftGsxV3cOQL7m6Ut 4G+nxAYDhwDeUAgDz8uCPCzp4psNbLEgnG9jQ86TJ2kTOe9ZqUZSxORYz7UVh9sO2q/z 7syCall7qNM6JteJ+WJUbKLwMHJBQwuhJ89cNEN+5knTk7vsZEkWEenuIfrX/La2/nNX UxxO0xvXURdKzqZrdbQT9sJiosevuNFOJI4rl8L6xp7eM6tpoij1mBDgszkCHWCCxDMP 0q5/NybRNNLIHCwTdEnSjAF4BYq++TBdDnNm8+vm5LDAKhnF1z7rABDFOuU7k3Rkm025 3C8A== 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=0wpkMCndWErEEL60irBIuIsR5TVHJ1Ka70h9+EaJgU0=; b=xWt3TuP3sHXRLYPdNS5N9cVOHkvlo6iWRgjof4Tj+JFvypnkXTYVpwuX/oEPbJe/nX iV5s5jUEf3jH0JGiMpPnjIzt0pEjmOk22DfgkJ4PSB2OyMy0nBDWXvMEasmVSPJQTXJA wg1XSYgLi/ymGIvgVG3M+k9qvFiWdlKdCxAi/PnELJhTVLNOc3BMJf6Zma1BTtzLfRts Vvlp7zx0DWmUCPmtAjhwoSOzcaaCaNyCidQYe/IB38EySqed5NlUWb9obuc7w0Aj7/o/ zTzjuMqmUcXw4Nj2yYApe1lR9ZieX6tDFctoKVyasqaJMKOq7ByB62wTDZgC6iMdmj2f CqlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Kdi3Kes3; 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 n21si677075ejc.113.2020.05.06.00.46.30; Wed, 06 May 2020 00:46:52 -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=Kdi3Kes3; 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 S1728455AbgEFHmd (ORCPT + 99 others); Wed, 6 May 2020 03:42:33 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:14129 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728280AbgEFHmc (ORCPT ); Wed, 6 May 2020 03:42:32 -0400 X-UUID: 756814a776f8414c89cf496e408e5e73-20200506 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=0wpkMCndWErEEL60irBIuIsR5TVHJ1Ka70h9+EaJgU0=; b=Kdi3Kes3FCsYrQMjlHCyJyRSPnl9tv74J9I/ADu5FFFD72C5N27v17VZBiOk4t55SG+6BwFCJOaBHWcOih0l0QgK6d9dlsxvtKXuMQ7eymnecVB31q3Y4Sc3+czeDjf9ZBYYuWHRE2RwncAkLV4VTP2UF+SH2gTITr6iXZkUxZU=; X-UUID: 756814a776f8414c89cf496e408e5e73-20200506 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1929505301; Wed, 06 May 2020 15:42:27 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 6 May 2020 15:42:25 +0800 Received: from [172.21.77.4] (172.21.77.4) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 6 May 2020 15:42:21 +0800 Message-ID: <1588750946.3262.28.camel@mtksdaap41> Subject: Re: [PATCH v13 06/11] soc: mediatek: Add subsys clock control for bus protection From: Weiyi Lu To: Enric Balletbo Serra CC: Rob Herring , Nicolas Boichat , srv_heupstream , JamesJJ Liao =?UTF-8?Q?=28=E5=BB=96=E5=BB=BA=E6=99=BA=29?= , linux-kernel , Fan Chen =?UTF-8?Q?=28=E9=99=B3=E5=87=A1=29?= , "moderated list:ARM/Mediatek SoC support" , "Sascha Hauer" , Matthias Brugger , Linux ARM Date: Wed, 6 May 2020 15:42:26 +0800 In-Reply-To: References: <1584689540-5227-1-git-send-email-weiyi.lu@mediatek.com> <1584689540-5227-7-git-send-email-weiyi.lu@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 DQpPbiBGcmksIDIwMjAtMDQtMjQgYXQgMDI6MTkgKzA4MD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ICsN Cj4gPiArICAgICAgIGlmICghbm9kZSkgew0KPiANCj4gSXMgdGhpcyBwb3NzaWJsZT8gSSBzdXNw ZWN0IHlvdSBjYW4gcmVtb3ZlIHRoaXMgY2hlY2suDQo+IA0KDQpZb3UncmUgcmlnaHQuIEl0IG5l dmVyIGhhcHBlbnMsIEknbGwgcmVtb3ZlIGl0Lg0KDQo+ID4gKyAgICAgICAgICAgICAgIGRldl9l cnIoJnBkZXYtPmRldiwgIkNhbm5vdCBmaW5kIHNjcHN5cyBub2RlOiAlbGRcbiIsDQo+ID4gKyAg ICAgICAgICAgICAgICAgICAgICAgUFRSX0VSUihub2RlKSk7DQo+ID4gKyAgICAgICAgICAgICAg IHJldHVybiBQVFJfRVJSKG5vZGUpOw0KPiA+ICsgICAgICAgfQ0KPiA+ICsNCj4gPiArICAgICAg IHByZWZpeF9sZW4gPSBzdHJsZW4ocHJlZml4KTsNCj4gPiArDQo+ID4gKyAgICAgICBvZl9wcm9w ZXJ0eV9mb3JfZWFjaF9zdHJpbmcobm9kZSwgImNsb2NrLW5hbWVzIiwgcHJvcCwgY2xrX25hbWUp IHsNCj4gPiArICAgICAgICAgICAgICAgaWYgKCFzdHJuY21wKGNsa19uYW1lLCBwcmVmaXgsIHBy ZWZpeF9sZW4pICYmDQo+ID4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoY2xrX25h bWVbcHJlZml4X2xlbl0gPT0gJy0nKSkgew0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgIGlm IChzdWJfY2xrX2NudCA+PSBNQVhfU1VCU1lTX0NMS1MpIHsNCj4gPiArICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgIGRldl9lcnIoJnBkZXYtPmRldiwNCj4gPiArICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgInN1YnN5cyBjbGsgb3V0IG9mIHJhbmdlICVkXG4iLA0K PiA+ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdWJfY2xrX2NudCk7 DQo+ID4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gLUVJTlZBTDsNCj4g PiArICAgICAgICAgICAgICAgICAgICAgICB9DQo+ID4gKw0KPiA+ICsgICAgICAgICAgICAgICAg ICAgICAgIGNsa1tzdWJfY2xrX2NudF0gPSBkZXZtX2Nsa19nZXQoJnBkZXYtPmRldiwNCj4gPiAr ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbGtfbmFtZSk7 DQo+ID4gKw0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgIGlmIChJU19FUlIoY2xrW3N1Yl9j bGtfY250XSkpIHsNCj4gPiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRldl9lcnIo JnBkZXYtPmRldiwNCj4gPiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg IlN1YnN5cyBjbGsgZ2V0IGZhaWwgJWxkXG4iLA0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICBQVFJfRVJSKGNsa1tzdWJfY2xrX2NudF0pKTsNCj4gDQo+IFRoaXMg ZGV2X2VyciBpcyByZWR1bmRhbnQsIGRldm1fY2xrX2dldCBhbHJlYWR5IHByaW50cyBpdCBpZiB0 aGUgY2xvY2sNCj4gaXMgbm90IGZvdW5kLg0KPiANCg0KR290IGl0Lg0KDQo+ID4gKyAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gUFRSX0VSUihjbGtbc3ViX2Nsa19jbnRdKTsN Cj4gPiArICAgICAgICAgICAgICAgICAgICAgICB9DQo+ID4gKyAgICAgICAgICAgICAgICAgICAg ICAgc3ViX2Nsa19jbnQrKzsNCj4gPiArICAgICAgICAgICAgICAgfQ0KPiA+ICsgICAgICAgfQ0K PiA+ICsNCj4gPiArICAgICAgIHJldHVybiBzdWJfY2xrX2NudDsNCj4gPiArfQ0KPiA+ICsNCj4g PiAgc3RhdGljIGludCBpbml0X2Jhc2ljX2Nsa3Moc3RydWN0IHBsYXRmb3JtX2RldmljZSAqcGRl diwgc3RydWN0IGNsayAqKmNsaywNCj4gPiAgICAgICAgICAgICAgICAgICAgICAgICBjb25zdCBj aGFyICogY29uc3QgKm5hbWUpDQo+ID4gIHsNCj4gPiBAQCAtNTU5LDYgKzYxNCwxOCBAQCBzdGF0 aWMgc3RydWN0IHNjcCAqaW5pdF9zY3Aoc3RydWN0IHBsYXRmb3JtX2RldmljZSAqcGRldiwNCj4g PiAgICAgICAgICAgICAgICAgaWYgKHJldCkNCj4gPiAgICAgICAgICAgICAgICAgICAgICAgICBy ZXR1cm4gRVJSX1BUUihyZXQpOw0KPiA+DQo+ID4gKyAgICAgICAgICAgICAgIGlmIChkYXRhLT5z dWJzeXNfY2xrX3ByZWZpeCkgew0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgIHJldCA9IGlu aXRfc3Vic3lzX2Nsa3MocGRldiwNCj4gPiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgZGF0YS0+c3Vic3lzX2Nsa19wcmVmaXgsDQo+ID4gKyAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgIHNjcGQtPnN1YnN5c19jbGspOw0KPiA+ICsgICAgICAgICAg ICAgICAgICAgICAgIGlmIChyZXQgPCAwKSB7DQo+ID4gKyAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICBkZXZfZXJyKCZwZGV2LT5kZXYsDQo+ID4gKyAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICIlczogc3Vic3lzIGNsayB1bmF2YWlsYWJsZVxuIiwNCj4gPiArICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGF0YS0+bmFtZSk7DQo+IA0KPiBB bmQgdGhpcyBwcmludCBpcyBhbHNvIHJlZHVuZGFudC4NCj4gDQoNCkdvdCBpdC4NCj4gDQo+ID4g KyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gRVJSX1BUUihyZXQpOw0KPiA+ ICsgICAgICAgICAgICAgICAgICAgICAgIH0NCj4gPiArICAgICAgICAgICAgICAgfQ0KPiA+ICsN Cj4gPiAgICAgICAgICAgICAgICAgZ2VucGQtPm5hbWUgPSBkYXRhLT5uYW1lOw0KPiA+ICAgICAg ICAgICAgICAgICBnZW5wZC0+cG93ZXJfb2ZmID0gc2Nwc3lzX3Bvd2VyX29mZjsNCj4gPiAgICAg ICAgICAgICAgICAgZ2VucGQtPnBvd2VyX29uID0gc2Nwc3lzX3Bvd2VyX29uOw0KPiA+IC0tDQo+ ID4gMS44LjEuMS5kaXJ0eQ0KPiA+IF9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fDQo+ID4gTGludXgtbWVkaWF0ZWsgbWFpbGluZyBsaXN0DQo+ID4gTGludXgt bWVkaWF0ZWtAbGlzdHMuaW5mcmFkZWFkLm9yZw0KPiA+IGh0dHA6Ly9saXN0cy5pbmZyYWRlYWQu b3JnL21haWxtYW4vbGlzdGluZm8vbGludXgtbWVkaWF0ZWsNCj4gDQo+IF9fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fDQo+IExpbnV4LW1lZGlhdGVrIG1haWxp bmcgbGlzdA0KPiBMaW51eC1tZWRpYXRla0BsaXN0cy5pbmZyYWRlYWQub3JnDQo+IGh0dHA6Ly9s aXN0cy5pbmZyYWRlYWQub3JnL21haWxtYW4vbGlzdGluZm8vbGludXgtbWVkaWF0ZWsNCg0KDQo=