Message ID | 20220523060056.24396-12-rex-bc.chen@mediatek.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4BF3DC433EF for <linux-arm-kernel@archiver.kernel.org>; Mon, 23 May 2022 09:19:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zGY9KUpUdvYHpIJo5JTY+1Ue35Tszn7p/9mXo+jK+5k=; b=fCddQoA4nmszui 3TLXxSxgjOtyr+FgHCoQ1nwUZmGx/PEZi2KbVs1MAtOxHZ5hwVR+iWU+J/81YFFuGiaLQnI5dNDq1 EJ++jt4Xf3f0wh5to/QVMpChpfIcEMcTImpoRa737tTb1nSfTRTeT3PjhdUsFaQtubR/cBaBfCziZ we/foGoerqw0j4FEa3PoNdktStlmKpmqb+3A4R/mHazhU0mGKHcQGavo0BaTJUjifOWE8Slnuhfnc P1L4oH4pIecVcjgq8kwvNW/8blujt/pH3em0huCGxxvCintzHcQLzdWhXWWE3PO/BVqcfFJLg65Uv h6BcnaHgfPm9wTtTZAEg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nt4Bx-002m3Q-IO; Mon, 23 May 2022 09:17:35 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nt2ob-002AAA-K3; Mon, 23 May 2022 07:49:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From: Sender:Reply-To:Content-ID:Content-Description; bh=QIwzzBHqurNW0MflVEjdYTAjy2cInSyxA3uq1qK/eMs=; b=oZ+LqUXvedoXcPhnT+lsjlY3X/ zqUFm9NSd2CzoQSP5/KykdiDGIAd0d5ZOA+llvLp3vKCDVcpfhnou7wMftAewaAcufG14FwcJCiB5 NG2NbkfjsTpHoEMcapltfzJ1WY4sbBPtYJoeOCKhCqUkjafQ4hzATEFEiPx+v7jLF+yn6poMf8hUj pr4gkuCF26xLnP9nIDZEelbU+AXBOMMAdGnh62sRm/yrty8RVjq4HYPYOp9L4Dhmo1V1B/iEgeFaZ f4NmGMN6kqLT/NSbCKvL2mX6fJRJe0ZphgxLogAacROrtyaQYUttXwrcQbY1SIXqQYfErml+vv21N v+YS44ug==; Received: from mailgw01.mediatek.com ([216.200.240.184]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nt1Hn-000szH-1o; Mon, 23 May 2022 06:11:26 +0000 X-UUID: ca471c4debca4e5ab3beff727eacc80a-20220522 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.5, REQID:23c9cdd7-78ff-48f6-85a8-e97c98e7e213, OB:0, LO B:0,IP:0,URL:0,TC:0,Content:-5,EDM:0,RT:0,SF:0,FILE:0,RULE:Release_Ham,ACT ION:release,TS:-5 X-CID-META: VersionHash:2a19b09, CLOUDID:35ff2ee3-edbf-4bd4-8a34-dfc5f7bb086d, C OID:IGNORED,Recheck:0,SF:nil,TC:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil ,QS:0,BEC:nil X-UUID: ca471c4debca4e5ab3beff727eacc80a-20220522 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw01.mediatek.com (envelope-from <rex-bc.chen@mediatek.com>) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 451387705; Sun, 22 May 2022 23:10:52 -0700 Received: from mtkmbs10n2.mediatek.inc (172.21.101.183) by MTKMBS62N1.mediatek.inc (172.29.193.41) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 22 May 2022 23:01:00 -0700 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Mon, 23 May 2022 14:00:59 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 23 May 2022 14:00:58 +0800 From: Rex-BC Chen <rex-bc.chen@mediatek.com> To: <mturquette@baylibre.com>, <sboyd@kernel.org>, <matthias.bgg@gmail.com>, <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org> CC: <p.zabel@pengutronix.de>, <angelogioacchino.delregno@collabora.com>, <nfraprado@collabora.com>, <chun-jie.chen@mediatek.com>, <wenst@chromium.org>, <runyang.chen@mediatek.com>, <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-clk@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-mediatek@lists.infradead.org>, <Project_Global_Chrome_Upstream_Group@mediatek.com>, Rex-BC Chen <rex-bc.chen@mediatek.com> Subject: [PATCH v8 11/19] clk: mediatek: reset: Add reset support for simple probe Date: Mon, 23 May 2022 14:00:48 +0800 Message-ID: <20220523060056.24396-12-rex-bc.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20220523060056.24396-1-rex-bc.chen@mediatek.com> References: <20220523060056.24396-1-rex-bc.chen@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220523_071124_499657_778A71E8 X-CRM114-Status: UNSURE ( 9.98 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Cleanup MediaTek clk reset drivers and support SoCs
|
expand
|
diff --git a/drivers/clk/mediatek/clk-mtk.c b/drivers/clk/mediatek/clk-mtk.c index b9188000ab3c..05a188c62119 100644 --- a/drivers/clk/mediatek/clk-mtk.c +++ b/drivers/clk/mediatek/clk-mtk.c @@ -444,6 +444,13 @@ int mtk_clk_simple_probe(struct platform_device *pdev) platform_set_drvdata(pdev, clk_data); + if (mcd->rst_desc) { + r = mtk_register_reset_controller_with_dev(&pdev->dev, + mcd->rst_desc); + if (r) + goto unregister_clks; + } + return r; unregister_clks: diff --git a/drivers/clk/mediatek/clk-mtk.h b/drivers/clk/mediatek/clk-mtk.h index 6ed0c745cae2..1b95c484d5aa 100644 --- a/drivers/clk/mediatek/clk-mtk.h +++ b/drivers/clk/mediatek/clk-mtk.h @@ -192,6 +192,7 @@ struct clk_hw *mtk_clk_register_ref2usb_tx(const char *name, struct mtk_clk_desc { const struct mtk_gate *clks; size_t num_clks; + const struct mtk_clk_rst_desc *rst_desc; }; int mtk_clk_simple_probe(struct platform_device *pdev);