Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3890956rdb; Thu, 14 Sep 2023 06:05:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGjP40Y4IM9IyN9oZsRctAa2aU25n6TQaSOVI8jzoDWTAyku67ajCLlryKRKhiqnfdZ/ASz X-Received: by 2002:a05:6358:1814:b0:142:e7cd:f04b with SMTP id u20-20020a056358181400b00142e7cdf04bmr3387579rwm.0.1694696720574; Thu, 14 Sep 2023 06:05:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694696720; cv=none; d=google.com; s=arc-20160816; b=uZVeis6yiZOB02QUsY1/MteBEoF1aCoLAMhZxtetpdJKN7i0XfFQGoPlssRDEDWSx7 cjqDsAFc5WCsAQod2S4kn4eMOuPj/Elh6TNnJ+dkFUf0fw90lzN4H68PN87ijgQgx1VG ZwuN6ZzYjwbPHYL17jQN9fxizz2vTKSqUC5FnAHFccAqvcAj0EKWviAJxe8nPOSQZstw PS/QaK+UoEF8NU5T7OpbaJubl/UqzRqb6mHP8wpliSl072u0CnhgSOgdyQFHRhXqJ+eQ bN0kC2QB43QATkIcjGzzn9rCcAAmebaQzLwH+CnrOTWd2KvWOP6WTTLfYj+k/DlaiDYm PraQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=XOxGDiBTpNv34CNn3/MxQxvSDE6vK0GnoRHlBNWHS8U=; fh=/Zl1W2xIsUDh4Hm8y4wqunf82qFjBEuhBaMw8B9XUyE=; b=dAJsqW5GRbFakdvfRB6IERgRM8IJ0XXyriv6o8AHGu/57afgigMFg8bRPHO6U5Dr6/ 0MCTUAfZkwkmCL7YC48wUTYqBi6VEyKZHhsHn3m1jVQuuYcOLgEE6a7BzKGvuNUz5VWK YzPBYaK4QCzfh9vE+dwDGp4VhO3v5gXp6K4z4eZ4JPNcKlR7/IEAXbDsWZ+u4+V3aDd8 y1hk40jNCm5ySBlXuVpPsnv3HEGJzTbxMV9Xk2r6DmfHRgQRkZgMMOGil83XnKTbvbxM HJ5q6aMH9ehrSnrMpd4wose+bjFplzVgip5RhfQB8IVPo5Ltf7jKmHAJN7X3IcGx6of4 orfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id y126-20020a636484000000b00573e5539422si1534629pgb.890.2023.09.14.06.05.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 06:05:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 8127F833938B; Thu, 14 Sep 2023 06:05:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238670AbjINNFA convert rfc822-to-8bit (ORCPT + 99 others); Thu, 14 Sep 2023 09:05:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238629AbjINNE6 (ORCPT ); Thu, 14 Sep 2023 09:04:58 -0400 Received: from mail-yb1-f177.google.com (mail-yb1-f177.google.com [209.85.219.177]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCF041FDD; Thu, 14 Sep 2023 06:04:54 -0700 (PDT) Received: by mail-yb1-f177.google.com with SMTP id 3f1490d57ef6-d81b42a3108so150176276.1; Thu, 14 Sep 2023 06:04:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694696693; x=1695301493; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MKZM3IUDKJvPoIca4YBGFuMY+PB7MhRe0/Yx688KnKo=; b=KhmfUy2QRV2s7ju8uNn65nSvainfdisVM9ZkyTKnsvpNTYZVl0roMj+fzb4LLrZ96z mtWahyDsPmpsJIbgNazemNz4lbrYIuThgEugf99IKN8A0JBPmdLcdaC0oY24TeJgdoJZ 2SpK2uHIq1kkewJalBIfG92KENq0jhcIDlPnm+UYOM2YY1+gr9ekhHRbhykhDgRPiqBC doJFhOctQ1nS2w0764rsDeQFLe53bommwAE3we+LYMP0SMjimSOPaGL10wUdLyUuNQdq 2do/SF/xMzyC9kksn/CvpK51wf0xS123etic57z7EVZXP84g7sPS54lnxOyuUy1GeYu8 Sfug== X-Gm-Message-State: AOJu0YzBjlC5L8iLTPklkd3q8pY+tKFPw9nUKqKv5LgQfGgL32t2s6Iz yURX2gG3umsaXJnByvihCdAkNCyco8DWxA== X-Received: by 2002:a05:6902:1149:b0:d78:3492:3333 with SMTP id p9-20020a056902114900b00d7834923333mr6188948ybu.7.1694696693314; Thu, 14 Sep 2023 06:04:53 -0700 (PDT) Received: from mail-yw1-f170.google.com (mail-yw1-f170.google.com. [209.85.128.170]) by smtp.gmail.com with ESMTPSA id y126-20020a253284000000b00d7bb3c4893fsm321844yby.8.2023.09.14.06.04.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Sep 2023 06:04:52 -0700 (PDT) Received: by mail-yw1-f170.google.com with SMTP id 00721157ae682-59be6bcf408so10777267b3.2; Thu, 14 Sep 2023 06:04:52 -0700 (PDT) X-Received: by 2002:a25:d28b:0:b0:d81:b499:2e85 with SMTP id j133-20020a25d28b000000b00d81b4992e85mr365829ybg.47.1694696691965; Thu, 14 Sep 2023 06:04:51 -0700 (PDT) MIME-Version: 1.0 References: <20230912045157.177966-1-claudiu.beznea.uj@bp.renesas.com> <20230912045157.177966-11-claudiu.beznea.uj@bp.renesas.com> In-Reply-To: <20230912045157.177966-11-claudiu.beznea.uj@bp.renesas.com> From: Geert Uytterhoeven Date: Thu, 14 Sep 2023 15:04:39 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 10/37] clk: renesas: rzg2l: use core->name for clock name To: Claudiu Cc: mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, ulf.hansson@linaro.org, linus.walleij@linaro.org, gregkh@linuxfoundation.org, jirislaby@kernel.org, magnus.damm@gmail.com, catalin.marinas@arm.com, will@kernel.org, prabhakar.mahadev-lad.rj@bp.renesas.com, biju.das.jz@bp.renesas.com, quic_bjorande@quicinc.com, arnd@arndb.de, konrad.dybcio@linaro.org, neil.armstrong@linaro.org, nfraprado@collabora.com, rafal@milecki.pl, wsa+renesas@sang-engineering.com, linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-gpio@vger.kernel.org, linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Claudiu Beznea Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Thu, 14 Sep 2023 06:05:01 -0700 (PDT) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Hi Claudiu, On Tue, Sep 12, 2023 at 6:52 AM Claudiu wrote: > From: Claudiu Beznea > > core->name already contains the clock name thus, there is no > need to check the GET_SHIFT(core->conf) to decide on it. > > Signed-off-by: Claudiu Beznea Thanks for your patch! > --- a/drivers/clk/renesas/rzg2l-cpg.c > +++ b/drivers/clk/renesas/rzg2l-cpg.c > @@ -266,7 +266,7 @@ rzg2l_cpg_sd_mux_clk_register(const struct cpg_core_clk *core, > clk_hw_data->priv = priv; > clk_hw_data->conf = core->conf; > > - init.name = GET_SHIFT(core->conf) ? "sd1" : "sd0"; > + init.name = core->name; Note that this does change the case of the names (e.g. "SD0" => "sd0"). I guess no one cares... > init.ops = &rzg2l_cpg_sd_clk_mux_ops; > init.flags = 0; > init.num_parents = core->num_parents; Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds