From: Lino Sanfilippo Date: Sun, 30 Nov 2014 11:56:51 +0000 (+0100) Subject: sky2: avoid pci write posting after disabling irqs X-Git-Tag: omap-for-v3.19/fixes-rc1~125^2~10^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea589e9b7838f5d1c3d4998f9fe08854872187fc;p=pandora-kernel.git sky2: avoid pci write posting after disabling irqs In sky2_change_mtu setting B0_IMSK to 0 may be delayed due to PCI write posting which could result in irqs being still active when synchronize_irq is called. Since we are not prepared to handle any further irqs after synchronize_irq (our resources are freed after that) force the write by a consecutive read from the same register. Similar situation in sky2_all_down: Here we disabled irqs by a write to B0_IMSK but did not ensure that this write took place before synchronize_irq. Fix that too. Signed-off-by: Lino Sanfilippo Acked-by: Stephen Hemminger Signed-off-by: David S. Miller --- Reading git-diff-tree failed