Commit da120112 authored by Nicolas Ferre's avatar Nicolas Ferre Committed by David S. Miller

net/macb: add comment in macb_probe_queues

As we access the MID register directly, we need to tell why
we don't use the macb_is_gem() dedicated function.
Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bfa0914a
...@@ -2161,9 +2161,13 @@ static void macb_probe_queues(void __iomem *mem, ...@@ -2161,9 +2161,13 @@ static void macb_probe_queues(void __iomem *mem,
*queue_mask = 0x1; *queue_mask = 0x1;
*num_queues = 1; *num_queues = 1;
/* is it macb or gem ? */ /* is it macb or gem ?
*
* We need to read directly from the hardware here because
* we are early in the probe process and don't have the
* MACB_CAPS_MACB_IS_GEM flag positioned
*/
mid = readl_relaxed(mem + MACB_MID); mid = readl_relaxed(mem + MACB_MID);
if (MACB_BFEXT(IDNUM, mid) < 0x2) if (MACB_BFEXT(IDNUM, mid) < 0x2)
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment