Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4398370iob; Sun, 8 May 2022 11:22:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVeQt9fV9c5ty72dipRYUHIbFBtN1bbjh1PMtPm/GP8oPf7tEK885bFSyFajFO4QmnjYSK X-Received: by 2002:a05:6a00:813:b0:50d:f198:287b with SMTP id m19-20020a056a00081300b0050df198287bmr12646592pfk.68.1652034149317; Sun, 08 May 2022 11:22:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652034149; cv=none; d=google.com; s=arc-20160816; b=cOCR2igKirjnRZRp9ylmfzGHvxocaqC2awAQJFn+JslKwrR6Mq8LvwRiJLWqAZ9xpU B6uI065B2832Hxg58o4vuFReiY/DCxfGMTdnxkdVH7Ny13ciXRZQSyOyC8c0ZFH8In2E EXtPoQGHKeG8JBP9IOCUotSBK77c93L34XRkAPtQNB/PYWjotcJxVhWbXzx0uDZa70Gb IfJsQbpq6/krmWof2lOnTJvCLqtS1RgxMGXwxPLv4WUSOGcn2Q9KU+Y6I2e/WaVY/RhP JS+3J+rorrlrJ93mIjuuKC+LSi87LEQKyghQNhD3u1yDO3eAMjo0e8Z3DzteyMuDPcJS ezww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=8oe3sfqDkyfNUlcgiBtlkeMr/xCKR9BR/x7tlYGAaAg=; b=dEz80nYkGfxvzfwdtxywMhWq7/W/tHfTFf0xziTySU3Pu5WxQAmaq2aJD/avDJeGQ1 whwnge1CTAJKVxG7V4W5OCtsyjOohoczM9JvDmGz+8sWVG6AsMi4XAiUlWJahdotrUyb unp7kb/KTW4YKkIQWY2Hit7e/x28lNBpyzyXVz1rd9aJmcdLX1xbRjkeQCG7JGrsn/80 dawgczE7MJ8ZyQIMZpKbIwChcwe2JFqxjFbRGDkNdNamnDyih4BwsHgnKmLlIDwPeAJL blIQn6NRX9whXx2cAvIv9qnKDG30TlwSjCvh4TJ8AvBMsXHzewNjnaxxVz7EhFJ9byOt QpNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cHpjKpSX; 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 8-20020a630008000000b00398009192c9si11939774pga.869.2022.05.08.11.22.10; Sun, 08 May 2022 11:22:29 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cHpjKpSX; 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 S1385910AbiEEVcu (ORCPT + 99 others); Thu, 5 May 2022 17:32:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1385560AbiEEVcs (ORCPT ); Thu, 5 May 2022 17:32:48 -0400 Received: from mail-oa1-x2a.google.com (mail-oa1-x2a.google.com [IPv6:2001:4860:4864:20::2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 901F950050; Thu, 5 May 2022 14:29:08 -0700 (PDT) Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-edeb6c3642so5509192fac.3; Thu, 05 May 2022 14:29:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=8oe3sfqDkyfNUlcgiBtlkeMr/xCKR9BR/x7tlYGAaAg=; b=cHpjKpSXs6kKH2wCI+zunweNKPfOCNIAvDTrpHekpLonqSfQxiUbe2GXfiulSuITgt 1RfU3k6AdLPHqIN4GdAADkktcMX2Bxba1aPbA/7ThNdj3kq5m2IoXZ/7wURcMGexW2rV T7jcUArbOzAgjQJhJPQ7RZ0qvr9QpruL+6vl7A21eL0SE2PDRs4yE+ZJ8je79f9+Z292 imKsIL1OUvBqfY6XBiUzFDMndPHbo4aGspHMmdgyoh+Yw29iBZcWlTIju4waxNV9JKk8 YADUp1qbHA/l5s/UqLpSEAKra8v9eGmfvkBEkyJzdsTgQNtWM74KUenL4Qa0is+Kib8c 51Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=8oe3sfqDkyfNUlcgiBtlkeMr/xCKR9BR/x7tlYGAaAg=; b=2zAkF6RoEgqgGsGR4mDIe+f7k2xObyGHpJgxxdCkBc9ny0E3odDns8IW/8DkXHUoTL iY/atcBbHQK6j+ZXHy2iJZxssj8nZ2qlYJg9wq8+iwdTEir41LGgsRNAimIlbt3K0XJZ wOkkQ6GEKirs7+fYBA13NgCnf/NxuAi6Y3HsfPNBKQYTJ0nfFuMB6UGli4nCeyXos3Au heQe2RdGSwi8KJljzc7ahZCMjFP+HJu5/3E/NO3+sndPDYmIseERcIjGpeeNzNBTU25I TUNjRCozrIvlKUlI5gBB8GHzg5QlVKxMtXWxkywmNZloaSHQ+naYa+6a2YBmeY12W7GU WHhg== X-Gm-Message-State: AOAM532AiIqEFQt3swPy6PbdwGczoFNnbg3gDu+E+8+b1ME0j6hyqoMs lTJtnfvsceSiUP/xsH1jWeaaD/9g1lcQeg== X-Received: by 2002:a05:6870:f206:b0:d6:ca78:94f0 with SMTP id t6-20020a056870f20600b000d6ca7894f0mr119445oao.4.1651786147940; Thu, 05 May 2022 14:29:07 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id i19-20020a9d1713000000b006062d346083sm1023918ota.22.2022.05.05.14.29.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 May 2022 14:29:07 -0700 (PDT) Sender: Guenter Roeck Date: Thu, 5 May 2022 14:29:05 -0700 From: Guenter Roeck To: "Hawkins, Nick" Cc: Arnd Bergmann , "Verdun, Jean-Marie" , "joel@jms.id.au" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Wim Van Sebroeck , "linux-watchdog@vger.kernel.org" Subject: Re: [PATCH v6 3/8] watchdog: hpe-wdt: Introduce HPE GXP Watchdog Message-ID: <20220505212905.GC1988522@roeck-us.net> References: <20220502204050.88316-1-nick.hawkins@hpe.com> <20220502204050.88316-3-nick.hawkins@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,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 On Wed, May 04, 2022 at 04:25:59PM +0000, Hawkins, Nick wrote: > > On Tue, May 3, 2022 at 6:53 PM Guenter Roeck wrote: > > > > 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. > > Hello Guenter, > > Given Arnd's feedback would you like me to proceed with this change still or do you have another recommendation? > Just leave it as is and add a note explaining why it is done that way. Guenter