From: Gabor Juhos Date: Sat, 17 Aug 2013 12:09:29 +0000 (+0200) Subject: rt2x00: rt2800lib: optimize frequency offset adjustment X-Git-Tag: v3.12-rc1~132^2~84^2^2~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6af1bdccabe956a08a37f2ae049d37307ec0c91c;p=pandora-kernel.git rt2x00: rt2800lib: optimize frequency offset adjustment Don't write the new value into the register if it is the same as the old value to avoid unncessary USB bus traffic with USB devices. The change also saves a few cycle on MMIO based devices. Based on the DPO_RT5572_LinuxSTA_2.6.0.1_20120629 driver. Reference: RTMPAdjustFrequencyOffset function in common/rt_rf.c Signed-off-by: Gabor Juhos Signed-off-by: John W. Linville --- Reading git-diff-tree failed