From: Mike Frysinger Date: Mon, 2 May 2011 15:01:13 -0400 Subject: [U-Boot] [PATCH] sntp: fix problems at setting RTC at multi-bus I2C systems In-Reply-To: References: Message-ID: <201105021501.19526.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Monday, May 02, 2011 10:57:11 Tr?benbach, Ralf wrote: > Setting the RTC via SNTP did not work if the current I2C bus no. is > different from the bus no. the RTC is connected to. > > Signed-off-by: Ralf Tr?benbach > --- > I don't like that I have to include the I2C things into sntp.c. > But changing the rtc_set() function in 20 RTC drivers I don't > like, too. that would probably be the correct answer though. not all rtc devices are i2c, and binding i2c logic to the `date` command is wrong. looks like when Stefan added this logic to cmd_date.c, he did it incorrectly -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20110502/a9df14d8/attachment.pgp