Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp171371imm; Tue, 17 Jul 2018 23:33:34 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfFmbpbohDyRp76dOklypAOgTcSIWs1cwOvTin7+mtBL/gJdEcG0gm5Ixh8AA0S1e1g1Hor X-Received: by 2002:a63:3c4a:: with SMTP id i10-v6mr4509210pgn.415.1531895614178; Tue, 17 Jul 2018 23:33:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531895614; cv=none; d=google.com; s=arc-20160816; b=GP7p3GARKSDrzhKJoyV3ug9M1sXBRHi9ehpb/PGWUeFD+RHan/gVUEKssV/txoD41y YQgwqJOKs/grCmUR/rCP+BIge/oO5uclZmlMGN4dNS2GucLTLRaWHDHBAsK/v0aWhn8Z VhpaUV8cgKMaHZo2pHuHOfl5UdSBBzlYv2m1FndQwBx6ulWrtppd2O4GqpYeEjMyOv1I DmOgb9uGFX2TEM/0c7mVN+whX+hrA9CG/2x+9aU/JZJ6FDth3/5CPJZGM2Il1I1LS6jc QDL+3IoUt1ue9SMVKCAkXHsf10Bm9WWac5fBl84Om5l86HZWWrroCUd/VLvSEY+99z2o Bk7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=w4PD8BW5PV7i0f+lby9NTPvu0LWVH9TaReSvt4uvqV0=; b=d9sfYRpukfpzer0+0Bevy7rayH+dlcUu7AaAIIynidjDS6HMGxG+v/5sTWiQC+8IQT SQTWi+nYhMaEpleUzKjxzWhCTlSsxAWQZJQT0552zrGwza5Lff/Sj0xC3VNPGxgs03Yh tKaHUCPuMvk5UZwI81cxwz9t/KGT3AaMR66Mva+PRcT3YCnDWSUZgPX9fcwxdF0lyRV0 0Idas2kafL2F+X6RxwHvJI+Xnf4JNsViXdVd8d9sKqP+P5C2QNX0h/xs/qOWrT2WSGLD jUec2V+9GiLNOTUsNcf9TMkpbx7g0klPtcuwydYx4twMD9P1eLPOPnrbAEznPjjzdz91 I4aA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d33-v6si2738891pgd.245.2018.07.17.23.33.19; Tue, 17 Jul 2018 23:33:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729650AbeGRHIj (ORCPT + 99 others); Wed, 18 Jul 2018 03:08:39 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:57207 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726166AbeGRHIj (ORCPT ); Wed, 18 Jul 2018 03:08:39 -0400 Received: from stefan-Vostro-260.fritz.box ([109.104.32.110]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.183]) with ESMTPSA (Nemesis) id 0MUEy2-1fWI3a0Ymw-00QxTn; Wed, 18 Jul 2018 08:32:20 +0200 From: Stefan Wahren To: "David S. Miller" Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Stefan Wahren Subject: [PATCH 3/3] net: qca_spi: Fix log level if probe fails Date: Wed, 18 Jul 2018 08:31:45 +0200 Message-Id: <1531895505-26971-4-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1531895505-26971-1-git-send-email-stefan.wahren@i2se.com> References: <1531895505-26971-1-git-send-email-stefan.wahren@i2se.com> X-Provags-ID: V03:K1:yKn9e5cbJfk7eo2MEC4fFsBjcqAv8I3D8RvyA5A70nDcNhekrYc rt92yiFWm6diu2LD7yOmZhF0WuinQNUG3eUqLOhiFvEZ6EmnW5a6+77njDQdqWKYn32+aHk k2A3/1kMlbO/QOymrMK7z78mRkIelUZ5HY09+whZaJ+7w5SL87dBTb3smw62Sp9cGU4AGyP v1J7Zym7okFPuBQJOt4PQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:OWFjPRqSxhg=:a83b0TMPWsvZbvEYtuKI3/ gp9sm0BTCtZXIMovuFf4RWhemwiOjK5hg4ifX6bmXsBumi0jF/2V7OqL0o/MHrAci2n3iVPIm D/TaxRKR912DuBVpyays022y9lEMmZyvOQw5k6p5emcWmEyQ+7gN+66Uf0KUPFIzedhm37WXy dEB6UuF1ioUWXFZfj3IiDdCpzrOuCgkN0Ixr1FQgnTLTAY7oX42p1sGZTYqjJIAs5dpqqExm2 BM4V4mzxmPdHX3ztokbFBiBznHYfqjbA4tNL/rCNbLAv9amqqj4tfhXdXRkIRobauyxZZHj1K E78nODxFkPq98S9FT8Hl7mm41RRdJ1waCGXrt5IXG0xKNMqX5fC7TFB3LqbkzVl/qCIVSIU/P zCNr+7D217a7BwF+Q7wiUgVmbbY9qtNc9P1V8fAhOsr05Cj3uvVa97+v57X1vABlzFsBfh6zx tZ5UXlwUv/+bEfUAYZhP2JHLHhvakkQM9P8N6QKfgPxpIMSpX+EU+aTnCb/CBfx0jIvXJNy15 1sVsPNnPTqIuZNlqgHAzDPUdlUDHDOhFY1gB4S2YqTA5KSJ+jdYyQioFQUKsTPtl9SZxuK17V 4ri5kFfCUl2mx87WG7PWgsudIGz5lauMydttPHWK+Mp+QCjbcaXtXD8uSh3YBmLUAxnEcdCPC SpGN8xpAe70/LILD7fWTyyFpDrYn9LbADgGZFvN9nXoTazXZHZ8piJaqPPLSOwK2VoMk= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In cases the probing fails the log level of the messages should be an error. Signed-off-by: Stefan Wahren --- 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 7fa815d..206f026 100644 --- a/drivers/net/ethernet/qualcomm/qca_spi.c +++ b/drivers/net/ethernet/qualcomm/qca_spi.c @@ -881,22 +881,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; } @@ -958,8 +958,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.7.4