Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] UHCI: add missing memory barriers

This patch (as617) adds a couple of memory barriers that Ben H. forgot in
his recent suspend/resume fix.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Alan Stern and committed by
Linus Torvalds
42245e65 42f3ab42

+2
+2
drivers/usb/host/uhci-hcd.c
··· 717 717 * at the source, so we must turn off PIRQ. 718 718 */ 719 719 pci_write_config_word(to_pci_dev(uhci_dev(uhci)), USBLEGSUP, 0); 720 + mb(); 720 721 clear_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags); 721 722 uhci->hc_inaccessible = 1; 722 723 hcd->poll_rh = 0; ··· 739 738 * really don't want to keep a stale HCD_FLAG_HW_ACCESSIBLE=0 740 739 */ 741 740 set_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags); 741 + mb(); 742 742 743 743 if (uhci->rh_state == UHCI_RH_RESET) /* Dead */ 744 744 return 0;