Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp424234ybv; Wed, 5 Feb 2020 07:56:38 -0800 (PST) X-Google-Smtp-Source: APXvYqy+w/93U1hmq/v0k/0HHPngRyAmLbb/+2uhpHBNyS0H2LMh3bWQNhHr8NOJqsaRR4Jkg8oc X-Received: by 2002:a9d:7386:: with SMTP id j6mr25928127otk.336.1580918198813; Wed, 05 Feb 2020 07:56:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580918198; cv=none; d=google.com; s=arc-20160816; b=vYRZaznfBGjjA68gjF+IAeENeHz6bYw6DfR1Q4JDvDe6B9grLh+EigPlps4Mbqbfb5 s1Cj5B0xmAJMmw+nZDIhKEeIWgBLcdRGjP9eb8atjVVJWU6zCsBnFmvT2Z0OqOWjwxm+ RUDBNg4oa0beqwCSSLiJLvEEuipIzGSLjaVuqCg6P9mF+IZ3pG0fHYftF6P8Kug5MDn/ 3aVa71TZwlPFPyCk0oP++LS2c8epz/T70mMkfpVlzQMGLzmZBy0ejgzZuY2EGApfGKkG /SEx6IPcgJVJJXguFgN4wsUUZHol9BNTSz7s4nrNwa3IU9u25hF7f+6IB3lKTDMQaIAs oXFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=1F3xjpehDBjF/Myx3pb+XfwnS5+rAD0AgER+Dd+bkYE=; b=ZdjdgWjPI4zf7c1LJVrQbn2nUP9AGbb9kGmPPAJGbh1SydfRyrQvwBbkJ2H7ctpEZB 9X8GVsNZoFkrPfvQAUP++lrCry2cmDaAfYFuCX3Mw1mf2A3xrJPvNnq5R3QNcf1MTzai h60FcDH6ICWCD7Hxhtn8zfiUck83FVKhVEV+aUrjq6LbURO0Hz76OYn2EuG6nkLlF//p hp7+ybBKYrvShyT0ah/qHIdyN9zygFhYeSpXV3gFC/lpS7y4nMxxv2XduVrUx0wS1/5p eHzZ8VChbL7++3tJOkQU/GIbdPcWGKBgt3sIuVHe5AZBVm9miIzB9JWFKF+RJitAvmdZ ZjDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ZMvfnoQz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q126si249768oia.8.2020.02.05.07.56.26; Wed, 05 Feb 2020 07:56:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ZMvfnoQz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727566AbgBEPzM (ORCPT + 99 others); Wed, 5 Feb 2020 10:55:12 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:41235 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727081AbgBEPzL (ORCPT ); Wed, 5 Feb 2020 10:55:11 -0500 Received: by mail-pf1-f194.google.com with SMTP id j9so1406796pfa.8 for ; Wed, 05 Feb 2020 07:55:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=1F3xjpehDBjF/Myx3pb+XfwnS5+rAD0AgER+Dd+bkYE=; b=ZMvfnoQzLVt2DEGa6vft0hPU6wagQS8qAwDVCZnLP3bjyrVwpqnEEeNZUj22GEDL/7 SzqN7EsKAVx0hHfegN1V3efK+eCNoFM217W+ewOkx79251X6ZLVYx2iQNnq9B1ZHb079 3tS6yNLxDs++k3xy3lDhBtkNxUfijLxo5hcXzxmpBSh4Dut+qDK+oId+S3fSfawjnD6+ DL95KkbP/0XBkytWDW3ZFVzQSZsaGkID5J3bhJbRx7Dxn14e/aT7U42l4ToiNrojBQC0 5SJTW9MszrPyxNpDOJKEeamhPMoIY576NWyrPH+rwrAKLSpUhvHMTOzRJaA7p2qC5agX n4UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references; bh=1F3xjpehDBjF/Myx3pb+XfwnS5+rAD0AgER+Dd+bkYE=; b=njhisFNtyJdZJYySHQvwRF6Jn3kCjd52ABu6g+BvUSYHIswFEz1f5NOoP+Ab2MdOUi 1SiWQhAncSg2L7sNeyUxl7ZrOrJ5qLCIfDfj73Pcz/KlTX99D2etqVjCTuWJ84iCa5D3 n9biw7e630qeQIoNHJVza2ztUys34ChseALNCXZQ7RgST1ZFbd6fmelGl6KpzSabEYUI THy0XGBcM9uV7MERII6OOBSFmtrjRCZ1RY2KsxRD6J35nNZS+YrtOwPZZornn2zE6zjY M0XNSS/NIRPdoCfLz40GF9Er3uKtScBXYxr9/qc5WXQEOpwFsXctESN4CMi8kb3zEFGJ QMrA== X-Gm-Message-State: APjAAAVf7g0q4LXo2Gxh2OIQp5WJ1Q+Sz0pL1R/q5kV26+FeNLMoKzCo 56gQ7C8+fUt0/rxrLGnKCKyofE1IOebOMw== X-Received: by 2002:a62:e414:: with SMTP id r20mr36831080pfh.154.1580918109339; Wed, 05 Feb 2020 07:55:09 -0800 (PST) Received: from emb-wallaby.amd.com ([165.204.156.251]) by smtp.gmail.com with ESMTPSA id z10sm195678pgz.88.2020.02.05.07.55.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Feb 2020 07:55:08 -0800 (PST) From: Arindam Nath To: Shyam Sundar S K , Jon Mason , Dave Jiang , Allen Hubbe , Jiasen Lin , Sanjay R Mehta Cc: linux-ntb@googlegroups.com, linux-kernel@vger.kernel.org, Arindam Nath Subject: [PATCH 07/15] NTB: remove handling of peer_sta from amd_link_is_up Date: Wed, 5 Feb 2020 21:24:24 +0530 Message-Id: <7239c2cfca73382562ba8c6579e262b308143304.1580914232.git.arindam.nath@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org amd_link_is_up() is a callback to inquire whether the NTB link is up or not. So it should not indulge itself into clearing the bitmasks of peer_sta. Signed-off-by: Arindam Nath --- drivers/ntb/hw/amd/ntb_hw_amd.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/ntb/hw/amd/ntb_hw_amd.c b/drivers/ntb/hw/amd/ntb_hw_amd.c index b85af150f2c6..e964442ae2c3 100644 --- a/drivers/ntb/hw/amd/ntb_hw_amd.c +++ b/drivers/ntb/hw/amd/ntb_hw_amd.c @@ -253,17 +253,6 @@ static int amd_link_is_up(struct amd_ntb_dev *ndev) return 1; } - /* If peer_sta is reset or D0 event, the ISR has - * started a timer to check link status of hardware. - * So here just clear status bit. And if peer_sta is - * D3 or PME_TO, D0/reset event will be happened when - * system wakeup/poweron, so do nothing here. - */ - if (ndev->peer_sta & AMD_PEER_RESET_EVENT) - ndev->peer_sta &= ~AMD_PEER_RESET_EVENT; - else if (ndev->peer_sta & (AMD_PEER_D0_EVENT | AMD_LINK_DOWN_EVENT)) - ndev->peer_sta = 0; - return 0; } -- 2.17.1