net: ti: am65-cpsw-nuss: Don't cache disabled port ID
authorVignesh Raghavendra <vigneshr@ti.com>
Mon, 10 May 2021 14:36:10 +0000 (20:06 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Wed, 12 May 2021 11:06:38 +0000 (16:36 +0530)
commit2411e85b99293de8701c42d52b31249f0232622c
treede36b66b9442d05c749c313e72d57b66306a55cf
parent8441d49e60e0095acb1c9574135966ceefec4147
net: ti: am65-cpsw-nuss: Don't cache disabled port ID

Currently driver may end up caching disabled port ID as active
interface. Fix this by bailing out earlier in case port is marked
disabled in the DT.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
drivers/net/ti/am65-cpsw-nuss.c