Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964938AbcJFQeb convert rfc822-to-8bit (ORCPT ); Thu, 6 Oct 2016 12:34:31 -0400 Received: from mail1.bemta3.messagelabs.com ([195.245.230.167]:21091 "EHLO mail1.bemta3.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752642AbcJFQeV (ORCPT ); Thu, 6 Oct 2016 12:34:21 -0400 X-Greylist: delayed 356 seconds by postgrey-1.27 at vger.kernel.org; Thu, 06 Oct 2016 12:34:19 EDT X-Brightmail-Tracker: H4sIAAAAAAAAA1WSWUwTURSGezsLU2BkKEuvxI2GB6KCVqJO3PW F8cWQgDHxQRl0pDVdSKdqQRNrtEZJbHANVjaxrQaMIhgFBSVQAhLiBkFAUZEGCi64QI0JojMd UXz77/n+c/5zk0MgyuN4HMFZLZzZyOrVeCi6o86dkjR1KLBtaV1fOH2x1IXR5wd8OF3qfYzRz eV+QJd2dWP0m4kWQAe6Tsjp3q8BjO68V4TT3055Ad1z40EI7bvcIafdL57JaXuDV3gOOHC6r9 CPbaCY6yXXAVPn7A9humtimSv1I3KmuuIkzrzqrseZuu+2EKa1566c+VY9L02xHdMZs0zWTEx rb72K5zTGWm23qhAbaFXmg1BCSbkBHG7/iucDBYFTGljyYQyIOppaD0+/dCGiCaEGUfi06jsm gihqNXQVDqH5gBBMa2BTW4YkV8GC4jDRgVIJsKFoMugmqTQ42dKLSFltAL7ztiEiUAj+2h5PM AtQc+H4kcpgHaFUsM9XKhc1pCjoqn+CSDoGjgxOYZKeDytrz6KSXg/fv/4UXAdSS6DjCC+VNb DiQuMfy0o40HsJlcYvhmX3pe8i1CLoufwekfaMhI8u+tACoHLO2MI5o8U5o8U5o6UMoBUgkef M+zlz0rIVyVlmXbbWYmB1+iTN0pRkA8fzbDanZ7P45F0mQzUQ7uOwTAZqga1hSxOYTcjVMWTf gcA25aws0+5cLctrd5r36Tm+CcwhCDUkgXBHykgzl81Z9+j0wpFNY0iEq6PJVSIm+RzWwOuyJ dQO4uNU5M+DAqBEoN1n/Ns2fZ7Pwdy4KBLIZDJleA5nNugs//NRoCKAOoqMFseH64yWv9NHhW C5EGxyj4vBFvYfirOB2+r+WREvzoAvQ51Hxz5WDwx9cmva5kXEBkYyZkco6NCaRc3kWo/TPjj ZfMjqSNvaufzcyjvpxg5w7OGeRsf24U0n8tC8gilV6mAUlXotwbbAv7jelJoembh3Y9HNmNxE R2ZId8u64tzPDTdK+gPKMm152A90otgTFr/Zb7D/eqtGeS2rWYiYefY398j89pkDAAA= X-Env-Sender: stwiss.opensource@diasemi.com X-Msg-Ref: server-4.tower-217.messagelabs.com!1475771645!45665590!1 X-Originating-IP: [94.185.165.51] X-StarScan-Received: X-StarScan-Version: 8.84; banners=-,-,- X-VirusChecked: Checked From: Steve Twiss To: Keerthy , Lee Jones CC: DEVICETREE , Dmitry Torokhov , Eduardo Valentin , "Guenter Roeck" , LINUX-INPUT , LINUX-PM , LINUX-WATCHDOG , Liam Girdwood , "Mark Brown" , Mark Rutland , Rob Herring , Support Opensource , Wim Van Sebroeck , Zhang Rui , LINUX-KERNEL Subject: RE: [PATCH V1 01/10] mfd: da9061: MFD core support Thread-Topic: [PATCH V1 01/10] mfd: da9061: MFD core support Thread-Index: AQHSH7B2+vZXDgCwfUSyWOdSraCHm6CbKy4AgAAU/8A= Date: Thu, 6 Oct 2016 16:34:04 +0000 Message-ID: <6ED8E3B22081A4459DAC7699F3695FB7018CCE244D@SW-EX-MBX02.diasemi.com> References: <1eca0af9-64d5-7476-2847-71ecf9331395@ti.com> In-Reply-To: <1eca0af9-64d5-7476-2847-71ecf9331395@ti.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.20.35.45] x-kse-attachmentfiltering-interceptor-info: protection disabled x-kse-serverinfo: sw-ex-cashub01.diasemi.com, 9 x-kse-antivirus-interceptor-info: scan successful x-kse-antivirus-info: Clean, bases: 06/10/2016 14:30:00 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2814 Lines: 95 Hi, On 06 October 2016 11:38, Keerthy [mailto:a0393675@ti.com], wrote: > > regmap_config which lists the correct readble, writable and volatile > > /s/readble/readable Done [...] > > static struct resource da9062_core_resources[] = { > > DEFINE_RES_NAMED(DA9062_IRQ_VDD_WARN, 1, "VDD_WARN", > IORESOURCE_IRQ), > > }; > > @@ -142,7 +257,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", > > Any particular reason why this compatible needs to be changed? Yes. It was incorrect in the original DA9062 submission. The binding said "dlg,da9062-watchdog", but the MFD component implemented it incorrectly as "dlg,da9062-wdt" in the da9062.txt binding file. This fixes that error. The watchdog driver did not use the compatible during probe for da9062. But, it now checks the compatible string as part of this patch set. [...] > > +static const struct of_device_id da9062_dt_ids[] = { > > + { .compatible = "dlg,da9062", .data = (void *)COMPAT_TYPE_DA9062, > }, > > + { .compatible = "dlg,da9061", .data = (void *)COMPAT_TYPE_DA9061, > }, > > WARNING: DT compatible string "dlg,da9061" appears un-documented -- > check ./Documentation/devicetree/bindings/ > #622: FILE: drivers/mfd/da9062-core.c:822: > + { .compatible = "dlg,da9061", .data = (void *)COMPAT_TYPE_DA9061, > }, > > Might want to re-order patches so that you have the compatibles > documented before usage Ah. I ordered them last because I thought the driver would need approval before the device tree docs were accepted. On second look, that doesn't make much sense. I will change my scripts to complete the checkpatch.pl on the e-mails to be sent to LKML (instead of the whole files) so this sort of thing doesn't happen again. I will re-order the patches from V1 when doing V2. > > + { } > > +}; > > +MODULE_DEVICE_TABLE(of, da9062_dt_ids); > > + > > static int da9062_i2c_probe(struct i2c_client *i2c, > > const struct i2c_device_id *id) > > { > > struct da9062 *chip; > > + const struct of_device_id *match; > > unsigned int irq_base; > > + const struct mfd_cell *cell; > > + const struct regmap_irq_chip *irq_chip; > > + const struct regmap_config *config; > > + int cell_num; > > No need of cell_num. [...] > > + cell_num = ARRAY_SIZE(da9061_devs); > > No need of the above assignment [...] > > + cell_num = ARRAY_SIZE(da9062_devs); > > No need of the above assignment > > > + ret = mfd_add_devices(chip->dev, PLATFORM_DEVID_NONE, cell, > > + cell_num, NULL, irq_base, > > Use ARRAY_SIZE(cell) instead if cell_num Okay. Can do that. It will appear in V2. Regards, Steve