diff --git a/patches.suse/net-qca_spi-Fix-log-level-if-probe-fails.patch b/patches.suse/net-qca_spi-Fix-log-level-if-probe-fails.patch new file mode 100644 index 0000000..0bb89fe --- /dev/null +++ b/patches.suse/net-qca_spi-Fix-log-level-if-probe-fails.patch @@ -0,0 +1,65 @@ +From 49c4929a47698a03bec523f3008083343250c71e Mon Sep 17 00:00:00 2001 +From: Stefan Wahren +Date: Wed, 18 Jul 2018 08:31:45 +0200 +Subject: [PATCH 5/7] net: qca_spi: Fix log level if probe fails +References: git-fixes +Patch-mainline: v4.18-rc6 +Git-commit: 50973993260a6934f0a00da53d9b746cfbea89ab + +In cases the probing fails the log level of the messages should +be an error. + +Signed-off-by: Stefan Wahren +Signed-off-by: David S. Miller +Signed-off-by: Denis Kirjanov +--- + drivers/net/ethernet/qualcomm/qca_spi.c | 16 ++++++++-------- + 1 file changed, 8 insertions(+), 8 deletions(-) + +diff --git a/drivers/net/ethernet/qualcomm/qca_spi.c b/drivers/net/ethernet/qualcomm/qca_spi.c +index 5fda7e033a22..332d9802799a 100644 +--- a/drivers/net/ethernet/qualcomm/qca_spi.c ++++ b/drivers/net/ethernet/qualcomm/qca_spi.c +@@ -859,22 +859,22 @@ qca_spi_probe(struct spi_device *spi) + + if ((qcaspi_clkspeed < QCASPI_CLK_SPEED_MIN) || + (qcaspi_clkspeed > QCASPI_CLK_SPEED_MAX)) { +- dev_info(&spi->dev, "Invalid clkspeed: %d\n", +- qcaspi_clkspeed); ++ dev_err(&spi->dev, "Invalid clkspeed: %d\n", ++ qcaspi_clkspeed); + return -EINVAL; + } + + if ((qcaspi_burst_len < QCASPI_BURST_LEN_MIN) || + (qcaspi_burst_len > QCASPI_BURST_LEN_MAX)) { +- dev_info(&spi->dev, "Invalid burst len: %d\n", +- qcaspi_burst_len); ++ dev_err(&spi->dev, "Invalid burst len: %d\n", ++ qcaspi_burst_len); + return -EINVAL; + } + + if ((qcaspi_pluggable < QCASPI_PLUGGABLE_MIN) || + (qcaspi_pluggable > QCASPI_PLUGGABLE_MAX)) { +- dev_info(&spi->dev, "Invalid pluggable: %d\n", +- qcaspi_pluggable); ++ dev_err(&spi->dev, "Invalid pluggable: %d\n", ++ qcaspi_pluggable); + return -EINVAL; + } + +@@ -935,8 +935,8 @@ qca_spi_probe(struct spi_device *spi) + } + + if (register_netdev(qcaspi_devs)) { +- dev_info(&spi->dev, "Unable to register net device %s\n", +- qcaspi_devs->name); ++ dev_err(&spi->dev, "Unable to register net device %s\n", ++ qcaspi_devs->name); + free_netdev(qcaspi_devs); + return -EFAULT; + } +-- +2.16.4 + diff --git a/series.conf b/series.conf index 88db0a6..69d3156 100644 --- a/series.conf +++ b/series.conf @@ -35837,6 +35837,7 @@ patches.suse/ipv6-fix-useless-rol32-call-on-hash.patch patches.suse/0009-net-qca_spi-Avoid-packet-drop-during-initial-sync.patch patches.suse/0010-net-qca_spi-Make-sure-the-QCA7000-reset-is-triggered.patch + patches.suse/net-qca_spi-Fix-log-level-if-probe-fails.patch patches.suse/msft-hv-1734-hv_netvsc-Fix-napi-reschedule-while-receive-completi.patch patches.suse/ptp-fix-missing-break-in-switch.patch patches.suse/crypto-af_alg-Initialize-sg_num_bytes-in-error-code-.patch