Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6520976rdb; Fri, 15 Dec 2023 00:22:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IEotdWwwskXHdFxox821z/hUXCXKJMEaBBja6rIyjEvYuLb4/MwoEcrAFvzoux18ctdYWt+ X-Received: by 2002:a05:6214:114a:b0:67a:a721:b1c3 with SMTP id b10-20020a056214114a00b0067aa721b1c3mr11583658qvt.126.1702628534614; Fri, 15 Dec 2023 00:22:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702628534; cv=none; d=google.com; s=arc-20160816; b=K74m9e2p+7+6OXU/5uhxaAiWdQbaVadLszTM6clEFVnQkQuvx17Ahk3Johgn1BVSzx ypZpTNHaWwYoNF/jOfEV7JhfCuTPKMXD+bVllaPAYEuXZ7bRiRrW++v79ToLy+oe0L0i R9JIDOFlH1q94GVK+TBCspvzAyX/y9zxntkg7GKufX+twLM77XAzOZG06P+2RDH3Ac74 PFyAdu5pIzRIirsPdD5N9QH9AbhhJk8FaDiXaMSOATgM3p75gXZ78VM+yY+/hQtAOu48 LEqPkWpUGQe3fakFyZESVEp2P/SwRMlDA1jw2rIERvsRCI/MkD3D1uQdXOSJQGhqTt8x iW1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=WE4J9sdEbAWjadlcgrRDtUX7vxkIo3SYHmREd1D2LhY=; fh=YVYGvP291ZkBJgQJkoi94ddctFCboB5G1PFuo4//hOs=; b=hxllrM90H9aKXVcOTb0oZZKfS447wvjjEMcDz+WisE/CbQTc6EK8YYVJ+OWYNJKBMQ rmrDZnGCKiIDw4Y5jLp0nSkqMuC37aBzNz/reTsHnWO/wg+Y8UnxNF6qwSBH4/CFPEq0 ZsdfFmxxxZsdL0xy34XlgOC1tMVN7q0eu9TFEXlx6I5A85So9jEhOZi1GwBSh1Mdozfp BMdGmugTB44FFHQIW0UlKVGJxmDVU6XUx3z5eaqGZ4u+vfQ0XHlxcTmlZrfXVsOh/GKr di6s/+2URaxOMYa8mUwhYXbPW7/S1jC51g9poVgY45LFK1hJ6iNYPQjUSu16JFQ/MTOS hrgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HrhuLvCg; spf=pass (google.com: domain of linux-kernel+bounces-606-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-606-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id r10-20020a05621410ca00b0067a93cf954bsi18047568qvs.266.2023.12.15.00.22.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 00:22:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-606-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HrhuLvCg; spf=pass (google.com: domain of linux-kernel+bounces-606-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-606-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5305A1C225A0 for ; Fri, 15 Dec 2023 08:22:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BAAFA171D4; Fri, 15 Dec 2023 08:21:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="HrhuLvCg" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E53E13FE1 for ; Fri, 15 Dec 2023 08:21:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-40c3fe6c08fso4599665e9.1 for ; Fri, 15 Dec 2023 00:21:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702628503; x=1703233303; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WE4J9sdEbAWjadlcgrRDtUX7vxkIo3SYHmREd1D2LhY=; b=HrhuLvCgAyvJKjS4PHjeQWvboAWMZ5PXakURmnPSXSfNkX3V8oN9juOOtbVVYpqopW LnBjvENpj9FzRc2A4eBOq06nD7CUsmQb6AATbsxv/S8qO4sTKgV3/+dA5ZBSQTsLKsS5 NeaTnUw5TQ1t90/Bj/y+ZLuprkuAuOEjwPpvGVfjfaaTDM9TO0q2PKC6hpXABzPXQYDP Qc+gknVD2J7SpEZRDM7pgG894nwWo9UHy2Zvz0qTyDBlJ4Z/fA9uHVbDRChMFqoruV2u /ZB+03jsJXd0zFMq2Oejr/Pn37zXX2zPETC+EtT3vfUfotJaDtpo5vYNl+eRbEWvmu6Q FSWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702628503; x=1703233303; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WE4J9sdEbAWjadlcgrRDtUX7vxkIo3SYHmREd1D2LhY=; b=I58M0zdcAnHXeoz7ZgrXeZLWBDPhdwUXZ+3LgOegylkgmtozLkJz1tw9HSRgk+h19a 6gs1FqJU26iTCnL8oEnPUn6JyVRi513cCqEI0sg1xfNj2hrmFNHS5Xiv/JYy2piLkphm Ob+G7OivPrIRpfccg8gPjuuBDiUkzvmcDPtpIRFqZsTDknKuTtFq/pUI324kSVdrxxVU geVzmT3ReEv8xMGDtJ7K7pkDQqt/pY3AmszSruQOhvOXIf8UkHBSQp6nqOuCG+xMeZGL lW67hYnMJedYXy+mNYVvM8DBQ2sGtTyo1QoazOCvVFN9rL1v+zGoQ+V4Pzijy9elPL4d qHcw== X-Gm-Message-State: AOJu0Yzt/iZTyENmEF4HQexgdgcLBYoMtsxZ8N20E5SxmG6YeRZC1zKY v7n+1kUkq8cOpbKfvYfqOW0jMQ== X-Received: by 2002:a05:600c:249:b0:40b:5e59:99bf with SMTP id 9-20020a05600c024900b0040b5e5999bfmr4088179wmj.223.1702628503704; Fri, 15 Dec 2023 00:21:43 -0800 (PST) Received: from 1.. ([79.115.63.202]) by smtp.gmail.com with ESMTPSA id p1-20020a05600c1d8100b0040b47c69d08sm30365570wms.18.2023.12.15.00.21.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 00:21:43 -0800 (PST) From: Tudor Ambarus To: pratyush@kernel.org, michael@walle.cc, miquel.raynal@bootlin.com Cc: richard@nod.at, jaimeliao@mxic.com.tw, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Tudor Ambarus Subject: [PATCH 1/4] mtd: spi-nor: print flash ID instead of name Date: Fri, 15 Dec 2023 10:21:35 +0200 Message-Id: <20231215082138.16063-2-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231215082138.16063-1-tudor.ambarus@linaro.org> References: <20231215082138.16063-1-tudor.ambarus@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1014; i=tudor.ambarus@linaro.org; h=from:subject; bh=fRyfzko8la0oCOG0RX2CCXFxXMrr7i/8B7atPKhz260=; b=owEBbQGS/pANAwAKAUtVT0eljRTpAcsmYgBlfAyRihKH+RI8/qRe0hK1IhGDHTic6pMxXPYs5 LnRM+P/4lCJATMEAAEKAB0WIQQdQirKzw7IbV4d/t9LVU9HpY0U6QUCZXwMkQAKCRBLVU9HpY0U 6XD6CACyrcB+g8TzFuiWVZUQywzLCBw9n8J1TZkKlPXDSge9SYaMxQWXrisUVJRyp4TPFDckCcq g+Ogvbm8MrdTNXYi/rZHjVxYxQQ2nF9Dhrwd5tMNv0Y8MlqgIIV7jN2d7BGiBYzyat2z2+LszYE jX1HuX/mcZvyLxPPTZBGP/YXUOzwGr91zgRQE/bOJ1f56TEGN+0tU+MA8J+QjfUyuj8jeowM6V4 YJZCpPqxk/V3XxKTV5S+r2bZDAz81yj+p3coY3DjhNuKvOXec3yzFJPOiIap3byp9xa6+WfA7If 4DC5Q4PsepRygwyOPgCUhGDsdCmPQsrrE4KCTnZ3PBdngr+W X-Developer-Key: i=tudor.ambarus@linaro.org; a=openpgp; fpr=280B06FD4CAAD2980C46DDDF4DB1B079AD29CF3D Content-Transfer-Encoding: 8bit We saw flash ID collisions which make the flash name unreliable. Print the manufacgturer and device ID instead of the flash name. Lower the print to dev_dbg to stop polluting the kernel log. Suggested-by: Miquel Raynal Signed-off-by: Tudor Ambarus --- drivers/mtd/spi-nor/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c index 503fed90c2fa..ca5bd93d1f17 100644 --- a/drivers/mtd/spi-nor/core.c +++ b/drivers/mtd/spi-nor/core.c @@ -3558,8 +3558,8 @@ int spi_nor_scan(struct spi_nor *nor, const char *name, /* No mtd_info fields should be used up to this point. */ spi_nor_set_mtd_info(nor); - dev_info(dev, "%s (%lld Kbytes)\n", info->name, - (long long)mtd->size >> 10); + dev_dbg(dev, "Manufacturer and device ID: %*phN\n", + SPI_NOR_MAX_ID_LEN, nor->id); dev_dbg(dev, "mtd .name = %s, .size = 0x%llx (%lldMiB), " -- 2.34.1