firewire: ohci: do not clear PHY interrupt status inadvertently
authorClemens Ladisch <clemens@ladisch.de>
Thu, 1 Apr 2010 14:40:18 +0000 (16:40 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sat, 10 Apr 2010 14:51:14 +0000 (16:51 +0200)
commite7014dada041982ae12ba7fd1967ca0ab0243e04
treeb82e8047c6f00cfdfd9254a9cdcb66867a673e74
parent4a96b4fcd6b35e9233df07b3c9ab38091edcfe7e
firewire: ohci: do not clear PHY interrupt status inadvertently

The interrupt status bits in PHY register 5 are cleared by writing a one
bit.  To avoid clearing them unadvertently, do not write them back when
they were read as set, but only when they have been explicitly requested
to be set.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/core.h
drivers/firewire/ohci.c