Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp396573pxk; Fri, 11 Sep 2020 09:47:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFv10UJBMvEpFl3xdcaW1e37oQ8mBfPh+DQnSorN0M+ibzRpv7V3SDY5xUoY7DxO5Y4t3e X-Received: by 2002:a17:906:4c81:: with SMTP id q1mr2810094eju.72.1599842862760; Fri, 11 Sep 2020 09:47:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599842862; cv=none; d=google.com; s=arc-20160816; b=lFVAth+dYZttz31KnBDysJHwUL2sg6yiXbqGEXlWolXebzpu69d/MFRzS4aPb6TqXU xx+HeIxY4qsHFEtNKKo4ETJQzP+s3xg6800uPTMnZtAKEETc20kVQdLIYsPG2ONWTNEc 1yE3xu8L7U5FaYptH5x/0vUN5+an1kbTneNMxsmAFk6pR4tRA+EWuhP0XgRZXrKEOie+ zQsDivNLhGLHEmrVLXyJENiJsK17bROhfxFW+hR4nlGDsK84jcjvQjX2BkWnlL90rfek z+uj7pWRUAm+iJFE56tTMX2SbQopbR8heD0dgxsvYTh8vYKH3cP73SvUzeMdMEffmuWs x6cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=fh4Zb5GsdJiZj6RR1SKDnTV7goktpHvY7+qEh8mZt/I=; b=bSCXV/tmrve/O3SSJKuVc4JS47QKMmHKyTP2bmVVKbLgr+04oToBD6LMlfSU62oDLX 6aBz4ZJc3qFfHLtRm2HE/GD5iAA67+4DiVS1BXRKuh6lDt0p668kLN4YYy/OvqmsbCeB pUnh+oWCPgW8k1IJuh007gIclmHuSzahZ0rU5VATCfsh+HAUkbb6EzJ07SHSJi907qDd FXYVmx70n40nQZ9T4TKjzTymfmVZKL9yBC1PLaB3qoylYp2kU7jSdyNsvbixZIJb/h/I t/92LSp1F01XqBAoHLHvGOl+rzJogPaDFNELdlE4d4evQm/YN/c+r/hX+AmmfxC2VBJp OO2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pj11si1577961ejb.191.2020.09.11.09.47.18; Fri, 11 Sep 2020 09:47:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726268AbgIKQqC (ORCPT + 99 others); Fri, 11 Sep 2020 12:46:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726247AbgIKPIM (ORCPT ); Fri, 11 Sep 2020 11:08:12 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13F45C0612EC for ; Fri, 11 Sep 2020 07:47:21 -0700 (PDT) Received: from dude02.hi.pengutronix.de ([2001:67c:670:100:1d::28]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kGkKU-0006Pn-NW; Fri, 11 Sep 2020 16:47:10 +0200 Received: from mfe by dude02.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1kGkKP-0006nZ-2p; Fri, 11 Sep 2020 16:47:05 +0200 From: Marco Felsch To: tudor.ambarus@microchip.com, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, sergei.shtylyov@cogentembedded.com, boris.brezillon@collabora.com, michael@walle.cc, j.neuschaefer@gmx.net Cc: linux-mtd@lists.infradead.org, kernel@pengutronix.de, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] MTD: SST SPI-NOR fixes Date: Fri, 11 Sep 2020 16:47:00 +0200 Message-Id: <20200911144703.25409-1-m.felsch@pengutronix.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::28 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Patch 1-2: write path fixes The sst write path is completely broken since v5.7-rc1 and in rare cases since the support of the sst_write() function (49aac4aec53c). Patch 3: cleanup I've tested my patches with a small test app to ensure writes starting on an odd address and with dd to test even start addresses. My dut was an public available imx6q-sabrelite (rev.D). Other testers are welcome :) Regards, Marco Marco Felsch (3): mtd: spi-nor: sst: fix write support for SST_WRITE marked devices mtd: spi-nor: sst: add missing write_enable mtd: spi-nor: sst: move sst_write_second to local driver drivers/mtd/spi-nor/core.c | 15 +++++++++------ drivers/mtd/spi-nor/sst.c | 15 +++++++++++---- include/linux/mtd/spi-nor.h | 2 -- 3 files changed, 20 insertions(+), 12 deletions(-) -- 2.20.1