Prevent poll before the RX init has been completed.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
#include <asm/octeon/cvmx-gmxx-defs.h>
+static atomic_t oct_rx_ready = ATOMIC_INIT(0);
+
static struct oct_rx_group {
int irq;
int group;
{
int i;
+ if (!atomic_read(&oct_rx_ready))
+ return;
+
for (i = 0; i < ARRAY_SIZE(oct_rx_group); i++) {
if (!(pow_receive_groups & BIT(i)))
*/
napi_schedule(&oct_rx_group[i].napi);
}
+ atomic_inc(&oct_rx_ready);
}
void cvm_oct_rx_shutdown(void)