Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp526706iob; Wed, 4 May 2022 02:08:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAmHfA0wNmTTmtT9MFEM32Hm2p8wQjh5CeLbk1SX92NSnAQiAozE0PIMx7fbWUB7+nOMsB X-Received: by 2002:a65:6216:0:b0:39d:5e6c:7578 with SMTP id d22-20020a656216000000b0039d5e6c7578mr16903535pgv.114.1651655320657; Wed, 04 May 2022 02:08:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651655320; cv=none; d=google.com; s=arc-20160816; b=JS0cks9QjVsKOGmFXEXm+T0oXPFEwIOGqICBFTe/ZOfrw75qoNn4TNBYo1tcrp7Iye RuAmc4uVemb3gpA8SDWOuUmJR9aCEG5dlLT8p1JQ0BtSfOOvyyrbXY6hodjQmncFEa9d UunyvXHCB5q3NYRQydnZ58J7gg556NZZ/UsfGhsJgW1E0URZE1mZqfaULMJKrwElwELi 0+j+2rssylnpxC6lYdttl1zYGsJvDgSp8Lb00GN4iFy3tUTIjDoUy/E+amk/FVOd+nel tBjC4yl5ep2hDFov+BaUewScVpaht3c+5rhcSxDKjr9B34YAIrU0XmW674CWqUyzBAH4 kpag== 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=cQYDw0yLcsDG5tk5mSK3UMj54Cb28BXajKX5QpIMxfo=; b=vOw6uWmoTdqk9+xCZ7RrX9EXvrbCAwbZWWlyr749MHeQRWpvfTw2nUmra/gLlXU3qY OY+Z6VfS7i9u1antNe7236tuWvG1R0lP1RqIM8lY/zF9ld/ZFPR3q63DnuTZTfIfoj4F Te1vBGGEN1LkFnqg2BFlPsKIvy2ZWqUDZZCxAUssAjy5Ud6LGuQf/gjDjA/YYiIaW5DY 1eXW/A3Lp1byEQxJWGIMcdSRYiblwPbv1UlTWKX+o3NXB6VL8I2FZ+oJlQ36sDSUN7/a up1sK46v6o70DtEM2vmavBi/wZwWuT6zNu2y1NFRkidWYSgJdTvpKNY5g6y9kjHOcBrb H08A== 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 m1-20020a656a01000000b003aa38e78d18si22784826pgu.488.2022.05.04.02.08.24; Wed, 04 May 2022 02:08:40 -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 S238585AbiECSzv convert rfc822-to-8bit (ORCPT + 99 others); Tue, 3 May 2022 14:55:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238360AbiECSzt (ORCPT ); Tue, 3 May 2022 14:55:49 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30A7F3E0E0; Tue, 3 May 2022 11:52:16 -0700 (PDT) Received: from mail-wm1-f44.google.com ([209.85.128.44]) by mrelayeu.kundenserver.de (mreue010 [213.165.67.97]) with ESMTPSA (Nemesis) id 1MfpjF-1oInGp2N1F-00gLLA; Tue, 03 May 2022 20:52:14 +0200 Received: by mail-wm1-f44.google.com with SMTP id m2-20020a1ca302000000b003943bc63f98so1769167wme.4; Tue, 03 May 2022 11:52:14 -0700 (PDT) X-Gm-Message-State: AOAM531mzLg7si5OAq0avNV7Ha2RpN2utcqpOAAJNsLPB1OYJjpgBt4d vwYVHNzEcBtKbozSwA5OdlfT8VdifWlYpNA3a1I= X-Received: by 2002:a05:600c:3798:b0:394:454a:df74 with SMTP id o24-20020a05600c379800b00394454adf74mr4638390wmr.174.1651603934090; Tue, 03 May 2022 11:52:14 -0700 (PDT) MIME-Version: 1.0 References: <20220502204050.88316-1-nick.hawkins@hpe.com> <20220502204050.88316-3-nick.hawkins@hpe.com> In-Reply-To: From: Arnd Bergmann Date: Tue, 3 May 2022 20:51:57 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v6 3/8] watchdog: hpe-wdt: Introduce HPE GXP Watchdog To: Guenter Roeck Cc: "Hawkins, Nick" , "Verdun, Jean-Marie" , "joel@jms.id.au" , "arnd@arndb.de" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Wim Van Sebroeck , "linux-watchdog@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Provags-ID: V03:K1:U4Q3GC1XA3xQUfqfYUAqUs40vRqbuQ4M4ZUBsrPkjaagSx/jyAQ J3MK6Z/c6xsuExGG6rYPEuC1OzYjwVUoUZQEaw9v4RrefEuaS8OQQLA/B8um/lhv/pnbMOM J3c8pUl3Ay7x5rELZK8VeIpt8D6IRWbipD/JSwl6QD/ySHMuIj4R0x4d+K1gULdGqENm4hj 6K8U7fcnotJEkw/lX8GHg== X-UI-Out-Filterresults: notjunk:1;V03:K0:mXH/6uPB0SQ=:TQj7BbkSos/c8vFS/FfPZo k2+zWJClfrIg25JFLA7FHiSiqLn/vqxyPkXofUHSbowXYlSkDMx9ez5HwQ1lhOo9KF0X2wmf2 Ts1ucpiGFj628/af05DUOKG1wey72uJrnqyZMSnl9AHOqyRY8cl0qfPMN19hRZJv18RAzK/QV p5XQw4sxtkLUOwylzZvXfJiF0PGvQIz0x5/ghdKNPY8EPp8JTWbvhEIDTAPKdOq6b9QKyYWFP M8wTaFMtuLGRALxUcL8Rk4vlZj3faYwoo8XE0/CbdyHpnfIN+Kg4mEIUhewGUOcWwGPUfXsIm s7uQaqNBAplOd64gUgz7nyz0IoDO7WrcbWh+PbHtc6e7znl4BG3YBo500nUdme+HGVbG6w75A MJq9aHg1OHYKEQ89szzkZUDVcIvYiBt9PcFoYQszyxYlA7vgIi1cH2CQbfuGnwhvj5BaTfLc0 8lK6mgvjR/UmHvoP+ddbCDT0Ti3e0ZY/T7ViYZFTyR1+dtjNUEMXAreQzoUE25vXmZ/6nCSkP OGAT0Oa93kTKu7ejJzQUI0gxKnrNl5o2ZELpqajGRNXekasaxALrcPcGWsqGtrKblxM4/Jf1b AQtyVjo1bhjQBT0fNbTz5D9/78LZuXjH3Tn7bw31aycmxH3dd4SoT1RDAGJFeuos6LUQ4iIlo 1QQmJTpGFhscOgDAC2oNkeeCrPS95o78N92b0Jq3453My/fxY9OfpsPVdzbKPkr6A8/ga1ROf v7l8cm4u+o3HUAhfloMuNi49t4sTsyzLp1B72yrEh7/YJD3LrPZWkolHsFVHe13wbS2NVLinV +DrM9bL7hOs9YgGhEj2oPCk0whFqPewVYqkBBddeKBL3artB4Q= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, 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 Tue, May 3, 2022 at 6:53 PM Guenter Roeck wrote: > > Just to clarify for my understanding are you asking that in the device structure I use the "void *platform_data" to pass "struct *resource"? If I am incorrect here can you elaborate on what you would like to be done? Based on feedback in review for the device tree; the watchdog is being created as a child to the timer. Therefore the conclusion reached was there should not be a gxp-wdt listed in the device tree files. I took this implementation based on what I found in ixp4xx_wdt.c. > > > > One bad deed tends to multiply. > > No, I didn't ask to pass a struct resource as platform data. > That would be no different to the current code. Resources > can be added to a platform device using > platform_device_add_resources(), and the platform driver > can then use platform_get_resource() to use it. This > would make it independent of a "private" mechanism. Unfortunately there is no resource type for __iomem tokens, only for physical addresses, so you'd end up having to do ioremap() of the same address twice to map it into both the timer and the watchdog driver . Not the end of the world of course, but that doesn't seem much better than abusing the device private data. Arnd