From: Alberto Garcia Date: Mon, 10 Dec 2012 10:49:57 +0000 (+0100) Subject: ipack/devices/ipoctal: Fix race condition during Tx X-Git-Tag: v3.9-rc1~124^2~125 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc83f833c77c1d233e3843af18c1abf8d561d1fa;p=pandora-kernel.git ipack/devices/ipoctal: Fix race condition during Tx In order to transmit data, the driver enables Tx and sleeps until *board_write is set to 1 by the interrupt handler. It can happen, though, that the data is sent even before the process is asleep. In this case *board_write must be set to 1 anyway, otherwise we will be waiting for a condition that will never be true. Signed-off-by: Alberto Garcia Signed-off-by: Samuel Iglesias Gonsalvez Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed