Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757896AbZAGPWZ (ORCPT ); Wed, 7 Jan 2009 10:22:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751572AbZAGPWP (ORCPT ); Wed, 7 Jan 2009 10:22:15 -0500 Received: from yx-out-2324.google.com ([74.125.44.29]:64605 "EHLO yx-out-2324.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751081AbZAGPWO (ORCPT ); Wed, 7 Jan 2009 10:22:14 -0500 Message-ID: <9ae48b020901070722l77bebc6boc8fa2fd0bcc8da28@mail.gmail.com> Date: Wed, 7 Jan 2009 07:22:12 -0800 From: "Ed Swierk" To: "Jean Delvare" Subject: Re: [PATCH] rtc-ds1307: True SMBus compatibility Cc: linux-i2c@vger.kernel.org, "David Brownell" , "Alessandro Zummo" , linux-kernel@vger.kernel.org, "Andrew Morton" , "BARRE Sebastien" In-Reply-To: <20090107142426.4be04d4d@hyperion.delvare> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1231177261.13443.20.camel@localhost.localdomain> <20090107142426.4be04d4d@hyperion.delvare> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1311 Lines: 26 On Wed, Jan 7, 2009 at 5:24 AM, Jean Delvare wrote: > Are you certain the nForce2 controllers can't do it? The i2c-nforce2 > driver doesn't implement it, but this doesn't mean the hardware can't > do it. I don't have any datasheet for these chips, but I know their > SMBus implementation is very similar to those of the AMD 8111, and > i2c-amd8111 has support for I2C block reads and writes. I think it > would be worth giving it a try, by copying the i2c-amd8111 > implementation into the i2c-nforce2 driver and seeing if it happens to > just work. If it works, that would be more elegant than your proposed > hack to the rtc-ds1307 driver. I checked the datasheet and also tried every possible SMBus command value to try to discover any supported commands that the i2c-nforce2 driver happens not to use, to no avail. The nVidia SMBus is pure SMBus. I could change the ds1307 driver to check whether the controller supports i2c block commands and fall back to emulation only if they are not available. Would that address your concerns? --Ed -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/