From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D9E3D5C614 for ; Wed, 3 Apr 2024 07:48:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712130512; cv=none; b=s2iEZd3R8O1/Eo4E4UmhCvqqJZMLte6wBidjANhdMq5kVwUn7otzkckeLrGKn0GsSjIG6e6JhgO56pdZnmPxLo7QUKMsCsFJi6g0Rzir3HkGnsCLVxQD3n5J8tXOCCuR0InM6NcwmaUrhzeMkKuHTBdviH5fJt16dGyGBq9clHg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712130512; c=relaxed/simple; bh=OZCWJyZgp+qNMYaaO6OuRtDvknKTFDJ6C9xvIxJZYWA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FsxPgBe6CgBzEp3vvyeFbJCze3VNM6WzzCfBr46temRFlicXVGrWbJ+Y6YSO+cyvbTquHO9vhjJXg+T8JXpotuShsYrlvetv7bdEizosH9Sx8DPi259WsEbU9IioYQLRyhYhOulfPqjyrVRXAgJ2tg4GRIb0K7CPq9XVGyH2184= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=RHKTTYTx; arc=none smtp.client-ip=209.85.214.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="RHKTTYTx" Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-1e0411c0a52so51522345ad.0 for ; Wed, 03 Apr 2024 00:48:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712130510; x=1712735310; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=oiLhE3nJcxEv6fm07mV5XlsWCD0O08cn9iKLU7OjZzY=; b=RHKTTYTxaY6CcIi8QdX7W02/oKr82d7NzKwojKY2hMn9LCl/2nVLAFcF9hVvFqQvvr xrqe7WeqTGYknHjFxDVI/mndVNrRBgAz6K/MKojIbms4kGVfQIhiugcYlvjs1IzcKnkK hO9b4RLKOniYSNMSawL1qxyiEpMdxnBekiZfrVOJP4BZj28+jyH/lN7pwkK9kGPJKIFJ /wgCgfp2nEFpx78ZsXHE7gfECdaEC5nF/D+8ThUs8mHJkQRCLMwH5NWfAkrxipPH+I7S RxFTPkzHI/pm2eWoIEJhPK3qON/o/PpFLjtNfY+UY2+MZRCAIKH7hTkOEuCuI7GPzKAI mYhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712130510; x=1712735310; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=oiLhE3nJcxEv6fm07mV5XlsWCD0O08cn9iKLU7OjZzY=; b=sxBShjGz6shTv/91Xylyiy8vIBEe4TBxcDWYnpkQFXtKLlqSIq32NatdGtyzi2j3lF TxvM2dJmw+Pd7Xbio7D+5DS9WDfykdpAbXwNCIajRHBFZEUGC7XfBlzL6tJXnCexfqvA tIczCrC9+/9jUhPWz4aG96ChBHSM9oP+KYeirf31gixaRsNHzDtYwj5LAjfAU80O+mwd Cx9lA6fiVwMeC3YBDSz9IBu0bCFIB8SXP/xoXn9t7+vVUSM/ahVi8CbTEPMDUV0Rim07 8q4h9v3XJm3MJfJxSmuANGL4zJzIAW/hHd7jn+qAmFJjwwpeIE0APdyklTS5yiJVYymM T0dA== X-Forwarded-Encrypted: i=1; AJvYcCWUKNt7aLk9HxEnyiWHKWFJiD69/tShq7BhkOjvHlNyQdiB/vAvPuoCv1UcCJRN/9ik02LCEt7Th7W2WB+AvDwi2v6ouY4GmYIQAQ== X-Gm-Message-State: AOJu0Yzc4OhzOlahD+fKgmsdU0F8rHcfjOgIWOa5sO71qqTRaO5jMulm 23L649DHOnoXB2ge+PnXpESExfNjbminGd2YJDix/t6X/9SctosR3EQ2FtKVOQ== X-Google-Smtp-Source: AGHT+IHNyPa653DZR4WUPhXaph3qHIeFF1sftZgr1SEp+rlYp4MQGikAbqndRiCsKzJkwfzdnQDVWw== X-Received: by 2002:a17:902:64c8:b0:1e2:7879:9646 with SMTP id y8-20020a17090264c800b001e278799646mr2958847pli.36.1712130509976; Wed, 03 Apr 2024 00:48:29 -0700 (PDT) Received: from thinkpad ([103.28.246.48]) by smtp.gmail.com with ESMTPSA id n14-20020a170902d2ce00b001e0942da6c7sm12473372plc.284.2024.04.03.00.48.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 00:48:29 -0700 (PDT) Date: Wed, 3 Apr 2024 13:18:23 +0530 From: Manivannan Sadhasivam To: Damien Le Moal Cc: Lorenzo Pieralisi , Kishon Vijay Abraham I , Shawn Lin , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Bjorn Helgaas , Heiko Stuebner , linux-pci@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Rick Wertenbroek , Wilfred Mallawa , Niklas Cassel Subject: Re: [PATCH v2 06/18] PCI: endpoint: test: Implement link_down event operation Message-ID: <20240403074823.GE25309@thinkpad> References: <20240330041928.1555578-1-dlemoal@kernel.org> <20240330041928.1555578-7-dlemoal@kernel.org> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240330041928.1555578-7-dlemoal@kernel.org> On Sat, Mar 30, 2024 at 01:19:16PM +0900, Damien Le Moal wrote: > Implement the link_down event operation to stop the command execution > delayed work when the endpoint controller notifies a link down event. > > Signed-off-by: Damien Le Moal This patch is already part of another series I posted [1] and under review. So this can be dropped. - Mani [1] https://lore.kernel.org/linux-pci/20240401-pci-epf-rework-v2-9-970dbe90b99d@linaro.org/ > Reviewed-by: Frank Li > --- > drivers/pci/endpoint/functions/pci-epf-test.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/pci/endpoint/functions/pci-epf-test.c b/drivers/pci/endpoint/functions/pci-epf-test.c > index ab40c3182677..e6d4e1747c9f 100644 > --- a/drivers/pci/endpoint/functions/pci-epf-test.c > +++ b/drivers/pci/endpoint/functions/pci-epf-test.c > @@ -824,9 +824,19 @@ static int pci_epf_test_link_up(struct pci_epf *epf) > return 0; > } > > +static int pci_epf_test_link_down(struct pci_epf *epf) > +{ > + struct pci_epf_test *epf_test = epf_get_drvdata(epf); > + > + cancel_delayed_work_sync(&epf_test->cmd_handler); > + > + return 0; > +} > + > static const struct pci_epc_event_ops pci_epf_test_event_ops = { > .core_init = pci_epf_test_core_init, > .link_up = pci_epf_test_link_up, > + .link_down = pci_epf_test_link_down, > }; > > static int pci_epf_test_alloc_space(struct pci_epf *epf) > -- > 2.44.0 > -- மணிவண்ணன் சதாசிவம்