Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp555238ybi; Fri, 24 May 2019 07:53:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqwIuFIqZl9PG6Sq92/coc6U4XOGst1/GnAW4cmpPZnbDWHmidE7fbp9zY8uqdn9XGma1kpg X-Received: by 2002:a17:90a:cb0e:: with SMTP id z14mr9636188pjt.99.1558709631553; Fri, 24 May 2019 07:53:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558709631; cv=none; d=google.com; s=arc-20160816; b=yFyAQO/EAUPlcYUvPAh0vSNH9J0DtwxLifVeYTCOvJqteRfvg3biL6y2OQCsJuWqUm XtY4LMeUBo5q8xFHcdKr3qCwLSQA/nz/XVM/CpQDnFJt4FJXa7zhIZxeMll7I3iMYUuH P2QQb1Vkiehkd03xfPuMWj2QSlTOSRZLaPBR9bctQTqwINrNSRJKDZLcyFK5Fx0wPgac sCfHmpqEPNHsmEKs18vBeSf9NGQTSp6wU0wy8YqPLyQria6lHM/B5eCWSWG8to+MGr7i NTOjyJ6ALEMcyPnjaomU4C4vv5QuvQAWzOCPLgcmQ2nqvmvNake3GgiXxXF6avQh4U9v x33Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=DBVKllj/ryhzCSNfa2uA5hNBjNzuEjrvNyNvCHcqgmQ=; b=NqvGnEWwQCEqQD5Cdto7Q8rcaRxD8MrQ5Ntq+yX9ho5UA5mGPV7JWpc1obfyVtovol TMEiW5CS8lOFWN7gQ1tvhS4J9GGa6AKQH19+ACtItkmfoHd62YWD0mdfPzbrYMCbsw1N gygtC2WY0fii6MEEoy+6D0DAjvzcGvEQtCoFGu4qLjVHPYDjb9bFfLAXj2+orKIwZUD2 tnyyiLUU4KsvJ80yBPHYh7byXYG86k8+2oc8d1aH7eQ7mMi5tuUvJUhNN0OqE0lZvwzw IG+gwIfrvSYU3urUFC09Jns9l67gv4LIsqJe4uVDfM7sZVPR3zR+uiT9unhSFstU54KO QukQ== 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 e25si4426098pfn.211.2019.05.24.07.53.35; Fri, 24 May 2019 07:53:51 -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 S2404145AbfEXOux (ORCPT + 99 others); Fri, 24 May 2019 10:50:53 -0400 Received: from smtp.asem.it ([151.1.184.197]:60586 "EHLO smtp.asem.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403860AbfEXOux (ORCPT ); Fri, 24 May 2019 10:50:53 -0400 X-Greylist: delayed 301 seconds by postgrey-1.27 at vger.kernel.org; Fri, 24 May 2019 10:50:52 EDT Received: from webmail.asem.it by asem.it (smtp.asem.it) (SecurityGateway 5.5.0) with ESMTP id SG003896145.MSG for ; Fri, 24 May 2019 16:45:48 +0200S Received: from ASAS044.asem.intra (172.16.16.44) by ASAS044.asem.intra (172.16.16.44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Fri, 24 May 2019 16:45:47 +0200 Received: from flavio-x.asem.intra (172.16.17.208) by ASAS044.asem.intra (172.16.16.44) with Microsoft SMTP Server id 15.1.1261.35 via Frontend Transport; Fri, 24 May 2019 16:45:47 +0200 From: Flavio Suligoi To: Marek Vasut , Tudor Ambarus , David Woodhouse , Brian Norris , Boris Brezillon , Richard Weinberger CC: , , Flavio Suligoi Subject: [PATCH] mtd: spi-nor: change "error reading JEDEC id" from dbg to err Date: Fri, 24 May 2019 16:45:45 +0200 Message-ID: <1558709145-12088-1-git-send-email-f.suligoi@asem.it> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-SGHeloLookup-Result: pass smtp.helo=webmail.asem.it (ip=172.16.16.44) X-SGSPF-Result: none (smtp.asem.it) X-SGOP-RefID: str=0001.0A090209.5CE8039C.0029,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 (_st=1 _vt=0 _iwf=0) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In case of SPI error during the reading of the nor Id, the probe fails without any error message related to the JEDEC Id reading procedure. Signed-off-by: Flavio Suligoi --- drivers/mtd/spi-nor/spi-nor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index 73172d7..8719d45 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c @@ -2062,7 +2062,7 @@ static const struct flash_info *spi_nor_read_id(struct spi_nor *nor) tmp = nor->read_reg(nor, SPINOR_OP_RDID, id, SPI_NOR_MAX_ID_LEN); if (tmp < 0) { - dev_dbg(nor->dev, "error %d reading JEDEC ID\n", tmp); + dev_err(nor->dev, "error %d reading JEDEC ID\n", tmp); return ERR_PTR(tmp); } -- 2.7.4