drivers: eth_e1000: Enable the correct IRQ for multi-instance
The code was always enabling DT INST 0 IRQ Signed-off-by: Grant Ramsay <gramsay@enphaseenergy.com>
This commit is contained in:
parent
8b703cab8c
commit
a6e1f89bda
1 changed files with 1 additions and 1 deletions
|
@ -338,7 +338,7 @@ static const struct ethernet_api e1000_api = {
|
||||||
e1000_isr, DEVICE_DT_INST_GET(inst), \
|
e1000_isr, DEVICE_DT_INST_GET(inst), \
|
||||||
E1000_DT_INST_IRQ_FLAGS(inst)); \
|
E1000_DT_INST_IRQ_FLAGS(inst)); \
|
||||||
\
|
\
|
||||||
irq_enable(DT_INST_IRQN(0)); \
|
irq_enable(DT_INST_IRQN(inst)); \
|
||||||
iow32(dev, CTRL, CTRL_SLU); /* Set link up */ \
|
iow32(dev, CTRL, CTRL_SLU); /* Set link up */ \
|
||||||
iow32(dev, RCTL, RCTL_EN | RCTL_MPE); \
|
iow32(dev, RCTL, RCTL_EN | RCTL_MPE); \
|
||||||
} \
|
} \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue