From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 738F0C433EF for ; Tue, 2 Nov 2021 10:25:06 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3619460E74 for ; Tue, 2 Nov 2021 10:25:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3619460E74 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=alpha.franken.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kV2EhQbFnBMZovu+3vtBMFbcCWi5WAGnh3HhHCUJ2y4=; b=Nnx1NGhhx4TCIb HJjaX8ZlWACOYmWms6bV8Z2u59PgV/1ZcQUY703D53LNt9XPkSDFecYKrs+QtN7FnHn2E7BwprQ8v sY6kaoaoe7j5M87WmWaqXWT3U+cEeiqQCq5Vp2CZzvg7c2rqpR0HYVnbc9C+kWoZwFgzyuePmdoo1 3wk3MsLTtpUk53L6rmJH7eAWC4xllx1PDQ9xGdi68kNMXXfGKp3UzTAfkfUFfHJaVSeVdMw6JN4GB DOBiIgP/y9LuM2G96PATvEqKsbtdKnwTYjIeR6Hlny3fqqH8MFnbtbeV8TmNoZVLnEx+LAa+GWZnI XtWlVMazC8d78o2Ze+Wg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mhqxG-001K13-QA; Tue, 02 Nov 2021 10:23:46 +0000 Received: from elvis.franken.de ([193.175.24.41]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mhqxC-001K0B-Dv for linux-arm-kernel@lists.infradead.org; Tue, 02 Nov 2021 10:23:43 +0000 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1mhqx9-0003gx-00; Tue, 02 Nov 2021 11:23:39 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id C3EB6C2836; Tue, 2 Nov 2021 11:19:38 +0100 (CET) Date: Tue, 2 Nov 2021 11:19:38 +0100 From: Thomas Bogendoerfer To: Florian Fainelli Cc: linux-kernel@vger.kernel.org, rafal@milecki.pl, Wim Van Sebroeck , Guenter Roeck , Rob Herring , "maintainer:BROADCOM BCM63XX ARM ARCHITECTURE" , Justin Chen , "open list:WATCHDOG DEVICE DRIVERS" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "open list:MIPS" , "moderated list:BROADCOM BCM63XX ARM ARCHITECTURE" Subject: Re: [PATCH 6/7] MIPS: BCM63XX: Provide platform data to watchdog device Message-ID: <20211102101938.GA7475@alpha.franken.de> References: <20211028172322.4021440-1-f.fainelli@gmail.com> <20211028172322.4021440-7-f.fainelli@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20211028172322.4021440-7-f.fainelli@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211102_032342_830007_9CAE49EA X-CRM114-Status: GOOD ( 20.92 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Oct 28, 2021 at 10:23:21AM -0700, Florian Fainelli wrote: > In order to utilize the bcm7038_wdt.c driver which needs to know the > clock name to obtain, pass it via platform data using the > bcm7038_wdt_platform_data structure. > > Signed-off-by: Florian Fainelli > --- > arch/mips/bcm63xx/dev-wdt.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/arch/mips/bcm63xx/dev-wdt.c b/arch/mips/bcm63xx/dev-wdt.c > index 2a2346a99bcb..42130914a3c2 100644 > --- a/arch/mips/bcm63xx/dev-wdt.c > +++ b/arch/mips/bcm63xx/dev-wdt.c > @@ -9,6 +9,7 @@ > #include > #include > #include > +#include > #include > > static struct resource wdt_resources[] = { > @@ -19,11 +20,18 @@ static struct resource wdt_resources[] = { > }, > }; > > +static struct bcm7038_wdt_platform_data bcm63xx_wdt_pdata = { > + .clk_name = "periph", > +}; > + > static struct platform_device bcm63xx_wdt_device = { > .name = "bcm63xx-wdt", > .id = -1, > .num_resources = ARRAY_SIZE(wdt_resources), > .resource = wdt_resources, > + .dev = { > + .platform_data = &bcm63xx_wdt_pdata, > + }, > }; > > int __init bcm63xx_wdt_register(void) > -- > 2.25.1 Acked-by: Thomas Bogendoerfer -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ] _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel