Re: [PATCH 2/2] net: ethernet: mvneta: Add back interface mode validation

From: David Miller
Date: Wed Jun 24 2020 - 17:48:43 EST


From: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
Date: Wed, 24 Jun 2020 09:00:45 +0200

> When writing the serdes configuration register was moved to
> mvneta_config_interface() the whole code block was removed from
> mvneta_port_power_up() in the assumption that its only purpose was to
> write the serdes configuration register. As mentioned by Russell King
> its purpose was also to check for valid interface modes early so that
> later in the driver we do not have to care for unexpected interface
> modes.
> Add back the test to let the driver bail out early on unhandled
> interface modes.
>
> Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>

Applied.

Please submit a proper patch series next time, with a header [PATCH 0/N]
posting. Thank you.