Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752572AbaK3Ryg (ORCPT ); Sun, 30 Nov 2014 12:54:36 -0500 Received: from mail-pd0-f171.google.com ([209.85.192.171]:56263 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752510AbaK3Rya (ORCPT ); Sun, 30 Nov 2014 12:54:30 -0500 Date: Sun, 30 Nov 2014 09:54:20 -0800 From: Stephen Hemminger To: Lino Sanfilippo Cc: mlindner@marvell.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sky2: avoid pci write posting after disabling irqs Message-ID: <20141130095420.53375231@urahara> In-Reply-To: <1417348611-1752-1-git-send-email-LinoSanfilippo@gmx.de> References: <1417348611-1752-1-git-send-email-LinoSanfilippo@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 30 Nov 2014 12:56:51 +0100 Lino Sanfilippo wrote: > 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 Looks correct. Acked-by: Stephen Hemminger -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/