Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1991937pxf; Fri, 26 Mar 2021 23:10:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhFFVFG0PjorIS6Fm8x1dv5m+wdR6sFdzTF0e9mOLcWv0tUqGolvQFEjPGnDYpbul0r7yy X-Received: by 2002:aa7:db51:: with SMTP id n17mr19340905edt.259.1616825452370; Fri, 26 Mar 2021 23:10:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616825452; cv=none; d=google.com; s=arc-20160816; b=P3hRA3to9dY0mB7/Nq9T33dfNJQnaPC2P+/Aks0OIDHBy/BOLEcay3FE48XMYWbf4t bbif1W2UV5TqwDFDikJdcLlljN2ZD+jdf89OSiAHhz0eGDptlZ8UXsQrG46vSTHyqBPb CD6NGB+4zcdHI72BcWvirohu20GOBJEScdmicyyzw0D0/d1w4fFmoEdvESJODpZ0kIKk ic4C3A8SCjDh5Etsi0jaRfuSQehBPqkZ1KjmJoxyzMB1WYSbL5/NFoB18HZEN7bEg/vK +s+GRto9B3bBWh7j8h9rQyooGhzc/CwrIFUjKXndmp3w0+ATgNkOxrUxTq7No5p/hYqb je7g== 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:dkim-signature; bh=GgJE7VA9CtvK+mDxXrCKRRUZzrr45Ug93rfuEauF6xo=; b=mlFb/DDqChZKcAOaxvQ2YpN+QgSIe+vQQYNcCYQWYUg+z2l0pNixBMlbJrEUJS/r/m BYZp7XxvOCnveDlUpJjLgqJgRJzAbNoTKalH5g8ZxcEnwyoN3z7izn9lwRcp5nOjt72R flXAUQxUIcwdqWjpNDjZoWXCQAyffzx/JdH1FwQeUHwuLArkGh3yApIuB2qhKq/0Dnuq av5rIWTqrhBd6FL4K7rNWGQDXzxNnC4bCBxkU31LQmQgOlR+PtahuIefSzLAn6Sli2Ef d+V7MDlK9GolWg19HxtIcde8wp+Yd4PW83k1tgmtGb1eO7wvGzINOfjVvFD02XGLbk2R SNQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="cDyFO9d/"; 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 ds7si9786674ejc.598.2021.03.26.23.10.30; Fri, 26 Mar 2021 23:10:52 -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="cDyFO9d/"; 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 S230352AbhC0GDT (ORCPT + 99 others); Sat, 27 Mar 2021 02:03:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:49836 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230236AbhC0GC6 (ORCPT ); Sat, 27 Mar 2021 02:02:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 08889619AB; Sat, 27 Mar 2021 06:02:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616824977; bh=vJLK3mU/mYXW2zAN69H1AT5oKhmRrXT3I2N/5ZFnso0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cDyFO9d/KzK+318L7Y4W43TDiXdjDmWdSca4x55Ikn2fGbSiDlW0NGCsF1Sd4UTkB vW3gw1w44W1rNpLOApqvX/JPrD9xfme9Y98x/bvgAIOhMWzjYwWv9I2Y0qd6pZRK4n aVhmEHkweybQs0NOAugs+1NG2PKmyZ6Hcv0PqWPc5eIXnIHPdgwUEYAWpHTwzfeu4E BGTAF0Sn5W3bFrNUYcPn8hQLySXDZojHw5t9UC2DdkeKcNtsY78e9mF2ESwW8DYpE1 MoDZZj/fwvMLMeR2xv4WNfidxnl0jkw/A3vebh6hNjmbrCoR3cvkS92uLUPpYgF/tc aDPeD7tZxiwrA== Date: Sat, 27 Mar 2021 09:02:54 +0300 From: Leon Romanovsky To: Alex Williamson Cc: "Enrico Weigelt, metux IT consult" , Amey Narkhede , raphael.norwitz@nutanix.com, linux-pci@vger.kernel.org, bhelgaas@google.com, linux-kernel@vger.kernel.org, alay.shah@nutanix.com, suresh.gumpula@nutanix.com, shyam.rajendran@nutanix.com, felipe@nutanix.com Subject: Re: [PATCH 4/4] PCI/sysfs: Allow userspace to query and set device reset mechanism Message-ID: References: <20210324083743.791d6191@omen.home.shazbot.org> <20210324111729.702b3942@omen.home.shazbot.org> <20210325085504.051e93f2@omen.home.shazbot.org> <20210325115324.046ddca8@omen.home.shazbot.org> <20210326082007.58ef9ac4@x1.home.shazbot.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210326082007.58ef9ac4@x1.home.shazbot.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 26, 2021 at 08:20:07AM -0600, Alex Williamson wrote: > On Fri, 26 Mar 2021 09:40:30 +0300 > Leon Romanovsky wrote: <...> > > > > It supports by writing: echo "bus,pm" > reset_methods. > > Regarding comma, IMHO it is easiest pattern for the parsing. > > > > Anyway, The in-kernel implementation is not important to me. > > Too bad, it should have been apparent from the sample code that it was > using a comma separated list with re-ordering support. Thanks, Excellent, both of us think that "bus,pm" is the easiest way to implement policy decision. Thanks > > Alex >