Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5406888ybl; Tue, 14 Jan 2020 08:25:28 -0800 (PST) X-Google-Smtp-Source: APXvYqyN1/b5InUG3pkGzdpF/gnO6DmdbOx7zpFYOb1ttuoxypq6XoZJbVDtzq4bclnqfWiQsTPU X-Received: by 2002:a05:6808:b13:: with SMTP id s19mr16359552oij.119.1579019128820; Tue, 14 Jan 2020 08:25:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579019128; cv=none; d=google.com; s=arc-20160816; b=W7J16vKMNJGwVTUqX42ZW/vhUzuqPc/MhToKTuxPurEeFclLjeu45+r69ft3anER3p yjcMh9zwAEPRgLLrvaPJUxmVECZiYb4EpMZlMYijwQBsrJzvJE1TZp1D7ZYfstmtmBSj Va+lnxV9MUaUZ8eWRYOTBbxe4QyMM5me1uZnkfezRjR1QNXE8pRv2Rg1WxO4p1ZCtgb2 wDn5CYZO3CIhr7fFGpzAxSQmd7gtG0apLEnJg/6LfU5wjHnsUvqvkRIlCO+Q+OlVpXbV 0Eu++MyXaiNIvjQj24EGbCtrjQmjQOkOKSv6abLYz4ZT+ePkkZZ/SOVpD8TDJDPKNS/l z71Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=j5fEChgKMGmbvAEEvx+Li+esZQ/wRaC1358YhBviQ+U=; b=Nb4xuKlvAk2g8catMrMNFM+A1JofLnp/hqodwsF2fJD+WoIiOS22YhqzwuAtyahZaD 2YRA+gyfl9H2ipdMTPOPYXmkSL19G3nFMn3JkPXPnq3LL1AMYCLQa84MEVGJKDaECxHx DZPP+kJi90xhuln3+Wv/iN0XKL9APzMFBDhlzKBz+FjsDTxAo44s0fh21PJFt4VW6H5m t/1CqahY1C9sVAcjTspiSovtPuSL6mEC8LREKsp62vyx09wP0Ka2aAVhx2SEJ7u+vhts b5KCDpbFcbv6PamZcn+Y63L4quoL3baKTFBR/rYUkybh3QC5FcQAEIXVSZGwSDymKPUS efdQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j16si9061844otq.23.2020.01.14.08.25.17; Tue, 14 Jan 2020 08:25:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728708AbgANQYU (ORCPT + 99 others); Tue, 14 Jan 2020 11:24:20 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:54181 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726053AbgANQYT (ORCPT ); Tue, 14 Jan 2020 11:24:19 -0500 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1irOz2-0004VT-7w; Tue, 14 Jan 2020 17:24:00 +0100 Received: from mfe by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1irOz1-0004qL-Lg; Tue, 14 Jan 2020 17:23:59 +0100 Date: Tue, 14 Jan 2020 17:23:59 +0100 From: Marco Felsch To: Adam Thomson Cc: Support Opensource , "linux@roeck-us.net" , "robh+dt@kernel.org" , "lee.jones@linaro.org" , Steve Twiss , "linux-watchdog@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "kernel@pengutronix.de" Subject: Re: [PATCH 1/3] mfd: da9062: fix watchdog compatible string Message-ID: <20200114162359.weoirknje6yhcmds@pengutronix.de> References: <20200108095704.23233-1-m.felsch@pengutronix.de> <20200108095704.23233-2-m.felsch@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 17:20:29 up 60 days, 7:39, 57 users, load average: 0.47, 0.25, 0.09 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20-01-14 16:19, Adam Thomson wrote: > On 08 January 2020 09:57, Marco Felsch wrote: > > > The watchdog driver compatible is "dlg,da9062-watchdog" and not > > "dlg,da9062-wdt". Therefore the mfd-core can't populate the of_node and > > fwnode. As result the watchdog driver can't parse the devicetree. > > > > I do agree there's a mismatch between the documentation and the MFD code. > So in your DT are you specifying 'dlg,da9062-watchdog' and not 'dlg,da9062-wdt' > hence the issue? Are there any existing users who are using 'dlg,da9062-wdt' in > their DT instead? Yes the upstream available DT I'm currently using is: arch/arm/boot/dts/imx6qdl-phytec-phycore-som.dtsi. I grep the code and found no _upstream_ user of 'dlg,da9062-wdt' also using this compatible would be a missmatch with the binding documentation. So those DT's assuming a wrong binding. Therefore I fixed it here and not within the watchdog driver. Regards, Marco > > Fixes: 9b40b030c4ad ("mfd: da9062: Supply core driver") > > Signed-off-by: Marco Felsch > > --- > > drivers/mfd/da9062-core.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/mfd/da9062-core.c b/drivers/mfd/da9062-core.c > > index e69626867c26..9143de7b77b8 100644 > > --- a/drivers/mfd/da9062-core.c > > +++ b/drivers/mfd/da9062-core.c > > @@ -248,7 +248,7 @@ static const struct mfd_cell da9062_devs[] = { > > .name = "da9062-watchdog", > > .num_resources = ARRAY_SIZE(da9062_wdt_resources), > > .resources = da9062_wdt_resources, > > - .of_compatible = "dlg,da9062-wdt", > > + .of_compatible = "dlg,da9062-watchdog", > > }, > > { > > .name = "da9062-thermal", > > -- > > 2.20.1 > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |