From: Deepthi Kavalur <deepthi.kavalur@intel.com>
To: intel-wired-lan@osuosl.org
Subject: [Intel-wired-lan] [next PATCH S26 08/12] i40e: negate phy int mask bits
Date: Mon, 4 Jan 2016 10:33:08 -0800 [thread overview]
Message-ID: <1451932392-15538-9-git-send-email-deepthi.kavalur@intel.com> (raw)
In-Reply-To: <1451932392-15538-1-git-send-email-deepthi.kavalur@intel.com>
From: Shannon Nelson <shannon.nelson@intel.com>
The phy interrupt mask bits mask out the events we don't want,
so we need to negate the bitmask of events we want.
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Change-ID: I273244da5a8d285b6abc84fd68a90f1e6fa0393e
---
Testing Hints:
The software will not be notified that an empty module has been
placed into the cage, and link has not been established.
drivers/net/ethernet/intel/i40e/i40e_main.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c
index 37d6979..2939ce8 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_main.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c
@@ -6816,12 +6816,12 @@ static void i40e_reset_and_rebuild(struct i40e_pf *pf, bool reinit)
if (ret)
goto end_core_reset;
- /* driver is only interested in link up/down and module qualification
- * reports from firmware
+ /* The driver only wants link up/down and module qualification
+ * reports from firmware. Note the negative logic.
*/
ret = i40e_aq_set_phy_int_mask(&pf->hw,
- I40E_AQ_EVENT_LINK_UPDOWN |
- I40E_AQ_EVENT_MODULE_QUAL_FAIL, NULL);
+ ~(I40E_AQ_EVENT_LINK_UPDOWN |
+ I40E_AQ_EVENT_MODULE_QUAL_FAIL), NULL);
if (ret)
dev_info(&pf->pdev->dev, "set phy mask fail, err %s aq_err %s\n",
i40e_stat_str(&pf->hw, ret),
@@ -10959,12 +10959,12 @@ static int i40e_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
}
}
- /* driver is only interested in link up/down and module qualification
- * reports from firmware
+ /* The driver only wants link up/down and module qualification
+ * reports from firmware. Note the negative logic.
*/
err = i40e_aq_set_phy_int_mask(&pf->hw,
- I40E_AQ_EVENT_LINK_UPDOWN |
- I40E_AQ_EVENT_MODULE_QUAL_FAIL, NULL);
+ ~(I40E_AQ_EVENT_LINK_UPDOWN |
+ I40E_AQ_EVENT_MODULE_QUAL_FAIL), NULL);
if (err)
dev_info(&pf->pdev->dev, "set phy mask fail, err %s aq_err %s\n",
i40e_stat_str(&pf->hw, err),
--
2.1.0
next prev parent reply other threads:[~2016-01-04 18:33 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-04 18:33 [Intel-wired-lan] [next PATCH S26 00/12] i40e/i40evf updates Deepthi Kavalur
2016-01-04 18:33 ` [Intel-wired-lan] [next PATCH S26 01/12] i40e: trivial: drop duplicate definition Deepthi Kavalur
2016-01-07 15:46 ` Bowers, AndrewX
2016-01-04 18:33 ` [Intel-wired-lan] [next PATCH S26 02/12] i40e: trivial: fix missing space Deepthi Kavalur
2016-01-07 15:48 ` Bowers, AndrewX
2016-01-04 18:33 ` [Intel-wired-lan] [next PATCH S26 03/12] i40e: fix bug in dma sync Deepthi Kavalur
2016-01-07 22:37 ` Bowers, AndrewX
2016-01-04 18:33 ` [Intel-wired-lan] [next PATCH S26 04/12] i40e: do TSO only if CHECKSUM_PARTIAL is set Deepthi Kavalur
2016-01-07 18:31 ` Bowers, AndrewX
2016-01-04 18:33 ` [Intel-wired-lan] [next PATCH S26 05/12] i40e: allocate memory safer Deepthi Kavalur
2016-01-07 22:40 ` Bowers, AndrewX
2016-01-04 18:33 ` [Intel-wired-lan] [next PATCH S26 06/12] i40e: fix: do not sleep in netdev_ops Deepthi Kavalur
2016-01-04 20:02 ` Jesse Brandeburg
2016-01-06 1:39 ` Kavalur, Deepthi
2016-01-06 2:25 ` Brandeburg, Jesse
2016-01-13 19:13 ` Bowers, AndrewX
2016-01-04 18:33 ` [Intel-wired-lan] [next PATCH S26 07/12] i40e: APIs to Add/remove port mirroring rules Deepthi Kavalur
2016-01-07 19:03 ` Bowers, AndrewX
2016-01-04 18:33 ` Deepthi Kavalur [this message]
2016-01-07 19:20 ` [Intel-wired-lan] [next PATCH S26 08/12] i40e: negate phy int mask bits Bowers, AndrewX
2016-01-04 18:33 ` [Intel-wired-lan] [next PATCH S26 09/12] i40e: drop unused function Deepthi Kavalur
2016-01-07 19:26 ` Bowers, AndrewX
2016-01-04 18:33 ` [Intel-wired-lan] [next PATCH S26 10/12] i40e: count allocation errors Deepthi Kavalur
2016-01-07 19:28 ` Bowers, AndrewX
2016-01-04 18:33 ` [Intel-wired-lan] [next PATCH S26 11/12] i40e: avoid large memcpy by assigning struct Deepthi Kavalur
2016-01-07 19:30 ` Bowers, AndrewX
2016-01-04 18:33 ` [Intel-wired-lan] [next PATCH S26 12/12] i40e/i40evf: bump version to 1.4.12/1.4.8 Deepthi Kavalur
2016-01-07 19:31 ` Bowers, AndrewX
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1451932392-15538-9-git-send-email-deepthi.kavalur@intel.com \
--to=deepthi.kavalur@intel.com \
--cc=intel-wired-lan@osuosl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox