From: Florian Fainelli Date: Thu, 26 Jun 2014 17:06:45 +0000 (-0700) Subject: net: systemport: fix UniMAC reset logic X-Git-Tag: omap-for-v3.17/fixes-against-rc2~289^2~56 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=412bce83ac786197d0b2805c5bcded4d95cdeeb0;p=pandora-kernel.git net: systemport: fix UniMAC reset logic The UniMAC CMD_SW_RESET bit is not a self-clearing bit, so we need to assert it, wait a bit and clear it manually. As a result, umac_reset() is updated not to return any value. The previous version of the code simply wrote 0 to the CMD register, which would make the busy-waiting loop exit immediately, having zero effect. By writing 0 to the CMD register, we were clearing all bits in the CMD register, and not using the hardware reset default values which are set on purpose. Signed-off-by: Florian Fainelli Signed-off-by: David S. Miller --- Reading git-diff-tree failed