Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp923257pxb; Fri, 22 Apr 2022 14:25:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxT0OomJRvG1woclYcbOkkD3NSM0ii1zp3sAt1EItXRY/qsJtYws+8JTstc4f+ckD3kenC/ X-Received: by 2002:a17:90a:d58b:b0:1cd:65dc:6a62 with SMTP id v11-20020a17090ad58b00b001cd65dc6a62mr18171697pju.89.1650662711831; Fri, 22 Apr 2022 14:25:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650662711; cv=none; d=google.com; s=arc-20160816; b=A58Ns4iINVmsbDwhbu4dk23JCGfoui3vNglDcS1GbICs3hDj49xzv+JSVzsjzAA/JH zcQ/4i/bhKGtKFUIaOkas7JoiDMenp40yfdSF4dP7lHIJrenIvLnUc+kJmVGNtAYPBJ8 k8PWJNIVHMRVleLIZtWDV4rTEy12+cRTNLvkdr0XYfN6ytMmQ7vJUaU5LM1XgKJduoXk bvYJHeG1oKtW7PIQwWV/VfHj7PXHKPV0C5VIYOLaPZuInONnO+J2Z8DizZrqZBwPbzGF 6AnCGxNXYRn+LbXPQizCE+kMuf2gAAAZoTKqvEfI2p+dHZnvSam2FGsmqwIGlfEQtAja Avag== 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=l6BLYZbK46wkdcnnOxfFS2Oxf2U44AbW8jIqKnhtcZ4=; b=YFkToBssYC8mLTMZqtdT/na9MNrF7G+qyQuc9e8lmYKdq7WBTk0P7ojXf0h2141oI4 Y/eYU1rx8nCdR3GdP/c6GDib3iiQMF4u7RQ9OMZcPfM7NgTKa5bNascRWpB+tICtfNf9 i2BTZr3xKIXhNJE29ZQkmdkrMrfmjrIRkTNV2kG9sEMh70NakJJPygrspAgszRagnlsn o1Oqq15YpPojgf907U/JaOpJ+cwTH+zC2B31zHYU2MW7ZGWt7UqwSPvqPDhayZfqKuOH +1zMgjy2g51eaV/6yOovHUoyUiclohmWHbSWanEZ+chRpLvQaE9d6xsJIymBZEnNrPKr mGCg== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id on16-20020a17090b1d1000b001c6acc3b2b3si13113673pjb.23.2022.04.22.14.25.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 14:25:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9CDFF2C99D3; Fri, 22 Apr 2022 12:32:18 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1447732AbiDVNTm (ORCPT + 99 others); Fri, 22 Apr 2022 09:19:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382795AbiDVNTk (ORCPT ); Fri, 22 Apr 2022 09:19:40 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA09E25E5 for ; Fri, 22 Apr 2022 06:16:46 -0700 (PDT) Received: from mail-wm1-f52.google.com ([209.85.128.52]) by mrelayeu.kundenserver.de (mreue108 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MvJwN-1nzh7M0svR-00rHxG for ; Fri, 22 Apr 2022 15:16:45 +0200 Received: by mail-wm1-f52.google.com with SMTP id p189so5077493wmp.3 for ; Fri, 22 Apr 2022 06:16:45 -0700 (PDT) X-Gm-Message-State: AOAM531iGHFXeGUwVj8Gmh3RsmMJ0VUNiVvWjhI6oI3kJ2snBJKdlV/I z6Qj2CNbPM/LkEK3kSeZ/9MrzFWP8QBVR45lh8A= X-Received: by 2002:a7b:ce15:0:b0:38e:b7b0:79be with SMTP id m21-20020a7bce15000000b0038eb7b079bemr4115953wmc.71.1650633404925; Fri, 22 Apr 2022 06:16:44 -0700 (PDT) MIME-Version: 1.0 References: <20220421192132.109954-1-nick.hawkins@hpe.com> <20220421192132.109954-5-nick.hawkins@hpe.com> In-Reply-To: <20220421192132.109954-5-nick.hawkins@hpe.com> From: Arnd Bergmann Date: Fri, 22 Apr 2022 15:16:28 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 04/11] clocksource/drivers: Add HPE GXP timer To: "Hawkins, Nick" Cc: "Verdun, Jean-Marie" , Joel Stanley , Arnd Bergmann , OpenBMC Maillist , Daniel Lezcano , Thomas Gleixner , Linux Kernel Mailing List , Linus Walleij Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:uCubFCJcZ/N0eeONv2BVz5YBAevzgnX+2Q71dXA8hfxHeMV93ph o0+CrLtcKUie79rTeJA9iKTxDNDQ26ANC4m8YdrgZL2Rge1NsT6lBoJXLZk7hJU/h0vZaaM 0c+8hfAWnGSdZh3UynnIDrahD0qvf3hDmN8EIpva9wHhX7xIHDJ6hOBYRd+GBZB+wWkWa5E vYpsRT743p4vwk0h0v8KQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:5RGaKzJ3408=:S1QyO4YzN5p0goxYBxCLvB uWTRuRTWJ39/S98VAksGJPHACHoEkFVPSZiVPevdELrGiD4lzTmucZUF562HYwCzhANPerwPA uuxMneArso5mAkKty/1AECPfe5OChe5tlIzY/VVBFWIQ0fMkdT0U+j3i3oAhfUWaDwRQs3HZa mgjzp4EqlfgUH5ffbfMhCA/MS0E/CKXDWnpMNIQmt/UhHFdA7zzrGe1cMQtc8oCfUovXTsYWk mBCjXUqyV4DyTcXB29tjCa2G9C+V+LajeSQHJH1ZDoNM5ipoQKMtBmVWBrxbb5m48ZYdf8C52 2L+5cgNuwa2dPlmwrQhyuAcXjzWb9xssQR21r9VO1JXaWBqFpH/u411jxeKzRl4q8H8bdt2vy bNtVkHZK4VlNxq0lkJ0BVeMssyYyT1hhDcRndt9CaQ5X3ZDOF61O5iTejdnA7c3RXqhZHyUW6 2b6X5ufDBzjYROL1pX/nYotnU4/w8nsJYgC5sIi1tQ+WWf9dDzxt42TgNW2WyRue/tQDjpiwx 38qpdBMLk+JI0pAAfS3y52p7GM6k30oxpReM+P4QHTERNb6GXfcFx0XsyYMqEuMwd7Mfm7F4Y Nw3Ow4YchzXJ+jXZvm+JDgTfzwvO+LamDDB3isO2Pkm3ZPEv9oaqrBh2hafaiVZmhZDtlKDMt 9OrdJelyYlvYDW/aasgjyFCA47Q+nCbLb41YkNws7CfiSbE87fWlI4O3csthvhDKi3XDR0wu8 yrSh0b9yAtFQ/KuibvC/9SzT1Ih2XijqtbWE2qi3fC96uRwNiHMkrvwnmj6xlfh4yS1FqB7Gi MFj7nyZyhwWdkdlSTt5vAvGCtTVX5TuYHXYNVzbVxUWly3GLeg= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE 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 On Thu, Apr 21, 2022 at 9:21 PM wrote: > + > +static struct platform_device gxp_watchdog_device = { > + .name = "gxp-wdt", > + .id = -1, > +}; > +/* > + * This probe gets called after the timer is already up and running. This will create > + * the watchdog device as a child since the registers are shared. > + */ > + > +static int gxp_timer_probe(struct platform_device *pdev) > +{ > + struct device *dev = &pdev->dev; > + > + /* Pass the base address (counter) as platform data and nothing else */ > + gxp_watchdog_device.dev.platform_data = local_gxp_timer->counter; > + gxp_watchdog_device.dev.parent = dev; > + return platform_device_register(&gxp_watchdog_device); > +} I don't understand what this is about: the device should be created from DT, not defined statically in the code. There are multiple ways of creating a platform_device from a DT node, or you can allocate one here, but static definitions are generally a mistake. I see that you copied this from the ixp4xx driver, so I think we should fix this there as well. Arnd