Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6206845iob; Tue, 10 May 2022 12:50:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5zv9/3x1tSuN69pzks6PveTIhJupZ9YnqcmrEoehSLFQfC0KII8GKnYbyhF+YE6Ce+Vyu X-Received: by 2002:a17:90a:1f4f:b0:1d8:23d9:de1e with SMTP id y15-20020a17090a1f4f00b001d823d9de1emr1509584pjy.42.1652212248927; Tue, 10 May 2022 12:50:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652212248; cv=none; d=google.com; s=arc-20160816; b=ZR0FfF2mdC5Ku6p+2iza+2i98LdOp3u5ZajZ3ynaxPUzLeYGrvTelQ4MWNpJDmAJ+6 5NsEhGZlBeXAn37mlydfaHcGXtidVw/1nxcOjgZphUtUi6h7jh8wRSstorYWIXcnNwJl yK0Z46fi0W/j8816EeLoZLwZ/iSQkhSmog5Nq+mv2umt+J6kvLL3uCyg5yjhlCwHxNOF f1uA/G0bAoDbjzq+3+I84edKT9Ju3seX4VSl+viTiWcQ0wJ/QBh0sy+yvgZWthvFOl5u vKREIJDR5ATDqbpTrMMJ685FfMf4lHlunG+cvrZEAY0dqfL6xsaJC/6MQ1XY8GSLKyBP ivrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=3buBIN+IyWy8jl5QP9VpwtQkm+plR/re5/e7qWc+5iU=; b=qQYWwi0bhCWOiSajXlv6tV7Oz3fHsdAi8fcs0YaeLKTrDbYhh9qRC2AmLpT16+xg8+ oTMspjzChcHibnGSjUjZhUiNLrVZ6HR9+gxQAsujDwatYkbF5N5dA+SmLElY6QMWKluh 8h5WzwqsRqcEpR21zA9MjlF4ErW3VDyU+sr2obAx8QYHqq006Hq1TtdGKLAL43b8HL/v OqSemXyd0Wt9W+U1K4bTqA0TZIEr5fXBDLQKPuYiu7Gqyxd2PZkQDcQJ/YKAT9eCsu2B NiO0dqtGP0QNwcI0HsFR2GqhkEtSiSnDMkRP3/i6Er130fthmmOSQv8KWFkjfGLdx96I FYnA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y28-20020a637d1c000000b003c61f2570dcsi266884pgc.586.2022.05.10.12.50.33; Tue, 10 May 2022 12:50:48 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242877AbiEJPWq (ORCPT + 99 others); Tue, 10 May 2022 11:22:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346304AbiEJPW0 (ORCPT ); Tue, 10 May 2022 11:22:26 -0400 Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9412615801; Tue, 10 May 2022 08:05:57 -0700 (PDT) Received: by mail-qk1-f179.google.com with SMTP id a22so13410405qkl.5; Tue, 10 May 2022 08:05:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3buBIN+IyWy8jl5QP9VpwtQkm+plR/re5/e7qWc+5iU=; b=AWJKXpxp+wGGwAMKWY6y+evKTJCoZVs3h+VIwVPJfwKLd4pLNbtfdr0xx7+z1uTTEk JKBUHNgF+WQ+0+qjrENwv76LG5+6VLptTWDBSxbkjwi8gWec0JrpVqyXbNqsnmS5KPhN +CDihUjQZvmoqO57kS16Sj8KmMt9oqqlYsh+hhFN/7NI+BiEo1HvQ+3NoGdkXm2s4he3 vRqIIZKbU1OKdZ9pjirov8x6dgae33VGIjeKCRdxmJJm0tKaNuFWTIcarOe0+6rsASx+ QZ6AF5lXmtXkuStqKjxfmxPbeXSzoUSB9maW68zztRVQ973dfjNu8V7Wgct4rrpJ7B1p gRIw== X-Gm-Message-State: AOAM532uuyksx/gjRDZWZ1Yy7KL9FBNUgkOZ7SfhvmG3OFN7z7kauVYl LpSZ8fOBbpewL9kPJbmC33mOrPFtseit0A== X-Received: by 2002:a37:a351:0:b0:69f:cebf:5a7c with SMTP id m78-20020a37a351000000b0069fcebf5a7cmr15047972qke.740.1652195155971; Tue, 10 May 2022 08:05:55 -0700 (PDT) Received: from mail-yb1-f180.google.com (mail-yb1-f180.google.com. [209.85.219.180]) by smtp.gmail.com with ESMTPSA id az35-20020a05620a172300b0069fc13ce20bsm9138500qkb.60.2022.05.10.08.05.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 May 2022 08:05:55 -0700 (PDT) Received: by mail-yb1-f180.google.com with SMTP id x17so10700173ybj.3; Tue, 10 May 2022 08:05:55 -0700 (PDT) X-Received: by 2002:a25:6157:0:b0:645:8d0e:f782 with SMTP id v84-20020a256157000000b006458d0ef782mr20010518ybb.36.1652195155051; Tue, 10 May 2022 08:05:55 -0700 (PDT) MIME-Version: 1.0 References: <20220505193143.31826-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20220505193143.31826-3-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: <20220505193143.31826-3-prabhakar.mahadev-lad.rj@bp.renesas.com> From: Geert Uytterhoeven Date: Tue, 10 May 2022 17:05:43 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 2/4] clk: renesas: rzg2l-cpg: Add support to stack the resets instead of indexing To: Lad Prabhakar Cc: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , linux-clk , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux-Renesas , Linux Kernel Mailing List , Prabhakar , Biju Das , Phil Edworthy Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi Prabhakar, On Thu, May 5, 2022 at 9:32 PM Lad Prabhakar wrote: > Instead of indexing the resets, stack them and instead create an id member > in struct rzg2l_reset to store the index. With this approach for every id > we will have to loop through the resets array to match the id. > > This in preparation to add support for Renesas RZ/Five CPG in > r9a07g043-cpg.c file where the resets array will be split up into three > i.e. common and two SoC specific. > > Signed-off-by: Lad Prabhakar Thanks for your patch! An obvious alternative would be to allocate an array with pointers to the individual resets, like is done for clocks. Please see the suggestion in my reply to "[RFC PATCH 3/4] clk: renesas: r9a07g043: Split up core, module and resets array", which would make this patch unnecessary. 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