Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2070050pxv; Sun, 11 Jul 2021 01:35:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPA1vjL46OuBC2r4ouSYsv6xV/VliXt2dSR6l/rWeauYEugcMnqxf8TqZOUKPwHBVCxNj5 X-Received: by 2002:a17:906:c006:: with SMTP id e6mr47822886ejz.510.1625992523505; Sun, 11 Jul 2021 01:35:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625992523; cv=none; d=google.com; s=arc-20160816; b=0UkSbUYumZSQKsIgmU/5r+Dvdv6/SYNYs3PnFZvLu5QrWkR7/pqxzoohBSWDxcNkpl e0w8NKuautd1/JtakNJimOp7AA7msLrVDviAHU7MALXfp9RkoMhMJ0c2t3BfI4nYiXpc qVG0H6e+ePZBYEhEeN3Rf5Nn2LkFzFhz64H1fdkrKInNpkDkkuqIqlBtWTF69dAO1YaC 4zDcCAfRq+UDw+8GLmcmoI+FEk1vMMSWPgTUg1441+PwCSGDU20ymsoWp0yCi6YDLKTu 5UpMYZo4FeBJZnwXTze346d+QT2yWeIS0oCFbeQlQ2NpbFWrn+wNKYtcTP2Lw6FCZfBe dCaw== 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=t9mLnCFBNPQ+QFBApPB3w3g/T+cWtNxPL3HGdUb3WsA=; b=Jk9rK2EEaDA59oN/UzcUrfGWGQF4xINB+Gd6IHqnmmgl0bUET3uVYhR3wCMtxiXfV7 fte9VEQinXhTJIHBwLmdz41SIvkzJCqKopWcT6fRdHs3bYfeR5HdGsi02geKvT43ImxK J7viXOow9NkJdNt6P/UpXc9bLPKwhBw1TF/BxTHbZeDnbEkSLzcqggliKkDq1W36gaZm c2jxuhR+TX7FeU8fJ103fxH5m5cFsb70+p7YHNeUVcEagpxFz2C+bA1AYQ/W7lpE87wN 6cIOqt7YsQj2Ss4cE4j9/Tqar7qG8SUMV7fI9RAG2oPC3qUim4LuiSSwHseEwzG34FYv xsyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=iyijnGoD; 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 mm28si3072003ejb.598.2021.07.11.01.35.00; Sun, 11 Jul 2021 01:35:23 -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=iyijnGoD; 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 S231791AbhGKIcz (ORCPT + 99 others); Sun, 11 Jul 2021 04:32:55 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:19547 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229758AbhGKIcy (ORCPT ); Sun, 11 Jul 2021 04:32:54 -0400 X-UUID: af929080615347d7addfaa6af8e1dd1c-20210711 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=t9mLnCFBNPQ+QFBApPB3w3g/T+cWtNxPL3HGdUb3WsA=; b=iyijnGoDBCAKLaJbAoNDrkvq1J5QEqOoWQ401AkZkzyB8w4mmgc3XKcPgP9RYdgRj3/Ei5iVY8zXeDsvKVT5jPDagwKv9YV3ym4jg0i1S6mRM62hotVS5ovbsvGlv5YdSxVh8SmpL/iv6gXb7iPmkZaEUxx50oQhTADLPOJH8c4=; X-UUID: af929080615347d7addfaa6af8e1dd1c-20210711 Received: from mtkcas34.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1398523848; Sun, 11 Jul 2021 16:30:02 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS31N1.mediatek.inc (172.27.4.69) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 11 Jul 2021 16:29:59 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sun, 11 Jul 2021 16:29:59 +0800 Message-ID: <1625992199.22309.15.camel@mhfsdcap03> Subject: Re: [PATCH 3/9] memory: mtk-smi: Use clk_bulk instead of the clk ops From: Yong Wu To: Krzysztof Kozlowski CC: Rob Herring , Matthias Brugger , Krzysztof Kozlowski , "Joerg Roedel" , Will Deacon , Robin Murphy , Tomasz Figa , , , , , , , , , , Date: Sun, 11 Jul 2021 16:29:59 +0800 In-Reply-To: <4047dfaf-f2f8-b6b2-52fd-41821475b162@canonical.com> References: <20210616114346.18812-1-yong.wu@mediatek.com> <20210616114346.18812-4-yong.wu@mediatek.com> <4047dfaf-f2f8-b6b2-52fd-41821475b162@canonical.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: 755D024FD7727026C23CB3E6A5D8D9521A587CF4AB7DEEF2F8C0332526F861752000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org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