From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 683CCC2D0C4 for ; Wed, 11 Dec 2019 03:26:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 424EB206A5 for ; Wed, 11 Dec 2019 03:26:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727032AbfLKD0X (ORCPT ); Tue, 10 Dec 2019 22:26:23 -0500 Received: from mx.socionext.com ([202.248.49.38]:46298 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726642AbfLKD0W (ORCPT ); Tue, 10 Dec 2019 22:26:22 -0500 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 11 Dec 2019 12:26:20 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id 19871603AB; Wed, 11 Dec 2019 12:26:21 +0900 (JST) Received: from 172.31.9.53 (172.31.9.53) by m-FILTER with ESMTP; Wed, 11 Dec 2019 12:26:51 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by iyokan.css.socionext.com (Postfix) with ESMTP id 8879F4034C; Wed, 11 Dec 2019 12:26:20 +0900 (JST) Received: from [10.213.132.48] (unknown [10.213.132.48]) by yuzu.css.socionext.com (Postfix) with ESMTP id 6B65512044A; Wed, 11 Dec 2019 12:26:20 +0900 (JST) Date: Wed, 11 Dec 2019 12:26:20 +0900 From: Kunihiko Hayashi To: Kishon Vijay Abraham I , Lorenzo Pieralisi Subject: Re: [PATCH] PCI: endpoint: Fix clearing start entry in configfs Cc: , In-Reply-To: <1568282211-24713-1-git-send-email-hayashi.kunihiko@socionext.com> References: <1568282211-24713-1-git-send-email-hayashi.kunihiko@socionext.com> Message-Id: <20191211122620.F5A9.4A936039@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.70 [ja] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Is there any comments about this? I think this fix needs to stop and restart endpoint controller using configfs 'logically' at least. Thank you, On Thu, 12 Sep 2019 18:56:51 +0900 wrote: > The value of 'start' entry is no change whenever writing 0 to configfs. > So the endpoint that stopped once can't restart. > > Fixes: d74679911610 ("PCI: endpoint: Introduce configfs entry for configuring EP functions") > Cc: Kishon Vijay Abraham I > Signed-off-by: Kunihiko Hayashi > --- > drivers/pci/endpoint/pci-ep-cfs.c | 1 + > 1 file changed, 1 insertion(+) > > Since the possibility of restarting endpoint is up to each controller, > if restart is prohibited on purpose for some reason, this patch can be > ignored. > > diff --git a/drivers/pci/endpoint/pci-ep-cfs.c b/drivers/pci/endpoint/pci-ep-cfs.c > index d1288a0..4fead88 100644 > --- a/drivers/pci/endpoint/pci-ep-cfs.c > +++ b/drivers/pci/endpoint/pci-ep-cfs.c > @@ -58,6 +58,7 @@ static ssize_t pci_epc_start_store(struct config_item *item, const char *page, > > if (!start) { > pci_epc_stop(epc); > + epc_group->start = 0; > return len; > } > > -- > 2.7.4 --- Best Regards, Kunihiko Hayashi