Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp734722rwb; Fri, 13 Jan 2023 03:37:21 -0800 (PST) X-Google-Smtp-Source: AMrXdXvBdnjsKGDg8t0mIiS6AjNeV9rgsUvWWBE7KR/JyrAB0qwgiceAL38sc6LSeZTtW9N06oEH X-Received: by 2002:a05:6402:2b89:b0:461:ca30:653 with SMTP id fj9-20020a0564022b8900b00461ca300653mr84412861edb.31.1673609840858; Fri, 13 Jan 2023 03:37:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673609840; cv=none; d=google.com; s=arc-20160816; b=aGl+wxTlWAMHggcL6IX9RdorfLErAgXBe79qVAdBEigkP9UCcU4LJkBUx8quQNOcA8 1wfu6sbqicG+e7N3DvpXD7s5HNwZJDaiG2gNZyrnslHQ7fat3vZcKuIb8Kq8weCn5Fd5 yEc8c2BBF3bZXazzMJI2nM9lWL5vtVaOjsTToWg1GeOQIYoAK0OgLYBR00paUhTgLb2T ryke3eeJC48xp3jT1BO5qfj21aNDK9ylA1X1x4oVkW1mD2eQhfb6dV9Y2Hk+ewQdNPbm nqy8TXywvOLvtiC05sYcHz63hkQXt6UDdBR5Q0H4DBzXNJpAPQ3fnr4q/6SJs/2xMu6s fOiw== 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=nNpoWQlOxVCjJNH1/tWYzE33AytIwBJrxcIw+MQAk1E=; b=Zl5pQE9clH9+KKeD7s1CzRgYzxCxbIco8JOV/mYih/U08NK+cNYEa7vxwVIz06Mbjw +5y9lhQQcjBIigNe5zj0vLzzXRVobb+rQc8b0xciGFYPhs+dTdQtYe8uhaTKZGoHkgXa fv6e/qvDClO4e2ogB2GrG1QOVi402eUhv9YxWQ8nINr2+xlifcTxPEepXGZ2eAEJuHRg L08KinjKhF1poj2O1wjipA0Sgjq8K+NpoDV5MNTTHSnxsiMJyl0btbIuA7KcStD9WixC erY6tlGv9mbQK6OUvvuJpbtdgJ5gNL6MqAg1+Fc4FtAJUl94wg5HnwJ4BOBOQePGmJ37 UWlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YAc09V0L; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m12-20020a056402430c00b0047b79b99e63si24004245edc.450.2023.01.13.03.37.07; Fri, 13 Jan 2023 03:37:20 -0800 (PST) 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=@linaro.org header.s=google header.b=YAc09V0L; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240751AbjAMLaT (ORCPT + 51 others); Fri, 13 Jan 2023 06:30:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240334AbjAML3v (ORCPT ); Fri, 13 Jan 2023 06:29:51 -0500 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E63008B53E for ; Fri, 13 Jan 2023 03:19:37 -0800 (PST) Received: by mail-ej1-x62b.google.com with SMTP id mp20so4954738ejc.7 for ; Fri, 13 Jan 2023 03:19:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=nNpoWQlOxVCjJNH1/tWYzE33AytIwBJrxcIw+MQAk1E=; b=YAc09V0LuRBCbE9h978g2eWv0ESqP6iDhWXWiOscMziFrCnja1+oAglJvYPWVXDyep XnO+MwuT5Ni/nHQCK7FFduQEUsnuvZAYGSK9/yXWTieTtQHtpzzTVA1Ml55m7VmWx+6P zRAHT+4BEEdL4DuvH6N76tG9ubYIa2nC+/SyiBjNTB/QvLy/Ht16vTaHzU21TNNWDF3W yqo2S6QLzNOSk0lYNkTLXTJDC2Lo334xt+c13cr7mlnKkn/BDwY9ugO573ETe1C10mhb F5U35mauKmu0s76EfuaWK1vLqXfytEy/OI65pMShir1XBDs9PP0RyWsXN/sPkE+qxNgk KN0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=nNpoWQlOxVCjJNH1/tWYzE33AytIwBJrxcIw+MQAk1E=; b=E9zYDEbDSjXlc3AUj+MZQr10Z2ChKV6SVkpVhG/E9pBpqhBbYfhKT5PRQRjjnbjFCy OC/xpuC+Fv7Q3bJaVTZa8LzcTPyF3tG/z18vcwWhszhHEX8lW2SEGlXAhai8GWol9Jh5 LVwQT/ntORYDXSBMrEw27dtjAmoLucMRGQo8AtnGyu6QKNfJZb/RYRINc5ltpS+nnsM7 +0wStyynNe7E+wBDL840xNWJhqaVvicnh8kcsQpGEZI44Sm+D7saim0b4ZTZDa6zBNsl Aqc4rc9G92CDU0BuF/O6N6cAFQC4xFLyIDVb92LeCTbub9zpo5B1EoOLPGpfYvdirBvn 5qVQ== X-Gm-Message-State: AFqh2krU0wv0eX0il7aFk52QICtCaJzn29tHI0shBVdg2MfQzqoAL/l7 34mwq4iMDmEzXT5liVtuFCbkPQ== X-Received: by 2002:a17:907:6d26:b0:857:b916:94c1 with SMTP id sa38-20020a1709076d2600b00857b91694c1mr17660684ejc.61.1673608776266; Fri, 13 Jan 2023 03:19:36 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id 17-20020a170906059100b007c16f120aacsm8356105ejn.121.2023.01.13.03.19.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Jan 2023 03:19:35 -0800 (PST) Message-ID: Date: Fri, 13 Jan 2023 12:19:34 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH 2/2] clk: loongson1: Refactor to add devicetree support Content-Language: en-US To: Keguang Zhang , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski References: <20230113110738.1505973-1-keguang.zhang@gmail.com> <20230113110738.1505973-3-keguang.zhang@gmail.com> From: Krzysztof Kozlowski In-Reply-To: <20230113110738.1505973-3-keguang.zhang@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 On 13/01/2023 12:07, Keguang Zhang wrote: > This patch refactors Loongson-1 clock driver. > - Use CLK_OF_DECLARE() to declare the "early clocks" > required by of_clk_init() > - Merge clk-loongson1b.c and clk-loongson1c.c into one driver > because most of the differences between them will be moved to DT > - Add set_rate callback for ls1x_clk_divider > - Update the Kconfig/Makefile accordingly > - Update copyright > > Signed-off-by: Keguang Zhang > --- > drivers/clk/Makefile | 2 +- > drivers/clk/clk-loongson1.c | 348 +++++++++++++++++++++++++ No, this is not a refactor. This is removal and re-add. NAK. One change per commit, this is unreviewable. > drivers/clk/loongson1/Makefile | 4 - > drivers/clk/loongson1/clk-loongson1b.c | 118 --------- > drivers/clk/loongson1/clk-loongson1c.c | 95 ------- This is not explained at all. You are pushing some crappy vendor code here instead of merging with upstream code. Otherwise, explain the drop of directory. Why Loongson should be special? Best regards, Krzysztof