Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4564078pxj; Tue, 25 May 2021 10:46:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBEzrpcabVGw2x257LJ/vVf4tDNQNqgDdjooV0FJY1o7anBBT4vOavou9jNgSBtKl0NL48 X-Received: by 2002:a05:6402:1719:: with SMTP id y25mr33302203edu.304.1621964789773; Tue, 25 May 2021 10:46:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621964789; cv=none; d=google.com; s=arc-20160816; b=TTcUMITcpNbZwJiHjNggP1qb1FBUF0grLl/anKACJIQZlMDE/vGj5sLEK5uuNGJhhO HScSeBqybHlK+fLhtxo8aXJNdnNdlgAr8ws1kVrqclK+yjzsHyMEVJYKpvJXQl1zyo/+ nYVy79R53owq7V4ZyBtOIqBM9DKJmkr2wuEOI+6ZNwI6zgdMvVvp7m/Zaf2ncNNjX5aJ RpNhujCoD1hkPdMqeXPnV3LKSXvSBpmfwALoXozb3THDz2CRgGOt3hvO2NZihpQ+Jggw 5vCEgC577TXlGzSs1xvXv1MNZP3m36cYGYHA9uFXvb9befmN49miIGJJQufmpYm9OIBL 1MYg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=GGJlw63A6hNFKItDJtxBDw0DwnZQp/w6Mj4wPb2Ro/c=; b=FpiSAxGrys7SCq0bDD/rbOOsFqyRrIg2xcpKJjys/mqv/UAu0idB8Ownvv+Ezkjb4y Xf/eKkZlqE5G+eAyTmAR9r3t2CjOCqcS79CoHuJxHrQ7AyPT0nDepHVoCmJs/rB2JAMa RsnPoFbDFNhzz0sxYYVbcF2laP8vbbF/OyQ0imDZ4HyfVRou5mp4b3iUrba5Pv3AfBnV EwwuC7yGPCJdc9gENo+EVyctsCkoZSr3UMhzabn1JlNDrENRVFXPKb+YZEN2UZKbexmy Bf0VVB6OfF5uuT36FxSiJw+VxDXDdViZDdzYTBtOjfgCnGlu005hK/UBlD+PN6L4whkJ gjdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PEJIpxDx; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f25si4792784ejh.300.2021.05.25.10.46.06; Tue, 25 May 2021 10:46:29 -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=@gmail.com header.s=20161025 header.b=PEJIpxDx; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233227AbhEYQEp (ORCPT + 99 others); Tue, 25 May 2021 12:04:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233008AbhEYQEo (ORCPT ); Tue, 25 May 2021 12:04:44 -0400 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6F9BC061574; Tue, 25 May 2021 09:03:13 -0700 (PDT) Received: by mail-pg1-x534.google.com with SMTP id f22so22161651pgb.9; Tue, 25 May 2021 09:03:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=GGJlw63A6hNFKItDJtxBDw0DwnZQp/w6Mj4wPb2Ro/c=; b=PEJIpxDxEGT1dvjN5B8GPfy2VR7NtbY30LFlf7hAf65Mb/x19wBeAIu+1OOKwJwAT8 dpYAzCzr+1xj+2sM1eigENpbsvXTN5onKvE6epoouwKhCTdUmq72M/601FaWBJCOhIUh xEYMvxoYZ2J7QpKFr+ehaqpmbuHOVyyFXGX/DZWqQ8VaGfUBMdfWfH41+K/yzaPclPHJ CO1RRYSbUVjWg1GrC6b+fzl1EnI3OW+QXgBzY+VOnAPMcFe4QdOggg0rd3Ic3MY8VRME mRqaTyBEit+YuJeHUeu8ubVY18COBc0BWq8Q1Zjiv6x1erCUg3px/dcWQvCIDNreZiEN 12nw== 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:content-transfer-encoding :in-reply-to; bh=GGJlw63A6hNFKItDJtxBDw0DwnZQp/w6Mj4wPb2Ro/c=; b=ptSyERNvJN1o9+wncK2fHC1LL/wvKgYjggPloEhswjYOMwqEwtITLOMo6S6mNVO1gA qjU+3cQuunDh5H5YfdJZbcDa6KV2W6Zs/7hJ6qJCzVq5wqBxBkVEnmNPYD3V2HdIWPkw gApeds0dOdgeBhzVDJc9qNTb7GDsvVIaHLjA+haJ3zcEl65tmOUu7w9iwi8qjiVF9Tnt LVjoM/1L41GTeLtqqU2XNnHNdGsPRXupvFovUTx9TipBymYroXcPnrqM7+7VZPUYm4nY V0KlU4ceDHvVY77Hv5j6ZH5Z43Tee47PNrRg3MgW0RxdM/eb+A/NEboG/uHN3QT1gP1a ilwA== X-Gm-Message-State: AOAM532bSDhbG80dHGxE9XYWqhNxkZdHAUbgEZ1CE3gwz0zaWtq+pdR9 4csVJ4b77Se8saXKODpXzKY= X-Received: by 2002:a63:64c6:: with SMTP id y189mr19623061pgb.333.1621958593049; Tue, 25 May 2021 09:03:13 -0700 (PDT) Received: from localhost ([103.248.31.164]) by smtp.gmail.com with ESMTPSA id t133sm15394534pgb.0.2021.05.25.09.03.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 May 2021 09:03:12 -0700 (PDT) Date: Tue, 25 May 2021 21:33:09 +0530 From: Amey Narkhede To: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= 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: <20210525160309.trpo2cvzpkpkkidx@archlinux> References: <20210519235426.99728-1-ameynarkhede03@gmail.com> <20210519235426.99728-3-ameynarkhede03@gmail.com> <20210520150526.GB641812@rocinante.localdomain> <20210524144814.rqgvbaawdxbdwio4@archlinux> <20210525151725.GA80163@rocinante.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210525151725.GA80163@rocinante.localdomain> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/05/25 05:17PM, Krzysztof WilczyƄski wrote: > 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 Actually I made a new separate patch at the end to implement this change. I'll send v3 soon. Thanks, Amey