Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp312570imm; Tue, 22 May 2018 19:40:49 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp9NlcHyCz0HE5Vy7iNedEboWh8fgMLp5QvKDOa+Ym3OGVvjm++2ZBd+HEqFyZMms+l+P4z X-Received: by 2002:a63:81c7:: with SMTP id t190-v6mr794723pgd.378.1527043249098; Tue, 22 May 2018 19:40:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527043249; cv=none; d=google.com; s=arc-20160816; b=LzzCBuIAP15A5kOkigO9N0AOdsLhCmpwpMoROTeNsAo3EAGt2bblTre14878m9SuxN PC3AIOD0UeOdFT/EhwlTMTdpq5jLLVEi4Oe7B3ydvxNBdK6esP+2PvZ1S92Etz6JtRdp mlLUg0s96+hH+PJxoxb9GWZnAYg5eJk8KB2TQCfqN7j2cElZCCvxq565UAbdtvFEjYAW C6oDdYeJhPrP9CtXl/nCkYHA77spnQOu3XFlGDtfIsRjCmRm8mCfsT1p8AiJlYcYLH8b 6TpuXqvaU2yTDyBpLtrn8MA15xVLy7FQLJHh6KXXvq9bkO0FOWqa8RHTatTHAKxuFNad UIWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=wU5w+V/hfyYrFElt/bgsxbg7wIyBfuAQUWEWFL0I9ws=; b=m/sI7hMd8ZTV0wEudzTyGL4CTSfPgoBug2WRwZybO65RCm/wtOLXCofmgssDTxi12n kkENlSNZogQGcqLWx6VCAY0dRvVJ3BTFgPEQwRDRhgCwcGCbQ4taWuvASqpYnjotrb4q OZRTiASmSwVFTDqnUdJ/yDhiUv9ma2ihHFSkf8GH9wgRLMz8oPYb+RT40tsh2sQOiJeN oR9ExXEXwlM2In9/JSvAO7ltGyWO40rUUgLJMa1o/iSrKTmEduXu9FzwOWWdgKPRxnCy CSD0V4DDltIkIjD6tmgkGSQnAIJoiWh8Hs6848uZrmrJLADooYQ/Zj1YsVI7AkBXBm8r ZT7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=hl8IqcLK; dkim=pass header.i=@codeaurora.org header.s=default header.b=hl8IqcLK; 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 74-v6si13547937pga.50.2018.05.22.19.40.34; Tue, 22 May 2018 19:40:49 -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; dkim=pass header.i=@codeaurora.org header.s=default header.b=hl8IqcLK; dkim=pass header.i=@codeaurora.org header.s=default header.b=hl8IqcLK; 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 S1753789AbeEWCkW (ORCPT + 99 others); Tue, 22 May 2018 22:40:22 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:33260 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753165AbeEWCkU (ORCPT ); Tue, 22 May 2018 22:40:20 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id C33DE609D1; Wed, 23 May 2018 02:40:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527043219; bh=bA2CGp6TrY1a6sjPcAeRlqc/B4sZlIa7arKaf9SI7tc=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=hl8IqcLKdpNnoqHYV5d98t0Cej5OtIOZ3DQnp+pSNLWbvDWhN8d9Ij2TzZNs4jmyq h6MbIoZNeVacBEVU9mypX0icYhspK3IA8cjACzhn0AwWdMgfYcvB6iiEhAcKkLy9FX osP23NyLCRZvYLoPIxvMm8TkVc9VotxNvc6NOalA= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [192.168.0.106] (cpe-174-109-247-98.nc.res.rr.com [174.109.247.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: okaya@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 8F69C601E8; Wed, 23 May 2018 02:40:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527043219; bh=bA2CGp6TrY1a6sjPcAeRlqc/B4sZlIa7arKaf9SI7tc=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=hl8IqcLKdpNnoqHYV5d98t0Cej5OtIOZ3DQnp+pSNLWbvDWhN8d9Ij2TzZNs4jmyq h6MbIoZNeVacBEVU9mypX0icYhspK3IA8cjACzhn0AwWdMgfYcvB6iiEhAcKkLy9FX osP23NyLCRZvYLoPIxvMm8TkVc9VotxNvc6NOalA= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 8F69C601E8 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=okaya@codeaurora.org Subject: Re: [PATCH] PCI/portdrv: do not disable device on remove() To: Lukas Wunner 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 References: <1527011883-21320-1-git-send-email-okaya@codeaurora.org> <20180523022431.GA15069@wunner.de> From: Sinan Kaya Message-ID: <8c91a923-1a3a-55fb-e812-62dd69d99975@codeaurora.org> Date: Tue, 22 May 2018 22:40:16 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180523022431.GA15069@wunner.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/22/2018 10:24 PM, Lukas Wunner wrote: > 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). Agreed. I'll spin another version where I skip disable on shutdown path only. > > Thanks, > > Lukas > -- Sinan Kaya Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.