Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2912774pxb; Mon, 4 Apr 2022 02:37:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHjfscII7p8soonZ/L30/d7LnkbjjhJ5UgSifwdaebu2zSjOfuwJAiyEzTLQMLGgQ9bw4d X-Received: by 2002:a17:906:e28a:b0:6d6:e2e9:d39d with SMTP id gg10-20020a170906e28a00b006d6e2e9d39dmr9903552ejb.2.1649065059822; Mon, 04 Apr 2022 02:37:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649065059; cv=none; d=google.com; s=arc-20160816; b=JOONf16BK2cKVmxNpKZSp5T1aWqH4dpv+0sZCwCKV7w5Qth73F/PCQBeEU385coSIZ /n9XoZqyeSGwDBdRKcXmdI7hevQi64oyw1yyv6CC3wajL6i5qGa/cqIUAFNyuTv2LsnW QxJaXJN9Pz0P4gA5UXoq3jlBYqfS6I39+XZPcqzc1HMeHbePXvmdLbyMnxWY5xAfP2kv QPMzdTR/xqAIE819EhRXnG9cg/da1kI4tBpn84qacXXrec1XffILA04cir/enq6xC5Hr qaDq4fQsqArt92a6WEMtPIkJjHF2MNPoPdxVGDsa+kX9INzQ5iogoyk2AXZ4D0H/Yk/l uskw== 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=CfmJoS+e5GHchwA1QsCqzv5jPPoxZGTZ0+HnJWBvrK0=; b=nH1ozZE7nDec7EkI9eFhvdRmjBD5EJg7p9YCZRKYYLPdksV2qJZbIQKa+M5Haz4t4N 6iDrne2Xt5rb+tdBbLLZNwoEZM5mbfq36r1VMN1eUK1h0qIV9MboqfpL1Q3Dsjs2He0a GP6zBc0mABdb5d0ed4YEst7r805OP+Bmt0TG7Lw52VgRiTV0pELD5YGdvPS0+AaA5gM5 9xKyuRZP4iekZzYRppBTaULcWuXzTv5bsvZUGawkJ3O50z+kKj3o73ESDmmoNV+Ae9gS SHm9CzA6CopX+cL1sEHxG9JVXcE6O1G1UfuErGgRKGcd9Gle3zjPSv72GIQX3R6EShVK qpTQ== 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 m13-20020a1709062b8d00b006e501b5a951si4583257ejg.436.2022.04.04.02.37.14; Mon, 04 Apr 2022 02:37:39 -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 S1349434AbiDAQrO (ORCPT + 99 others); Fri, 1 Apr 2022 12:47:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237935AbiDAQqy (ORCPT ); Fri, 1 Apr 2022 12:46:54 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6C8317538E; Fri, 1 Apr 2022 09:30:44 -0700 (PDT) Received: from mail-wr1-f48.google.com ([209.85.221.48]) by mrelayeu.kundenserver.de (mreue107 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MBV2f-1njMa5405P-00Cxum; Fri, 01 Apr 2022 18:30:42 +0200 Received: by mail-wr1-f48.google.com with SMTP id a1so4983431wrh.10; Fri, 01 Apr 2022 09:30:42 -0700 (PDT) X-Gm-Message-State: AOAM530/9HCvGSlUlFqYsP/Q6kheaWgJR1MaN73BcwFIzrmh8Ju7Trkj 2sRXtxRCppih6RA8YqHgfl2SYVs7TLrnAvMALkQ= X-Received: by 2002:a5d:6505:0:b0:205:9a98:e184 with SMTP id x5-20020a5d6505000000b002059a98e184mr7945225wru.317.1648830642616; Fri, 01 Apr 2022 09:30:42 -0700 (PDT) MIME-Version: 1.0 References: <20220310195229.109477-1-nick.hawkins@hpe.com> <20220310195229.109477-9-nick.hawkins@hpe.com> In-Reply-To: From: Arnd Bergmann Date: Fri, 1 Apr 2022 18:30:26 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 09/10] arch: arm: boot: dts: Introduce HPE GXP Device tree To: "Hawkins, Nick" Cc: Arnd Bergmann , "Verdun, Jean-Marie" , Olof Johansson , "soc@kernel.org" , Rob Herring , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:84PbHfFG5R9zbToAhkEPIpwjYnxkYlxV/K9XYUjBvXOtkiu+8FQ QXjcJOduBQgVN5KragQSgNoCXzJqn+s8Bi9Pp8D1mRrMbhKjyjg591UBXDMgaCbnAmDunKc F6jGbc0k0zK4Ixoqj76JeLfvtNwbjbBUkIhuIRWrA0K14fqdeVibUXQu6LhFWN8A6sHOMuh cTrEG3AETbYz2RZbN1tEw== X-UI-Out-Filterresults: notjunk:1;V03:K0:q9uoNhZXOGg=:1IsjX1XJhmT1vpiN/5tmJH kC54m8v8t3IlTw4yixztjjgyXmEEc9PLyCIbyXcwYQ8T9Pxt9QL7Xc3ALL2mB2t4LW3neROLY kcj5tivv+GW3w+Ru1yC6cGIr/u0zdeXOMJaVo0ibc8NB9O1dRt3x/IKFxk42U8rwMApqksBNj QlNNxxuRHkBwz6/X9Nx2xEw3+kkgLKAYqmpzbNpG1g+g2hVHDc+W/R51oeFIYL+nmdlnL57nl tMMTty/rpgl3N0QJTdZhr2+dxzIcrzdh9exEud5rTPMi2AiX0hPUXsxu5T1GU1lXBpagFO7CS yZi3YsktojyQ3fRyKriYJ3WDa4jpfN2AC1WR5PE7w3Tc9fSgbctIet6AKU5BLaK4UBnT1Aaus d9OVEL3jj0j1tszhUIzJKN2YZlrioS5pyxfhgLBnGU1SXCl3EXNHmRjKzhlpXW0A6zs3D+QNv UXyYhXqPTAOXhmlz0FvCKVoj3suxvWL2Deund07ubxIQmsGjDdq0qSR7WOaFDdGcc0NET0WPm 2rQlMHAm3nHB4NzdTIIk++XaZAZO36wGS/RvDwBUPbrR512fGcHr865VF3OSRh9yANPoXy6OC HW93bQ9egkv5w/oeyF8sElTAmfN+gbpOGXDQiAv5I5tDoOWlDFJw/xtnPIPQ9BuA+uc/U+XDP rcw+TxD7+29bnsbsuc9kqYsBKEwG/3blSiK/zO+yjchDEw0azZ6dTVF5fM/v3H8sZwGk= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, 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 On Fri, Apr 1, 2022 at 6:05 PM Hawkins, Nick wrote: > > I don't think you can do this, if you are using the syscon regmap, you go through the regmap indirection rather than accessing the mmio register by virtual address, and this may result in some extra code in your driver, and a little runtime overhead. > > > If you prefer to avoid that, you can go back to having the timer node as the parent, but without being a syscon. In this case, the watchdog would be handled in one of these ways: > > > a) a child device gets created from the clocksource driver and bound to the > watchdog driver, which then uses a private interface between the clocksource > and the watchdog to access the registers > > > b) the clocksource driver itself registers as a watchdog driver, without > having a separate driver module > > > One thing to consider is whether the register range here contains any registers that may be used in another driver, e.g. a second timer, a PWM, or a clk controller. If not, you are fairly free to pick any of these approaches. > > I will try to use the b) approach everything in that range is timer or watchdog related. There is a second timer however there are no plans on using that. Should the combined code still live inside the driver/timer directory or should it be moved to mfd? I would put it into drivers/clocksource/, I don't think drivers/mtd would be any better, but there is a chance that the clocksource maintainers don't want to have the watchdog code in their tree. Arnd