Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5394624ybl; Tue, 10 Dec 2019 05:26:14 -0800 (PST) X-Google-Smtp-Source: APXvYqxEsOm6q//YDzAwk1UNmzBhX9XgBgwUWApD5PCzDDmPzAZrBRbRR6X24ESVJ9LqqUR3C3g7 X-Received: by 2002:aca:55cc:: with SMTP id j195mr3987377oib.22.1575984374633; Tue, 10 Dec 2019 05:26:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575984374; cv=none; d=google.com; s=arc-20160816; b=Vzd67H+5X5gMNsaNWWOn07TtoODsy4AgXb9gajv4st6jli6LDQsB/2Dnb98eDdDZSX dbw9p5vRmlKEVGDdb5VE3giVZeKoGBKDE0+MzZt6LBf+FZP1LRKLrSSdmhnBtTg8+9XH bX/iXd5Hw9jhdW10tsLsmXhGGvFQRX06UnxbED0d/9mGFZWr0/cF24jA/UbVxxWOOSos 3VjrHqWK3ifqROP1DR1SfN4BxapQdmxEFXdlyyt8J1uv8FeXEdTh8oWItN+CBud9OQCl 8XtgWtVFHG0Q6JXnEVLHRweFAh4CQadxg2UwelbfNnsXrDghHhusQTS4dopQTHmGZm7t gIgA== 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=seL06TOF4HeH1Mi7wuujBP3S/Yl8cRj2QcbtRUq4bOo=; b=KULORAh9A+0R4QCf/ducTFirrzwtOa7Q6y8H/2MLwWs/BMwDvfmBA7e/GrMaoKZTGQ S9YnxBlevjAKDF5xGCMILMknDO0UNhd1GzzPMZHQElXm1D67pUJXrGH/d90X8b6WsS8p aaJlyQRag3oyc69Of9RAzvs/3EXhy6a+JJfmDeML9ishbdZi+4W157/YWUxy/KfCjIUt /UKA6F/JSWkwMmDdnCVNerrdRYaiTop/g7yqs8n8yfsmRYqa31cgipKcQcGfdxh4VZm6 NQXOHzWe8qkBPkljOIHrL4erEdTKcrlwKHxqEaHwxfsmzCHzCN1Exd5QWA81pAs27gOz DqDw== 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 e22si1466709oti.74.2019.12.10.05.26.02; Tue, 10 Dec 2019 05:26:14 -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 S1727701AbfLJNYN (ORCPT + 99 others); Tue, 10 Dec 2019 08:24:13 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:57637 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727061AbfLJNYM (ORCPT ); Tue, 10 Dec 2019 08:24:12 -0500 X-Originating-IP: 90.182.112.136 Received: from localhost (136.112.broadband15.iol.cz [90.182.112.136]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 52D7960018; Tue, 10 Dec 2019 13:24:06 +0000 (UTC) Date: Tue, 10 Dec 2019 14:24:02 +0100 From: Alexandre Belloni To: Matti Vaittinen Cc: mazziesaccount@gmail.com, Lee Jones , Jacek Anaszewski , Pavel Machek , Dan Murphy , Rob Herring , Mark Rutland , Liam Girdwood , Mark Brown , Jonathan Corbet , Michael Turquette , Stephen Boyd , Linus Walleij , Bartosz Golaszewski , Alessandro Zummo , Mauro Carvalho Chehab , Jeff Kirsher , Wolfram Sang , Marek Szyprowski , Heiner Kallweit , Nicholas Mc Guire , Phil Edworthy , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-rtc@vger.kernel.org Subject: Re: [PATCH v5 13/16] rtc: bd70528 add BD71828 support Message-ID: <20191210132402.GK1463890@piout.net> References: <648d09ab52fb125cab8d26dd13ef71dd4fd5f778.1574059625.git.matti.vaittinen@fi.rohmeurope.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <648d09ab52fb125cab8d26dd13ef71dd4fd5f778.1574059625.git.matti.vaittinen@fi.rohmeurope.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 18/11/2019 09:00:47+0200, Matti Vaittinen wrote: > @@ -468,26 +596,35 @@ static int bd70528_probe(struct platform_device *pdev) > * leave them enabled as irq-controller should disable irqs > * from sub-registers when IRQ is disabled or freed. > */ > - ret = regmap_update_bits(mfd->regmap, > + if (enable_main_irq) { > + ret = regmap_update_bits(mfd->regmap, > BD70528_REG_INT_MAIN_MASK, > BD70528_INT_RTC_MASK, 0); > - if (ret) { > - dev_err(&pdev->dev, "Failed to enable RTC interrupts\n"); > - return ret; > + if (ret) { > + dev_err(&pdev->dev, "Failed to enable RTC interrupts\n"); > + return ret; > + } > } > > return rtc_register_device(rtc); > } Missing blank line here. > +static const struct platform_device_id bd718x7_rtc_id[] = { > + { "bd70528-rtc", ROHM_CHIP_TYPE_BD70528 }, > + { "bd71828-rtc", ROHM_CHIP_TYPE_BD71828 }, > + { }, > +}; > +MODULE_DEVICE_TABLE(platform, bd718x7_rtc_id); > Else, Acked-by: Alexandre Belloni -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com