From: Clemens Ladisch Date: Wed, 13 Jun 2012 20:29:20 +0000 (+0200) Subject: firewire: ohci: initialize multiChanMode bits after reset X-Git-Tag: upstream/snapshot3+hdmi~6937^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e18907cc8a3cd6e09510632b753b8b6fefa1752a;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git firewire: ohci: initialize multiChanMode bits after reset OHCI 1.1 says: | Since the value of this bit is undefined after reset in all IR | contexts, software shall initialize this bit to zero in all contexts | whether or not active to maintain the exclusive nature of this bit. Signed-off-by: Clemens Ladisch Signed-off-by: Stefan Richter --- diff --git a/drivers/firewire/ohci.c b/drivers/firewire/ohci.c index 922cd26..c788dbd 100644 --- a/drivers/firewire/ohci.c +++ b/drivers/firewire/ohci.c @@ -2279,6 +2279,11 @@ static int ohci_enable(struct fw_card *card, ohci->bus_time_running = false; + for (i = 0; i < 32; i++) + if (ohci->ir_context_support & (1 << i)) + reg_write(ohci, OHCI1394_IsoRcvContextControlClear(i), + IR_CONTEXT_MULTI_CHANNEL_MODE); + version = reg_read(ohci, OHCI1394_Version) & 0x00ff00ff; if (version >= OHCI_VERSION_1_1) { reg_write(ohci, OHCI1394_InitialChannelsAvailableHi,