From: David Fries Date: Thu, 16 Oct 2008 05:05:10 +0000 (-0700) Subject: W1: ds2490.c optimize ds_set_pullup X-Git-Tag: v2.6.28-rc1~303 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ade6d810b585d749db24d734947a30a29470cccd;p=pandora-kernel.git W1: ds2490.c optimize ds_set_pullup Optimize the ds_set_pullup function. For a strong pullup to be sent the ds2490 has to have both the strong pullup mode enabled, and the specific write operation has to have the SPU bit enabled. Previously the write always had the SPU bit enabled and both the duration and model was set when a strong pullup was requested. Now the strong pullup mode is enabled at initialization time, the delay is updated only when the value changes, and the write SPU bit is set only when a strong pullup is required. This removes two or three bus transactions per strong pullup request. Signed-off-by: David Fries Signed-off-by: Evgeniy Polyakov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed