Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp77508rwe; Tue, 18 Apr 2023 17:56:34 -0700 (PDT) X-Google-Smtp-Source: AKy350bnbgGtaDVUe5xmoCbh2MlpUAuAaL0JUuC73oOMDiINoXquOOxBpYDdObhTmKqERyGU338s X-Received: by 2002:a05:6a20:9c9a:b0:ee:788b:45e0 with SMTP id mj26-20020a056a209c9a00b000ee788b45e0mr1304929pzb.40.1681865794426; Tue, 18 Apr 2023 17:56:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681865794; cv=none; d=google.com; s=arc-20160816; b=s/U0lLOYcjXVHcmPsZ9bQSwhQbQYGcayBQPmrrWuVSLnZFoVQG8pvtP9vkrpz+aBev 35n1P5At7Pv9+agMvghiqib88jYzTnFhimHJJ6tKUSXduSDkvn0q68aRGpJGogHzMH+3 DlpTBtwLMD6HFf0Ka0z/b4hj6np3lRaDmLE7gUCIfL+RwVe3/zk3jofy992ggtyifZuB Tab1JtQC+1KQeDnIZkq1rwpJl78/UPvrICfDhEKoghHAV1c2JL3fQ1Bn7UE8vy5LW51n s4eLm1UqDrxRpMEIYDM4r+q4oPUJtSk5Oy67sZzk38eq6V0X0z6e/OZ1k8YTnJDexQLt 6QCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=D6JBEBOkVfTEmObqcNEsEyY9FQjlw46Y62iwKC4AS1o=; b=Ia+IV8baLflClQx4NYIh1cry9QmlsRnJwAtaDBpcRUXFPiOi5hQMSUg4JB3z2AsPK6 eCkz7006kkmPY4wsk/nBwCm5x6LDv/len/N9ViW4xI+R4iXhwySzXnDslxpgkIVu4IJ8 asXkt155bG/b2Etd0x0MBVVCTM3AIFI9jWBmwHcnBJXwN2qxtc3vQkmSZ/MIKmNJ8Z9d 9YGO8ji20t40/E2NIooNLL6YJ4f73ElnWSE2bKlG9YAnKMpDwllqAfFCBDEEn6lBAgge W0ypN7JA8bvdvCeqB0VZvlT40X4fkzb8q4rEg5Qy8MJtYKDVW++y49tFDfWvc53vuHDK chRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=EgBzzDei; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b189-20020a6367c6000000b0051f179c48e9si2567055pgc.684.2023.04.18.17.55.57; Tue, 18 Apr 2023 17:56:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=EgBzzDei; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231845AbjDSAc3 (ORCPT + 99 others); Tue, 18 Apr 2023 20:32:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231646AbjDSAc2 (ORCPT ); Tue, 18 Apr 2023 20:32:28 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB918269F; Tue, 18 Apr 2023 17:32:27 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id 98e67ed59e1d1-2470271d9f9so1828494a91.2; Tue, 18 Apr 2023 17:32:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681864347; x=1684456347; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=D6JBEBOkVfTEmObqcNEsEyY9FQjlw46Y62iwKC4AS1o=; b=EgBzzDeioDQmeDODO0ESCM2+hOKkVe5WFl8GLOkmwolTUPIsDapqz7/DdTZUrAj5SV wU0dcMZpz6N72RuBATOn42n+oR/ixlhALpIux7ldqjX0oz3/DRdO0q0Me9z0kEmNZNqI F0npW6jBiVL1c6rrMUyDGcLms98KTreROauoQwpxnV6ndCZaoIDDX5L7wg/OLEvBv+ia dW0BovnTpeqUA55sM7jJAs9smEwWip5n7oiU3hJxMcx2rUjxnq+GwYCrWt5wl/Zn3dWs gxklfAgGPqHJ+p8+N7AdESLbi0Ab69nRDYk+zDNSwigBj+9cU1r3nKUJCs8jH4i0zQsQ gw+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681864347; x=1684456347; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=D6JBEBOkVfTEmObqcNEsEyY9FQjlw46Y62iwKC4AS1o=; b=TQ+LNnHAlpHuGdsD8ZJbnnSzOktUFgUHwl0p2M2uXbEQaD8pRh5rHrMg5fhnverrAv +ubprPwkF4LEYPpdBDshdNRiKvXWw8Gxi0GziPolIEQ7nGg+RYrD8fC4txg0cmfMFTp0 hn48EVz18Tvkl7MrvKvqYOTXlNGn3mgvd7Z5IhvGmGXS92dpnPOi2OU9fn9ZoQHwSg6P tFgPKYje6rj6TDC7a4PV3QDc36KaZjgaKPbNVgnbxMe1Ur4doq9FiKGVpoh930FIojYl tsw8VxV/rDHuWrPsAwDWGWMFH2DBxCbw3q6W2sExZPgrFIACm7nALV1VRC8vnQDm2cHN lmkQ== X-Gm-Message-State: AAQBX9d5Atg5VKbS8/cS+3uGatoUId6/YAV6sQTL5MzKa8sOwQsYt8uA uKmRCWDu3kyoRThft52EJrJhos/90ak= X-Received: by 2002:a17:90b:3b52:b0:249:748b:a232 with SMTP id ot18-20020a17090b3b5200b00249748ba232mr1005004pjb.25.1681864347066; Tue, 18 Apr 2023 17:32:27 -0700 (PDT) Received: from [172.19.1.47] (60-250-192-107.hinet-ip.hinet.net. [60.250.192.107]) by smtp.gmail.com with ESMTPSA id c9-20020a170902c1c900b001a065d3ea3bsm10169255plc.295.2023.04.18.17.32.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 Apr 2023 17:32:26 -0700 (PDT) Message-ID: Date: Wed, 19 Apr 2023 08:32:22 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v7 09/12] clk: nuvoton: Add clock driver for ma35d1 clock controller Content-Language: en-US To: Stephen Boyd , gregkh@linuxfoundation.org, jirislaby@kernel.org, krzysztof.kozlowski+dt@linaro.org, lee@kernel.org, mturquette@baylibre.com, p.zabel@pengutronix.de, robh+dt@kernel.org Cc: devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, arnd@arndb.de, schung@nuvoton.com, mjchen@nuvoton.com, Jacky Huang References: <20230412053824.106-1-ychuang570808@gmail.com> <20230412053824.106-10-ychuang570808@gmail.com> <4f57a7ccc946d18be5eb9a47fa69e5f8.sboyd@kernel.org> <71f646cb-7114-0c78-493c-99bdb5217801@gmail.com> From: Jacky Huang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear Stephen, On 2023/4/19 上午 04:23, Stephen Boyd wrote: > Quoting Jacky Huang (2023-04-14 20:58:57) >>>> diff --git a/drivers/clk/nuvoton/clk-ma35d1.h b/drivers/clk/nuvoton/clk-ma35d1.h >>>> new file mode 100644 >>>> index 000000000000..28c60f081788 >>>> --- /dev/null >>>> +++ b/drivers/clk/nuvoton/clk-ma35d1.h >>>> @@ -0,0 +1,123 @@ >>>> +/* SPDX-License-Identifier: GPL-2.0-only */ >>>> +/* >>>> + * Copyright (C) 2023 Nuvoton Technology Corp. >>>> + * Author: Chi-Fang Li >>>> + */ >>>> + >>>> +#ifndef __DRV_CLK_NUVOTON_MA35D1_H >>>> +#define __DRV_CLK_NUVOTON_MA35D1_H >>> Is this header included in one C file? If so, remove the header file and >>> put the contents in the C file. >> Both clk-ma35d1.c and clk-ma35d1-pll.c include this header file. >> > Do they both use all the defines from it? Move as much as possible out > of this header file and put them in the only C file that uses it. Okay, I will try to eliminate the header file. Best regards, Jacky Huang