Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3907463rdb; Thu, 14 Sep 2023 06:30:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFaegqQyvl7bjTf/AQb4KcO7MdLY/cSkX7mjLtaWp/+MLDSSsPVQOh3x7+A4NrCILEqzFjz X-Received: by 2002:a9d:6b01:0:b0:6bc:8cd2:dd9c with SMTP id g1-20020a9d6b01000000b006bc8cd2dd9cmr5770894otp.36.1694698203388; Thu, 14 Sep 2023 06:30:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694698203; cv=none; d=google.com; s=arc-20160816; b=zG1PEoEpKFfahgdyRBIvvMXWbLr1VMdXCu5vcxB+IK6Jq/1pT/MjPlKuY3lqMoos4M VwiNL+jHNfWzdth2VByCBbNzMMM/vgw+EJnGBwMizYSeZis+ln3q3QgZnmoV3Yjm0Qdf ztAvSjqTOExtfZtGzNh02pzcfDnw7xYadvJ0HQFdRtFaVFjfuQrdstcg5M6lD7Zh+O4c BqTd8GgBxgDhNEVLmahjNgV3rPBJaMnKIRxkdOIP+yo3edvgf99Ayonk7AsT/20VbKP/ cmcJv3H7OH00FGKsAy2H47p/tIFgs4dVQzBAgfNZ3DvWNHyBtDPq9TCSkyHCkhU1V6Cw 4NvQ== 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=05+vxo8WHX2L1XVTCcan2TkO09eDiwRG+uW4ggSxZl4=; fh=/Zl1W2xIsUDh4Hm8y4wqunf82qFjBEuhBaMw8B9XUyE=; b=a1/gAdIBxfuUYLBv8ZxELUfg2uwiqCgsJbZYTmbCyoa2xdTEQZwcfQuST61rfgkLnH l8JrjfrT8zE53mh5Jl8+O0XohBIK8rPz6aYXkd+fzA0ZR4CEz7lK9Bk58NbeGL0E91/a PkbEcZu73TfAZEl2UStCc1T6wgvJO6AS7LAvmA5nhd8C4JygicBv1Fu4G6k92rgUDDTS KdXN0uST+4hi67xpKWpU1pL014HlB4V/KBNchN3hyfVzrdK3quHI+vGZOn15ZhPZg00p 6PIW+UL1hdZbjTjTXwM4aFijyxXN+PolU9TFcakF4QeSuyre2cIZx1QAXYi/BeO0JnLg m1/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id w23-20020a639357000000b00563e6fd0bf6si1499870pgm.792.2023.09.14.06.30.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 06:30:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 01B8080324D0; Thu, 14 Sep 2023 06:30:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234922AbjINN37 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 14 Sep 2023 09:29:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235397AbjINN36 (ORCPT ); Thu, 14 Sep 2023 09:29:58 -0400 Received: from mail-yw1-f176.google.com (mail-yw1-f176.google.com [209.85.128.176]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C7001FD8; Thu, 14 Sep 2023 06:29:54 -0700 (PDT) Received: by mail-yw1-f176.google.com with SMTP id 00721157ae682-5925e580f12so11411447b3.3; Thu, 14 Sep 2023 06:29:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694698193; x=1695302993; 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=MMgnSEID+xkECrUs/n98woQl+ojuPd0/IiG5nfXIn2c=; b=XzOelWPkiVoyl5RggkTcRd3uA415Z162tBB3CDrInXacj6nPzpABWMzAnB4PpROIua nR2OvbrozuiwByoF79OQHRDCan6qXryQHUomw5kleQQzv29QBpZtP3sYxbss6G4i3LxE 97Xg53EqVldYoAxzJM//+QVFXFWZevXujZSnY9zxdP3K/1DfM/4A9plmlOmrCB0+GBm3 XA5jHgzZxV0WAX1y8GFy/NYTrvbiYOfLTy50/dM7PZ31+aHSyVJvDMF/gkRAk9DKGQX9 6qxmEiymL97L0V71FfS1AZwdmxa+3sYzzO1KCXZXT4U4ChqHnnShTZnSMbjZMvIGn/Dp +OWg== X-Gm-Message-State: AOJu0YxRn2nJ1IhFRaj4ClhPlBwSXh4h7ibZXqSkuyZMCKL2ThaE198N QZMCbJOix1H0a/ZZQ7wH85OUT6gcwbaAjw== X-Received: by 2002:a81:7287:0:b0:59b:8da4:dc1 with SMTP id n129-20020a817287000000b0059b8da40dc1mr5820380ywc.38.1694698193125; Thu, 14 Sep 2023 06:29:53 -0700 (PDT) Received: from mail-yw1-f169.google.com (mail-yw1-f169.google.com. [209.85.128.169]) by smtp.gmail.com with ESMTPSA id h125-20020a816c83000000b00582fae92aa7sm318186ywc.93.2023.09.14.06.29.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Sep 2023 06:29:52 -0700 (PDT) Received: by mail-yw1-f169.google.com with SMTP id 00721157ae682-59bd2e19c95so11653557b3.0; Thu, 14 Sep 2023 06:29:52 -0700 (PDT) X-Received: by 2002:a0d:fe43:0:b0:589:c065:b419 with SMTP id o64-20020a0dfe43000000b00589c065b419mr5624958ywf.34.1694698192345; Thu, 14 Sep 2023 06:29:52 -0700 (PDT) MIME-Version: 1.0 References: <20230912045157.177966-1-claudiu.beznea.uj@bp.renesas.com> <20230912045157.177966-15-claudiu.beznea.uj@bp.renesas.com> In-Reply-To: <20230912045157.177966-15-claudiu.beznea.uj@bp.renesas.com> From: Geert Uytterhoeven Date: Thu, 14 Sep 2023 15:29:40 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 14/37] clk: renesas: rzg2l: use u32 for flag and mux_flags 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 (fry.vger.email [0.0.0.0]); Thu, 14 Sep 2023 06:30: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 fry.vger.email Hi Claudiu, On Tue, Sep 12, 2023 at 6:52 AM Claudiu wrote: > From: Claudiu Beznea > > flag and mux_flags are intended to keep bit masks. Use u32 type for it. > > Signed-off-by: Claudiu Beznea Thanks for your patch! > --- a/drivers/clk/renesas/rzg2l-cpg.h > +++ b/drivers/clk/renesas/rzg2l-cpg.h > @@ -92,8 +92,8 @@ struct cpg_core_clk { > unsigned int conf; > const struct clk_div_table *dtable; > const char * const *parent_names; > - int flag; > - int mux_flags; > + u32 flag; "flag" is used for several purposes, which expected different types: - clk_init_data.flags is unsigned long, - The clk_divider_flags parameter of clk_hw_register_divider_table() is u8, - The clk_divider_flags parameter of __clk_hw_register_divider() is u8, - The flags parameter of __devm_clk_hw_register_mux() is unsigned long. > + u32 mux_flags; Actually the clk_mux_flags parameter of __devm_clk_hw_register_mux() is u8. > int num_parents; > }; I guess u32 is fine for all. 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