[U-Boot] [PATCH v4 1/4] rtc: ds3232/ds3231: Add support to generate 32KHz output for driver module
Prabhakar Kushwaha
prabhakar.kushwaha at nxp.com
Fri Aug 23 13:32:01 UTC 2019
++ Xiaowei Bao (he is taking over from Chuanhua)
> -----Original Message-----
> From: Wolfgang Denk <wd at denx.de>
> Sent: Friday, August 23, 2019 2:53 PM
> To: Chuanhua Han <chuanhua.han at nxp.com>
> Cc: albert.u.boot at aribaud.net; Prabhakar Kushwaha
> <prabhakar.kushwaha at nxp.com>; Priyanka Jain <priyanka.jain at nxp.com>;
> Rajesh Bhagat <rajesh.bhagat at nxp.com>; u-boot at lists.denx.de;
> lukma at denx.de; trini at konsulko.com
> Subject: Re: [PATCH v4 1/4] rtc: ds3232/ds3231: Add support to generate 32KHz
> output for driver module
>
> Dear Chuanhua Han,
>
> In message <20190726112403.32842-1-chuanhua.han at nxp.com> you wrote:
> > This patch add an implementation of the rtc_enable_32khz_output() that
> > uses the driver model i2c APIs.
> ...
> > + ret = i2c_get_chip_for_busnum(busnum, chip_addr, 1, &dev);
> > + if (!ret)
> > + ret = dm_i2c_reg_write(dev, RTC_STAT_REG_ADDR,
> > + RTC_STAT_BIT_BB32KHZ |
> > + RTC_STAT_BIT_EN32KHZ);
>
> Strictly speaking, this is a multi-line statement following the "if"
> so braces are required according to the coding style:
>
> if (!ret) {
> ret = dm_i2c_reg_write(dev, RTC_STAT_REG_ADDR,
> RTC_STAT_BIT_BB32KHZ |)
> RTC_STAT_BIT_EN32KHZ);
> }
>
Dear Wolfgang,
Unfortunately this patch has been merged in main-line.
But I will ask (Xiaowei Bao) to send patch to fix it. I will make sure to get fix in RC3 or RC4.
--pk
More information about the U-Boot
mailing list