Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2336247pxy; Sun, 2 May 2021 19:27:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBaP62Yf+0+d6k4XooR8Dr7IcLqazqh7V2lyBBNDUZUO/GtqFrvY9wACnnxgfpTos6yrVS X-Received: by 2002:a17:902:8685:b029:e6:5ff6:f7df with SMTP id g5-20020a1709028685b02900e65ff6f7dfmr18120965plo.40.1620008830084; Sun, 02 May 2021 19:27:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620008830; cv=none; d=google.com; s=arc-20160816; b=AcqyC6DqD+34uT8okCALX7HDfKz94QWwmgzOVJlZau2Ln5mCw4pIeAOIADASs1CU2z K/d8tFzYpst6R+hzr82Wj85XAPX6JY/RpE5RTXDYoHD2++T3rMCTH0L0fwXIIurIdFRv xzLe2C3LaBbwovHqGG4GlKkGXgVGNWDA+yG4tEVdgOr+pe6q3y28lRBoDopchs13DJtq NkAFAKpMX/WY5LrekpzjRDt1Xt3Mk648wgFw/dlZ9iTDJ+7IcGSc/2I1Oicd4fALWkcL n6b7SSUTBp57pEvxGWDTAAx7aANvqVcXdbLhFUYxDh6A+XQeAhIbYUsEsWu9IEwA2NU6 lCRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=fuHxh7NnngGIjCbqZ40Xy0un9uSEC94IQRW6Xdx/Qbk=; b=TofGF2dgZ4n8t8TuOyCV3e6HTv3Wr+N0qqGgzcHFXyHueNCLUVuIO7VpLFK+/RcSh6 6c+JZGQhiYp9JMXmEGTm+ilEwX3P8pYGYdTbRt8outLUhONj3yjxhi1OdmTYmPtZghiq CkBmfuawgZqnq60Cc+Tk83JIFbPaMgAtDTdPv8u69zn7awMaT2RoutSJXXnruOxTE0wj 52O92s+17zXzUzKMeawQAUS6dvEg93zeYSPJqgh4rU0/+gbD8TUcIReR38NrDnCqBLTZ Hyt65bnXe2CpS6QJbpDJIFoXu29hMxfw44PsufAFKCq1dxaHhpR/CB6oVE324VTbkqtx JAQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ddg/QA9d"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l4si13326682plh.292.2021.05.02.19.26.26; Sun, 02 May 2021 19:27:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ddg/QA9d"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232879AbhECCW4 (ORCPT + 99 others); Sun, 2 May 2021 22:22:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:35012 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230368AbhECCWz (ORCPT ); Sun, 2 May 2021 22:22:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8D0A061249; Mon, 3 May 2021 02:22:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620008523; bh=+9RJShCToImcgmcu2kcaufXjBbAW+pUORrOy9T4/d9k=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=ddg/QA9d1H5mfxNZeJ29hHjnXDpAu9Aza0pTo1yANCcjlSt1duSJegpdBql/Jlzyn p5vMqSDRwIOgCJzU3ehlNgt6cWN3vaOicTgSBgdy2evHftwyS2AaVgTa6Dg1JBQByw skO+EVpnROxd509wawqxnKA3USPjGfPNd/sw3wiT+jURoyzGmI/09Fq5Fe86nODBcH TXlIgaDUX/5TrNGK+Jw31b7l7MtdmEPVglcpo6EaSTnYLIYVPhkbBnW7a2Kf6LDi1v WSkJuHG3z/h0kq5ca/beFzA9M2xEf9R/sCFMz2f6O8zvkFvbpdqfWxTdRy49pRA/ro Z44ZgDUPvYi2A== Subject: Re: [PATCH v5 1/2] PCI: Add support for a function level reset based on _RST method To: Shanker Donthineni , Alex Williamson Cc: Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Vikram Sethi , Amey Narkhede References: <20210430232624.25153-1-sdonthineni@nvidia.com> From: Sinan Kaya Message-ID: <439e6cc0-188d-997d-87e6-2b6d2af807bd@kernel.org> Date: Sun, 2 May 2021 22:22:01 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: <20210430232624.25153-1-sdonthineni@nvidia.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/30/2021 7:26 PM, Shanker Donthineni wrote: > The _RST is a standard method specified in the ACPI specification. It > provides a function level reset when it is described in the acpi_device > context associated with PCI-device. > > Implement a new reset function pci_dev_acpi_reset() for probing RST > method and execute if it is defined in the firmware. The ACPI binding > information is available only after calling device_add(), so move > pci_init_reset_methods() to end of the pci_device_add(). > > The default priority of the acpi reset is set to below device-specific > and above hardware resets. > > Signed-off-by: Shanker Donthineni Reviewed-by: Sinan Kaya