Skip to content

Commit 9a7c15d

Browse files
lategoodbyeZhengShunQian
authored andcommitted
net: qca_spi: Fix log level if probe fails
[ Upstream commit 5097399 ] In cases the probing fails the log level of the messages should be an error. Signed-off-by: Stefan Wahren <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 03db448 commit 9a7c15d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

drivers/net/ethernet/qualcomm/qca_spi.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -868,22 +868,22 @@ qca_spi_probe(struct spi_device *spi)
868868

869869
if ((qcaspi_clkspeed < QCASPI_CLK_SPEED_MIN) ||
870870
(qcaspi_clkspeed > QCASPI_CLK_SPEED_MAX)) {
871-
dev_info(&spi->dev, "Invalid clkspeed: %d\n",
872-
qcaspi_clkspeed);
871+
dev_err(&spi->dev, "Invalid clkspeed: %d\n",
872+
qcaspi_clkspeed);
873873
return -EINVAL;
874874
}
875875

876876
if ((qcaspi_burst_len < QCASPI_BURST_LEN_MIN) ||
877877
(qcaspi_burst_len > QCASPI_BURST_LEN_MAX)) {
878-
dev_info(&spi->dev, "Invalid burst len: %d\n",
879-
qcaspi_burst_len);
878+
dev_err(&spi->dev, "Invalid burst len: %d\n",
879+
qcaspi_burst_len);
880880
return -EINVAL;
881881
}
882882

883883
if ((qcaspi_pluggable < QCASPI_PLUGGABLE_MIN) ||
884884
(qcaspi_pluggable > QCASPI_PLUGGABLE_MAX)) {
885-
dev_info(&spi->dev, "Invalid pluggable: %d\n",
886-
qcaspi_pluggable);
885+
dev_err(&spi->dev, "Invalid pluggable: %d\n",
886+
qcaspi_pluggable);
887887
return -EINVAL;
888888
}
889889

@@ -944,8 +944,8 @@ qca_spi_probe(struct spi_device *spi)
944944
}
945945

946946
if (register_netdev(qcaspi_devs)) {
947-
dev_info(&spi->dev, "Unable to register net device %s\n",
948-
qcaspi_devs->name);
947+
dev_err(&spi->dev, "Unable to register net device %s\n",
948+
qcaspi_devs->name);
949949
free_netdev(qcaspi_devs);
950950
return -EFAULT;
951951
}

0 commit comments

Comments
 (0)