Message ID | 20230622141343.13595-1-ychuang570808@gmail.com (mailing list archive) |
---|---|
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 C12F5EB64D8 for <linux-arm-kernel@archiver.kernel.org>; Thu, 22 Jun 2023 14:14:18 +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: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:In-Reply-To:References: List-Owner; bh=yvBxti6b2m4GDA7WolAm3oB81sbSy1XgT8f6LM9nHJE=; b=HsvtL1KEWrnyOs jVjDF7TDiw6ZQH1DfeVLIl4b8CTBd//QmJjT6tRxBpthSDwFQI4OLvzpRH3JGj3pLsFzbcyF4RLGY 3wS6a+9FP2YEIQYCEXB3DGKnT9LN9HXxtnbw8GaZpGyHlc8VTaQF7Ws94vvKD1DmLpOBJei4z1twc 4ghR0h9NHTgXEUZGDF+wWpUXoBvdJPvxlzTVYl28m/zBkQoACrNF2tXd9ZjAyDaYhsGJS3KRwPa2i chaK+p9Dn2yImysWa29xVm7deE+tQNEA3gnooPyoMFd2AVR5uxp+TFoa9yckN+wV+6A97mqe17InF dNSkGMK/5b29doWZnN1Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qCL4L-000vRj-07; Thu, 22 Jun 2023 14:13:53 +0000 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qCL4I-000vPn-2w for linux-arm-kernel@lists.infradead.org; Thu, 22 Jun 2023 14:13:52 +0000 Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-543d32eed7cso2967726a12.2 for <linux-arm-kernel@lists.infradead.org>; Thu, 22 Jun 2023 07:13:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687443229; x=1690035229; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=h6szGr6L3i5FMz3phg8XsP+aqzdYx92eWbT4G3zQDHo=; b=adR5ukuVOqtAHxCW1/2gcsyU8AcnMgeN0HpZwi2J9gVz4YE0wOy6BcJfG6nZc0eOaB czGVjDX6ndsY7QS5ZKegJZcn7Ln5qOcITnxgusUpMqq7Qly3s6V0iUw5nNlrWWJFt7JI Ff283Ji0FWpr6uLCtWsKbuIyxlIr65xcN9NKvgcG8SRi9DSjPrLCotnXFDa1pQLRRxdy Tp43/7YP+iG7c34E2CBf8qNDiBlVeNIYxbFYL+0WXPbWtSiOqqOOnfRxP9JMbMUF15MM 30NlIRUtQqH0eKw7dNnd/Y8TZyu0+ChAnlI11TpoHRVlWRYwgAsZlt4J44h3kxjl1LIs EOdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687443229; x=1690035229; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=h6szGr6L3i5FMz3phg8XsP+aqzdYx92eWbT4G3zQDHo=; b=JxCJ8k++/HazZhetZ+p9EEMkRgr2X9uJCWrmEl3UZ+6WDw1MtZGgmIpmgRESiM3lXV gbGjz0CF5tpd5xHRJ/wzd4jBYNbDMXAq03Zpiu+oov7rLojI3dJaHXkMx6Thpjx3irEz fEFZB+nyM8I8LiiNhR8xMN0GXhXW7EKcGcy8uU6DJWMzjQlCwZvwM1rn05bOQPfQNpvx 50oysrqZRrQvTOIAhuUDMGcwNiONz6uWmedrjVt7VuaALrRtYrMHKxcH9XQ0RH30QAEY KSygSDYqc4clvJKn+uGPKiQTRrEoMN5AkYi/tNjk2gcUvAtTl1y44wBBfs1xt96HpR1E bPnQ== X-Gm-Message-State: AC+VfDwXRa/GZyt1AE7ROaKK3oeygxoJADV21TXjkwUyZIMKSMtf2DSF fvxRQ8Ei/EW27LJMwkUG2sE= X-Google-Smtp-Source: ACHHUZ5vHyg2/Vz93cNtJWXlW0Cr2pAfwP67ir0M9Lf9E9Znb0Youi7lQxT6qXlm67BdxM+iu29DVw== X-Received: by 2002:a05:6a20:6a27:b0:122:94d6:df11 with SMTP id p39-20020a056a206a2700b0012294d6df11mr7693183pzk.43.1687443228765; Thu, 22 Jun 2023 07:13:48 -0700 (PDT) Received: from a28aa0606c51.. (60-250-192-107.hinet-ip.hinet.net. [60.250.192.107]) by smtp.gmail.com with ESMTPSA id i20-20020aa79094000000b0065a1b05193asm4604268pfa.185.2023.06.22.07.13.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 07:13:48 -0700 (PDT) From: Jacky Huang <ychuang570808@gmail.com> To: mturquette@baylibre.com, sboyd@kernel.org, arnd@arndb.de, gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, soc@kernel.org, krzysztof.kozlowski+dt@linaro.org, schung@nuvoton.com, Jacky Huang <ychuang3@nuvoton.com> Subject: [PATCH v3 0/3] clk: nuvoton: Use clk_parent_data instead and add a header file Date: Thu, 22 Jun 2023 14:13:40 +0000 Message-Id: <20230622141343.13595-1-ychuang570808@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230622_071350_974021_608CBE1A X-CRM114-Status: GOOD ( 14.29 ) 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="us-ascii" Content-Transfer-Encoding: 7bit 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 |
clk: nuvoton: Use clk_parent_data instead and add a header file
|
expand
|
On Thu, Jun 22, 2023, at 16:13, Jacky Huang wrote: > From: Jacky Huang <ychuang3@nuvoton.com> > > This set of patches addresses some of the issues that were identified in > the ma35d1 clock driver. > I've gone ahead and applied all three now, on top of the soc/newsoc branch. If any other issues come up, please send patches relative to that. Thanks, Arnd
From: Jacky Huang <ychuang3@nuvoton.com> This set of patches addresses some of the issues that were identified in the ma35d1 clock driver. 1. The external functions referenced between the .c files in this driver should not be declared within the .c files themselves. Instead, a shared .h file should be created to reference them. 2. Update all constant hex values written in uppercase to be lowercase. 3. For the declaration of parent clocks, use struct clk_parent_data instead of a string. Due to the change in the passed arguments, replace the usage of devm_clk_hw_register_mux() with clk_hw_register_mux_parent_data() for all cases. v3: - Extract the unrelated parts from patch 1/3 and create another patch, patch 2/3. - In patch 3/3, remove the modifications about line reformatting, as they irrelevant and have no practical effect. v2: - In v1, all these modifications were included in a single patch, which is not ideal. In v2, there were no changes made to the patch content itself, but the different modification topics were separated into two individual patches Jacky Huang (3): clk: nuvoton: Add clk-ma35d1.h for driver extern functions clk: nuvoton: Update all constant hex values to lowercase clk: nuvoton: Use clk_parent_data instead of string for parent clock drivers/clk/nuvoton/clk-ma35d1-divider.c | 7 +- drivers/clk/nuvoton/clk-ma35d1-pll.c | 5 +- drivers/clk/nuvoton/clk-ma35d1.c | 348 +++++++++++++++-------- drivers/clk/nuvoton/clk-ma35d1.h | 18 ++ 4 files changed, 259 insertions(+), 119 deletions(-) create mode 100644 drivers/clk/nuvoton/clk-ma35d1.h