Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
This commit is contained in:
@@ -423,7 +423,8 @@ int sja1105_static_config_upload(struct sja1105_private *priv)
|
||||
rc = static_config_buf_prepare_for_upload(priv, config_buf, buf_len);
|
||||
if (rc < 0) {
|
||||
dev_err(dev, "Invalid config, cannot upload\n");
|
||||
return -EINVAL;
|
||||
rc = -EINVAL;
|
||||
goto out;
|
||||
}
|
||||
/* Prevent PHY jabbering during switch reset by inhibiting
|
||||
* Tx on all ports and waiting for current packet to drain.
|
||||
@@ -432,7 +433,8 @@ int sja1105_static_config_upload(struct sja1105_private *priv)
|
||||
rc = sja1105_inhibit_tx(priv, port_bitmap, true);
|
||||
if (rc < 0) {
|
||||
dev_err(dev, "Failed to inhibit Tx on ports\n");
|
||||
return -ENXIO;
|
||||
rc = -ENXIO;
|
||||
goto out;
|
||||
}
|
||||
/* Wait for an eventual egress packet to finish transmission
|
||||
* (reach IFG). It is guaranteed that a second one will not
|
||||
|
Reference in New Issue
Block a user