From patchwork Mon Sep 26 10:25:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 12988591 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D92C9C6FA90 for ; Mon, 26 Sep 2022 10:45:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236319AbiIZKpL (ORCPT ); Mon, 26 Sep 2022 06:45:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236772AbiIZKoj (ORCPT ); Mon, 26 Sep 2022 06:44:39 -0400 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D2974DB11 for ; Mon, 26 Sep 2022 03:25:39 -0700 (PDT) Received: by mail-pf1-x42e.google.com with SMTP id b75so6222604pfb.7 for ; Mon, 26 Sep 2022 03:25:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=0SGdeGxPSfgmPzoXpghs78M4KATohQn7tWSlIXxxmu0=; b=J3XtwwiGn04xGBGF5757B1oFtDTeixKKD2CZ9ZPPzOdVT26SaixnJRYDHHkqrSGycq iprjQFQHKHmAfmIr95ebOe/MJgaMsexsdTqW84jgqEdoRsXDEYSn4+6VGtpubEB62NAR vdfZGCEwMeEUQ2s3/CwM+lITvKjDjEG9jDbis= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=0SGdeGxPSfgmPzoXpghs78M4KATohQn7tWSlIXxxmu0=; b=BGXDn4k/xK+QIthFFQ1w+JmOg0Zc1qI3oWxmxAOeVHpkEGwA6acNQ9wG3PD+q3u/Jm plyePPQx2SgDONdTmKKRV0Mtf5orAus+i+MAG7NKSezGlRt6jpV/lYVU2wquEU6src0i +l5vZyCUBIPaZK8uhGF+gibZEnEyayxgWFkParxuqbv/HhMyDqcFCSrUJ378cLv0iTq4 3ZvlQwjaNBPgYK9bxc/P5Bw68HDM7Rvjz8QIB7kIkA97sTaudBS5BKUJiaTMoJBcEy89 Oz4ROI1f6T0rLnvdQDY8CokUw2l0J59kV513yi0bohMgaduUwNGLmca8rbNdnUdqTRAV UTPw== X-Gm-Message-State: ACrzQf1GkdXQag0p8xiINqO/qhqAqvXdah/djN5rwGf9ObUB0JS1Qo5O seLp/iGPdmM+ksQiAiW+Zrz6dA== X-Google-Smtp-Source: AMsMyM4UA9RJ4j31Tk60EzVOIh2W+Ow8CAri0MOHZIk8ZChEjnJ232vP1SwnFwo2NvjYg1CUbJrJBQ== X-Received: by 2002:a63:5762:0:b0:43c:c1b5:3e75 with SMTP id h34-20020a635762000000b0043cc1b53e75mr1487624pgm.380.1664187934413; Mon, 26 Sep 2022 03:25:34 -0700 (PDT) Received: from wenstp920.tpe.corp.google.com ([2401:fa00:1:10:1340:7319:2f7a:3be9]) by smtp.gmail.com with ESMTPSA id y23-20020aa79af7000000b00536aa488062sm11750236pfp.163.2022.09.26.03.25.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Sep 2022 03:25:32 -0700 (PDT) From: Chen-Yu Tsai To: Michael Turquette , Stephen Boyd Cc: Chen-Yu Tsai , Matthias Brugger , AngeloGioacchino Del Regno , Miles Chen , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/6] clk: mediatek: More cleanups Date: Mon, 26 Sep 2022 18:25:17 +0800 Message-Id: <20220926102523.2367530-1-wenst@chromium.org> X-Mailer: git-send-email 2.37.3.998.g577e59143f-goog MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Here's some more cleanups for the MedaiTek clk drivers. Patches 1 and 2 fixes and cleans up some parts that were missed in the previous clk_hw conversion series. Patch 3 drops the duplicate registration of the top_early_divs clks for MT8192. Currently this only contains a fixed divider. Patch 4 prevents having a duplicate OF clk provider for the topckgen controller, but removing the previously registered instance. Patch 5 deduplicates the parent clock lists for MT8192. Patch 6 adds proper error handling to the clock probe functions for MT8192. Please have a look. Thanks ChenYu Chen-Yu Tsai (6): clk: mediatek: fix unregister function in mtk_clk_register_dividers cleanup clk: mediatek: Migrate remaining clk_unregister_*() to clk_hw_unregister_*() clk: mediatek: mt8192: Do not re-register top_early_divs in probe function clk: mediatek: mt8192: Avoid duplicate OF clk provider for topckgen clk: mediatek: mt8192: deduplicate parent clock lists clk: mediatek: mt8192: Implement error handling in probe functions drivers/clk/mediatek/clk-mt8192-aud.c | 15 +- drivers/clk/mediatek/clk-mt8192-mm.c | 17 +- drivers/clk/mediatek/clk-mt8192.c | 296 +++++++++----------------- drivers/clk/mediatek/clk-mtk.c | 12 +- 4 files changed, 130 insertions(+), 210 deletions(-)