Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp302768imm; Tue, 22 May 2018 19:25:03 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpHjVYAmVEktvvUscaDPc2BD3pxafLoisdENAIMQs/ch1iVYtqouN0jo5FYF+NyeLYhNDRx X-Received: by 2002:aa7:8492:: with SMTP id u18-v6mr919963pfn.225.1527042303699; Tue, 22 May 2018 19:25:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527042303; cv=none; d=google.com; s=arc-20160816; b=rKVJBVt7SpDHrQ0+3ahcgyWi5UTBs/4TL97VhA+d9MKIem4FcrF/CT6z7kx9i9NIs2 NlrEWQgoPfhxOgYyHbs0gwXISDBMtqy6X7xcW82f80QJ7CbENN4g7qdQVgzBj24XArb4 bAF30txvTyHOZyEwCbLaIDCjC1C8csXw1+QQXYGeY9zl0qoijjgXQJp+pTIUIu6M3X2o 5H7K71XSfpOHepern45DhA/Z2+DmPgkWhoEI7kPT5CBoF726nELT1jz5Zkhhpo5qX7M1 s2W/nAI6EFUVRDH3/ZEHuGWL/DcolMUMrrhQX6Eie58JKTXyucHi4gHSS5BXe/QnRxHA 4OFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=3ug5j7NzslZrorvGaaNpKSdQWtKHfioBZNG9NlFyNKI=; b=QKB1wkYW+QK5R1EOa/S4UlWfqUUlx5i8Lwyo6xATZXzzEAUx4SXepFAmHcdIW81+Aa 2Vf8eztTkBnj5apIYX9WSLT8lSJpKlyVESQOtjLWPIR75ug+h+XKAn4zm4JQzheOGeXO vU7pHNtwcXW1rUXzZoaNZZdM/jX5NlT/SInD34T/6kaky2gAnurq6ZobE5H7bW+LfeJ4 u/u13PRAjKV9V6nK20wT/gSrNVMFkRHEiCzmYOWyWBeJj5CAOnssQPZDn9nt6LuMyC2n c0y7hhOer6tJ8yp1jJahBIe70nxehmCbDV5O7BQF/Lj8+BtLf8WZPblj2XQCWbp1bKZ+ OSCg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p73-v6si17548071pfk.275.2018.05.22.19.24.47; Tue, 22 May 2018 19:25:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753823AbeEWCYg (ORCPT + 99 others); Tue, 22 May 2018 22:24:36 -0400 Received: from bmailout3.hostsharing.net ([176.9.242.62]:57033 "EHLO bmailout3.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752658AbeEWCYe (ORCPT ); Tue, 22 May 2018 22:24:34 -0400 Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.hostsharing.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified)) by bmailout3.hostsharing.net (Postfix) with ESMTPS id AA543100B0351; Wed, 23 May 2018 04:24:31 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 484F21FD85; Wed, 23 May 2018 04:24:31 +0200 (CEST) Date: Wed, 23 May 2018 04:24:31 +0200 From: Lukas Wunner To: Sinan Kaya Cc: linux-pci@vger.kernel.org, timur@codeaurora.org, ryan@finnie.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, stable@vger.kernel.org, Bjorn Helgaas , "Rafael J. Wysocki" , Frederick Lawler , Dongdong Liu , Gabriele Paoloni , Keith Busch , open list Subject: Re: [PATCH] PCI/portdrv: do not disable device on remove() Message-ID: <20180523022431.GA15069@wunner.de> References: <1527011883-21320-1-git-send-email-okaya@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1527011883-21320-1-git-send-email-okaya@codeaurora.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 22, 2018 at 01:58:00PM -0400, Sinan Kaya wrote: > --- a/drivers/pci/pcie/portdrv_core.c > +++ b/drivers/pci/pcie/portdrv_core.c > @@ -409,7 +409,6 @@ void pcie_port_device_remove(struct pci_dev *dev) > { > device_for_each_child(&dev->dev, NULL, remove_iter); > pci_free_irq_vectors(dev); > - pci_disable_device(dev); > } Shutdown aside, pci_disable_device() is also not called in the ->remove path with this patch, right? Seems wrong. E.g. when unbinding the driver from the root port device, or when unplugging a port (happens all the time with Thunderbolt). Thanks, Lukas