From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bombadil.infradead.org ([65.50.211.133]:57869 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751121AbdBFRf4 (ORCPT ); Mon, 6 Feb 2017 12:35:56 -0500 Date: Mon, 6 Feb 2017 09:35:55 -0800 From: Christoph Hellwig To: Keith Busch Cc: linux-pci@vger.kernel.org, Bjorn Helgaas , Greg Kroah-Hartman , Lukas Wunner , Wei Zhang , Austin Bolen , Christoph Hellwig Subject: Re: [PATCHv5 4/5] pci/msix: Skip disabling disconnected devices Message-ID: <20170206173555.GE25762@infradead.org> References: <1486144555-5526-1-git-send-email-keith.busch@intel.com> <1486144555-5526-5-git-send-email-keith.busch@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1486144555-5526-5-git-send-email-keith.busch@intel.com> Sender: linux-pci-owner@vger.kernel.org List-ID: > @@ -317,7 +317,7 @@ void __pci_write_msi_msg(struct msi_desc *entry, struct msi_msg *msg) > { > struct pci_dev *dev = msi_desc_to_pci_dev(entry); > > - if (dev->current_state != PCI_D0) { > + if (dev->current_state != PCI_D0 || pci_dev_is_disconnected(dev)) { It also skips any MSI message writes as far as I cann tell from the above. Which seems sensible, but should be mentioned in the changelog. Otherwise looks fine to me: Reviewed-by: Christoph Hellwig