Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760790AbYGQWCO (ORCPT ); Thu, 17 Jul 2008 18:02:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754770AbYGQWB7 (ORCPT ); Thu, 17 Jul 2008 18:01:59 -0400 Received: from agminet01.oracle.com ([141.146.126.228]:10740 "EHLO agminet01.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754586AbYGQWB6 (ORCPT ); Thu, 17 Jul 2008 18:01:58 -0400 Date: Thu, 17 Jul 2008 14:52:52 -0700 From: Randy Dunlap To: David Fries Cc: Evgeniy Polyakov , linux-kernel@vger.kernel.org, Andrew Morton Subject: Re: [PATCH 29/30] W1: Documentation/w1/masters/ds2490 update Message-Id: <20080717145252.ee6fcb19.randy.dunlap@oracle.com> In-Reply-To: <20080715021656.GQ5621@spacedout.fries.net> References: <12157843054074-git-send-email-johnpol@2ka.mipt.ru> <12157843071043-git-send-email-johnpol@2ka.mipt.ru> <20080714134002.e5dfaaae.randy.dunlap@oracle.com> <20080715021656.GQ5621@spacedout.fries.net> Organization: Oracle Linux Eng. X-Mailer: Sylpheed 2.5.0 (GTK+ 2.12.0; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2146 Lines: 47 On Mon, 14 Jul 2008 21:16:56 -0500 David Fries wrote: > On Mon, Jul 14, 2008 at 01:40:02PM -0700, Randy Dunlap wrote: > > > +- The number of USB bus transactions could be reduced if w1_reset_send > > > + was added to the API. The name is just a suggestion. It would take > > > + a write buffer and a read buffer (along with sizes) as arguments. > > > + It would add match rom and rom to the send buffer, reset the bus, > > ~~~~~~~~~~~~~~~~~ > > Can you clarify above? > > I re-wrote the paragraph. In the one wire protocol a bus reset is > followed by a one byte command, in this case match rom which tells all > the devices on the bus to expect an 8byte rom (slave device id) and > only the slave device that matches the rom is to respond to the > following message. I was assuming people reading it would be familiar > with the one wire bus protocol. Do you have any of the one wire > hardware? No. :( > - The number of USB bus transactions could be reduced if w1_reset_send > was added to the API. The name is just a suggestion. It would take > a write buffer and a read buffer (along with sizes) as arguments. > The ds2490 block I/O command supports reset, write buffer, read > buffer, and strong pullup all in one command, instead of the current > 1 reset bus, 2 write the match rom command and slave rom id, 3 block > write and read data. The write buffer needs to have the match rom > command and slave rom id prepended to the front of the requested > write buffer, both of which are known to the driver. > > The next paragraph was removed, I decided that listing the commands > giong from three to one was enough, I didn't need to count all the USB > bus transactions. > > I'll send the patch again in the next e-mail. Thanks. --- ~Randy Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA http://linuxplumbersconf.org/ -- 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/