Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4638627pxj; Tue, 25 May 2021 12:38:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVGQ1V+y6HSGDrZqU7ffgnsyvSKWtHLsHUIhEb1TMd/GtC6L1imzyEG0CwQwWYdL41Nxpb X-Received: by 2002:aa7:c718:: with SMTP id i24mr33376214edq.43.1621971514952; Tue, 25 May 2021 12:38:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621971514; cv=none; d=google.com; s=arc-20160816; b=e3jdjYt0OpVh9voMV1/eCt7KG6yRFa9bfa5Hksy9pVPz5Ol07mkeypdVRME1DYcXvN uMgtPrx7X7d3wNcKivzv5r4sp00ZRRvGMTBBx748ALBXwCBJN91AXN+cRN1Vro/wiVda o31wZsBteoquJUXZzcgX6tLLMSbSE/0matbFxvxLocWpQscpANXu7hHCOlWojCPTkYWA u+u4qtdk0zwR8GxsiXLL0F7H27F63Fz9suhi9FH4h4zPf0ZUa7NdClNXQTzqC6xQsYHU 7oN9DNr7DvPtfBgCHsndX5vuFJ0JKUyWhhM+j3qxn97UxRRDXBcZi8lXgEboORAB9vMc e+FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=8E0fK30YxyVuaWMTGyqCwE5nIsqZO3mhIIR2qTIDgSs=; b=nkBU4rN3s/kW7SGMXvRkaWElwuzZv3SkvJW5MTaExjJp0hgiOJFV7skM+c18LvKJJh 6sHVf3G3bY1VRaPlLC82vrh0jQoxCP8gyltG87zqxba+GruWH/6JbQp40Gz9Ad8HWnvk vatKVh66BXXz8ctQBtCxXC/96QBGLnaSFi0vc0a3fqPslxYyGlW62M0bLJCH7fBGgTqh +wm5aI7VEEKpOuqcgwcoK38Dk3WP30nU7nIBkLI84cSPghWIvSkRjUY/HPM5aZ2092PF uZCONCYu3zWi8SBMYvhR5RM7SmDt6TviKMOYpj0P53TUzcw1EHBmiNzTbL6vb9+LpUa5 78ZQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d11si16134759edp.601.2021.05.25.12.38.11; Tue, 25 May 2021 12:38:34 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230398AbhEYPTu (ORCPT + 99 others); Tue, 25 May 2021 11:19:50 -0400 Received: from mail-lf1-f51.google.com ([209.85.167.51]:34608 "EHLO mail-lf1-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231331AbhEYPS7 (ORCPT ); Tue, 25 May 2021 11:18:59 -0400 Received: by mail-lf1-f51.google.com with SMTP id f30so9640099lfj.1; Tue, 25 May 2021 08:17:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=8E0fK30YxyVuaWMTGyqCwE5nIsqZO3mhIIR2qTIDgSs=; b=YcolOxdqv8j6yLcGhNloVQVogddLjW92yEkVdFVHqMxcm23+FqmIY/kgFwW4q7p00d 8BUssnXOPZNDHCpL9Laix8c2yI+rZvpF6nu/wJoWxJfA7t4TNGmNTPejw5t0z1iOB9r0 DAS+UnaeVwwsfXZ4knaqAJ5rnYmMEcNlZEQ7qce/JIRZ/mqubqTUHH3l58fbfS/VHZ6k PYQdNhxupeED+dgMsRiiijyeT2yGBGVtHH/GaflWMyGFlE3Z4GkfF9FergMKel9K9FCs 8vjUx45z0nCRx5ImrvJMvFmiAFClxcXYsE2efcFUsDh9rEYDI1pL9NjrjPi1nxWB5PqF BcvQ== X-Gm-Message-State: AOAM530xuu2qohus+i2+ENITDbEBLnFCCX/1eqdYAEhMldSmBSxn2sNI ARc9ZOUrfMFCiqpN0GxHZrQ= X-Received: by 2002:a05:6512:39ca:: with SMTP id k10mr14052925lfu.96.1621955847781; Tue, 25 May 2021 08:17:27 -0700 (PDT) Received: from rocinante.localdomain ([95.155.85.46]) by smtp.gmail.com with ESMTPSA id c9sm2103699ljb.22.2021.05.25.08.17.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 May 2021 08:17:27 -0700 (PDT) Date: Tue, 25 May 2021 17:17:25 +0200 From: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= To: Amey Narkhede Cc: Bjorn Helgaas , alex.williamson@redhat.com, raphael.norwitz@nutanix.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RESEND v2 2/7] PCI: Add pcie_reset_flr to follow calling convention of other reset methods Message-ID: <20210525151725.GA80163@rocinante.localdomain> References: <20210519235426.99728-1-ameynarkhede03@gmail.com> <20210519235426.99728-3-ameynarkhede03@gmail.com> <20210520150526.GB641812@rocinante.localdomain> <20210524144814.rqgvbaawdxbdwio4@archlinux> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210524144814.rqgvbaawdxbdwio4@archlinux> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Amey, Sorry for late reply! [...] > > Similarly to my suggestion in the first patch in the series, perhaps > > using a boolean here would be an option. > > > > Having said that, the following existing functions aren't doing it, so > > for the sake of keeping things consistent it might not be the best > > option, as per: > > > > static int pci_af_flr(struct pci_dev *dev, int probe) > > int nvme_disable_and_flr(struct pci_dev *dev, int probe) > > > > Krzysztof > > All the functions which implement different types of resets including > quirks have ...reset(struct pci_dev *dev, int probe) signature. > Should I modify all of them? Might not be worth it to change anything then, especially if the other functions there already use an integer argument to enable or disable the problem or something else. At least no in this series. Krzysztof