From patchwork Fri Feb 5 13:52:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 1436652 X-Patchwork-Delegate: tudor.ambarus@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=E/O9k/uU; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=microchip.com header.i=@microchip.com header.a=rsa-sha256 header.s=mchp header.b=mDMlY/2W; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DXH3R4Pjwz9sWX for ; Sat, 6 Feb 2021 00:54:43 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=C0ZF/nKwnNd9JMnURhtxNUK0Iw3yDLLztY4oiLIpAgQ=; b=E/O9k/uUXnA4/ifik0JP26eR9 fAsKC1xISLtPTdtgm2bMGCSDHImhQiNk2ys0GMg6iGWGu/n0fbGhE7m6k/IisVOETKQzcZLS74iM/ kMGwBvDtZPlvxkaRXuVSmiNn2iASLQAOosXJB3bZjH7mRVvrTohJiHTZLvSNXUjMxEOVCLtQsFaGI +r/npDYIV7779TiJiIXf6i4pRSStZBBBd0Ss71T7ZLS1RFW2BiM/19eM54WMUCt1qRe1NNHhJ9dun wD5CgVdI3W3dX6wDE8Z8OdKdUTckK2xfeL55f2PUNx0ZXh/22Al86t5qjbf0YMJKzlpg41RGB57ru xkSaBiDWA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l81YR-00044X-JH; Fri, 05 Feb 2021 13:53:47 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l81Xg-0003nz-Bj for linux-mtd@lists.infradead.org; Fri, 05 Feb 2021 13:53:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1612533180; x=1644069180; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=6KEwzymtXFqmnAlGpSQgTzF8vEry5JGTqNgDxxRxmIU=; b=mDMlY/2WDI2yCH8ps5SWVqlXy1CIsfMfIAitqCeewH6XEEzqBMxNMcHY rcssGRkz+664u7mFvmFxbjHoSRP0bt/UCbovM8VfQoUUqLj+Ose9lU16M TNeJ+Z7+bXZYrL+egwHLS0Xd9uJ94Xmnh9BsGsama1Zkx5b1gY/ludZte +gwiCGE4aRc0d0cdja9nf95of5Om6bg1Ws/Acurlvgmn4nChkGbi2oO/+ tvxNkHcqmctOtxYE7M/LZ214WfrZmka2poInVxwhh3LRgszpzvqsLXtGN jPT56m/fWYgbvJeLtnNVwPrY/5pDE9nX1Y0M5TrKPuUh6v0/IPCOZjTLW A==; IronPort-SDR: y+maKmez/7/dyTnc2dtjCVkaY5DwwnlJ7ERVyGljZpRhLWRQb+JYhdwQWuXdp3NvZI8whVtCHN kEn/lbfVYpDVNFuoRhf4jb7GmxqHZpq7TUCFxp26j/POt5NzOkLwmpvweHVRtQfOLq6Cy88IaH t4YNKXxBRgolUS1+AlaxKDBaA5H2KJlOxc/2FFU37nXW8G618ailSquxPKPnHIy+/V4xN78XLb m5CBg+r3zQ7+ri7igj4zGrE0HtFg+1X7XWocJjQmLA4cmF2MHKBVQq1F0Fu/nZIaUHiEFEX+gk B90= X-IronPort-AV: E=Sophos;i="5.81,155,1610434800"; d="scan'208";a="105561347" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 05 Feb 2021 06:52:59 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Fri, 5 Feb 2021 06:52:58 -0700 Received: from atudor-ThinkPad-T470p.amer.actel.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Fri, 5 Feb 2021 06:52:57 -0700 From: Tudor Ambarus To: , , , Subject: [PATCH 2/2] mtd: spi-nor: core: Add dbg msg for spi_nor_erase_multi_sectors() Date: Fri, 5 Feb 2021 15:52:53 +0200 Message-ID: <20210205135253.675793-2-tudor.ambarus@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210205135253.675793-1-tudor.ambarus@microchip.com> References: <20210205135253.675793-1-tudor.ambarus@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210205_085300_592009_F30AD7F5 X-CRM114-Status: UNSURE ( 8.49 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.5 (--) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-2.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [68.232.154.123 listed in wl.mailspike.net] -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [68.232.154.123 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Tudor Ambarus Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Useful when debugging non-uniform erase. Signed-off-by: Tudor Ambarus --- drivers/mtd/spi-nor/core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c index bcaa161bc7db..7401c60b53e6 100644 --- a/drivers/mtd/spi-nor/core.c +++ b/drivers/mtd/spi-nor/core.c @@ -1622,6 +1622,9 @@ static int spi_nor_erase_multi_sectors(struct spi_nor *nor, u64 addr, u32 len) if (ret) goto destroy_erase_cmd_list; + dev_dbg(nor->dev, "erase_cmd->size = 0x%08x, erase_cmd->opcode = 0x%02x, erase_cmd->count = %d\n", + cmd->size, cmd->opcode, cmd->count); + addr += cmd->size; cmd->count--; }