Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp738442rdb; Thu, 22 Feb 2024 19:49:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWBQnTxsbpZljizEEQqGVjppgRdlHofk7Vm4BISLrKNk5xemYXGRAbIcNerh2XZhy66rwc44w7WcSCkXecJ7BN15z2fr5IbPDT2O+xa0g== X-Google-Smtp-Source: AGHT+IGuobevtXGyCi582xY4Nwc1aeqlqEI7g3aadTjxFoA7a3ANCiM2SrPkJXUs5eH4o0W2hSzP X-Received: by 2002:a05:620a:240a:b0:787:3e20:3ca5 with SMTP id d10-20020a05620a240a00b007873e203ca5mr1143921qkn.1.1708660193824; Thu, 22 Feb 2024 19:49:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708660193; cv=pass; d=google.com; s=arc-20160816; b=vMSsfu9JIf9PQoTp5PkYIuA1/zGSq5Yyy2LGQZPzhdTJFVGLjysbCojHZHAtllUWv3 abwvZdLazXFQUlx2o9vBw3tztVeQT6smMazOBBGWLmQHg+3kN5nbyS3F1NybbGVwU5R2 VZiV+dt2s0HUqBi943JIeJTjBSWyi0EO700OcmnJ9qdjXRLodJcnRRp5YkcXVrB41BZm Pg6Cd4jpJ95HMslgDOXvfiaSuw/iFtqmKcEwl4xuVRZPOuSQ7gI+HrDnsLaLJwQmt5zl TWYd+anQj+AzNvNukTbIB4AZpZF57LTS1uLj4eAt+E2NsdQdNJn58syIXjHttB9Oi7AM ymjA== ARC-Message-Signature: i=2; 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:dkim-filter; bh=6hqZCTVPnvy8sGXyX1gmJApZ1HDTUIBkgxcAuzXGzfs=; fh=uvGdD5nh/oysgApqHzpW0Rk1EeK4DKRosC4tgnlZmUc=; b=1A4YIMq8BD/+iyvPQBmc3bHiIRc3jIxzqrwhg6mT+g5fDLE8M1w6z6FmrZ0gYCXYuO nOhoe/55nWvhN9OCR97DhWukov1FnkpbL69m490rmVzQ7KErGr2PkpJem6koGuLQLGoc D+cdLIflccvBqJFH3yxj+zFjvTaBZ+v5RiUGL0A9wOXplFltVt1dNjSK4BisJ6re2ijg NHEfmV+oLU7NHEleRju2q0QCqUelBxdRIV9rp0du+aovDasnJFdm3k0ZVfMWdG2NvpE+ Df7L3Dx74CSXtHt424M7mIfMNzi1isE3nqWthyOVGDUDTxHZZKVQHQr93Xvl3QFHPrXf GCTA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b=OSOvTxOv; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-77734-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77734-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a18-20020a05622a065200b0042de593662fsi15542279qtb.191.2024.02.22.19.49.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 19:49:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77734-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=@broadcom.com header.s=dkimrelay header.b=OSOvTxOv; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-77734-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77734-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com 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 2DED11C2468E for ; Fri, 23 Feb 2024 03:49:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F19FB13ADB; Fri, 23 Feb 2024 03:48:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="OSOvTxOv" Received: from relay.smtp-ext.broadcom.com (unknown [192.19.166.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 990A81173E for ; Fri, 23 Feb 2024 03:48:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.19.166.231 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708660114; cv=none; b=gzG4GWEP1q4Q/abG+GTfhKf1WziFGcjhMoyqU/wvBIZ9BLsq5aEqneu9b7eKaAGic22LfCvhjLD7iE4Fs2vxovHlOWfuRl1EJzoQhXL0mL8SmZpVtmeNoBS422Jg3a6Kgf+TCY2qqPCEc3rEcqtUh5dG2M/ugDdOhzG7xq6gRO0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708660114; c=relaxed/simple; bh=1E8LlEJSmZyzjiVTNvXJAATm4YWjLO1n2vn04c4dfGA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=b5qcXh4A7ZSi0XLjT9gEY31Bp2qnpIZD/TKZ/69CGv5s09hheJ0PqQanRvWlhypgzj7Ob8dRUL0u6X7uIh1HqQ72qN3vLODUUq1QVPPnGT0hInASKHSGurksalGCtSlhLyxX3hrvalOQebosWc4RfQIGv03hjFyJxUqCDGwlDBM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=OSOvTxOv; arc=none smtp.client-ip=192.19.166.231 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Received: from mail-lvn-it-01.lvn.broadcom.net (mail-lvn-it-01.lvn.broadcom.net [10.36.132.253]) by relay.smtp-ext.broadcom.com (Postfix) with ESMTP id 23F68C0019AB; Thu, 22 Feb 2024 19:48:26 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 relay.smtp-ext.broadcom.com 23F68C0019AB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1708660106; bh=1E8LlEJSmZyzjiVTNvXJAATm4YWjLO1n2vn04c4dfGA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OSOvTxOvY72/fbB86m2S4hUe7kNtTp9vE0ml9JS6GpTKG2Y8D9LKYOOEv2+QMAgBZ 3BzW/N7Hc0BVNB6fd8BioT20YuRAu7sg4SQqMf3qzHl4MgBnlUhR1nYOLr0wPkdYiz eC3VgORvH/h+8EiZjNsTVHvr6IWQado7So8eIDqE= Received: from bcacpedev-irv-3.lvn.broadcom.net (bcacpedev-irv-3.lvn.broadcom.net [10.173.232.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail-lvn-it-01.lvn.broadcom.net (Postfix) with ESMTPSA id AC70F18041CAC4; Thu, 22 Feb 2024 19:48:24 -0800 (PST) From: William Zhang To: Linux MTD List , Linux ARM List , Broadcom Kernel List Cc: f.fainelli@gmail.com, kursad.oney@broadcom.com, joel.peshkin@broadcom.com, anand.gore@broadcom.com, dregan@mail.com, kamal.dasu@broadcom.com, tomer.yacoby@broadcom.com, dan.beygelman@broadcom.com, David Regan , William Zhang , Miquel Raynal , linux-kernel@vger.kernel.org, Vignesh Raghavendra , Brian Norris , Richard Weinberger Subject: [PATCH v6 03/13] mtd: rawnand: brcmnand: update log level messages Date: Thu, 22 Feb 2024 19:47:48 -0800 Message-Id: <20240223034758.13753-4-william.zhang@broadcom.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20240223034758.13753-1-william.zhang@broadcom.com> References: <20240223034758.13753-1-william.zhang@broadcom.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: David Regan Update log level messages so that more critical messages can be logged to console and help the troubleshooting with field devices. Signed-off-by: David Regan Signed-off-by: William Zhang Reviewed-by: William Zhang --- Changes in v6: - Fix style issue Changes in v5: - Update the commit message Changes in v4: - Revert the log level change for correctable ecc error Changes in v3: None Changes in v2: - Added to patch series drivers/mtd/nand/raw/brcmnand/brcmnand.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmnand/brcmnand.c index 5f34e5a51d25..f1f0de50b5f7 100644 --- a/drivers/mtd/nand/raw/brcmnand/brcmnand.c +++ b/drivers/mtd/nand/raw/brcmnand/brcmnand.c @@ -1084,8 +1084,8 @@ static int bcmnand_ctrl_poll_status(struct brcmnand_host *host, if ((val & mask) == expected_val) return 0; - dev_warn(ctrl->dev, "timeout on status poll (expected %x got %x)\n", - expected_val, val & mask); + dev_err(ctrl->dev, "timeout on status poll (expected %x got %x)\n", + expected_val, val & mask); return -ETIMEDOUT; } @@ -2137,7 +2137,7 @@ static int brcmnand_read(struct mtd_info *mtd, struct nand_chip *chip, return err; } - dev_dbg(ctrl->dev, "uncorrectable error at 0x%llx\n", + dev_err(ctrl->dev, "uncorrectable error at 0x%llx\n", (unsigned long long)err_addr); mtd->ecc_stats.failed++; /* NAND layer expects zero on ECC errors */ -- 2.37.3