Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3309111imm; Mon, 6 Aug 2018 02:23:29 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcWvaqc38EgCoGz81g0mejz9WnzXprJQNS+U5g46vsIOPRe/RwhtW8iDeuM3NrSKB7nMRHe X-Received: by 2002:a62:748:: with SMTP id b69-v6mr16125535pfd.177.1533547409127; Mon, 06 Aug 2018 02:23:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533547409; cv=none; d=google.com; s=arc-20160816; b=f7tlHaK3DumLFlNCukE66IDKUcxJlJv3+CTP5L1vMMEBAQCPUs/7ILPpmJYFVxQqoI K6HhbSHY/wytJSGVMPPOd1Qek9ULO1UBWIKrrB8TGDlwyLaXr2p0mUEZvtxltSAro0TU CPXNSbNZQ11v4h3OKjsNqf8YPv1XdQfMn1fDcYxKW97mIH90VOxxApyqpfBbUgSb2a7p Xq/ZvrSLcLkP2I+lxfj4P7Zv5PLmvC4NL4kIOwViJ67IzD2a2XFpx3eUSjacfD+iDkJi vJpefLs2Yn12X3FA6AH+A/6xn1ErtL0SLZ3uw255dBENrNT7+vKfqezOAc7Wd/zZjhgp 9inQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=X+dutfwU1jegqsmcJG+xAACFnNxeaRLuGJcpKodauNA=; b=DHX3NsT4FZ473FJ+8ARVTkIxC43wu7USW3jRtDrcB6T3+5X7x2KTWl0T5L7SPPlGXv oQNN8PtU3Q3hkTfe8AkqMlPP9S3SXeKWhmpVgkZSuS9P++D7DgHyf7XlMuWPMazCwcwt cv/OiUHlNb8DT54bqKfeg7y+ELFYLCCjvw4MGmZPZYU+x4xLI3dKt+E/C42JoN+t0t9v PMvGxBD8P4wbM+6Fe0Qc0imMtf3GLGq9Q7m42hl6FjQ6VLs/8mCGz822TOfpH1x9CkJ8 dC0dRe6KHGtOlIj6Gz7eIEnwhlL+/OB7+fYKyekN+ehG/yd7/GQABOA5iIQ3gDA3uoW1 8o+A== 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 97-v6si9792108plm.290.2018.08.06.02.23.14; Mon, 06 Aug 2018 02:23:29 -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 S1729324AbeHFLaX (ORCPT + 99 others); Mon, 6 Aug 2018 07:30:23 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:44767 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727401AbeHFLaW (ORCPT ); Mon, 6 Aug 2018 07:30:22 -0400 Received: from hsi-kbw-5-158-153-52.hsi19.kabel-badenwuerttemberg.de ([5.158.153.52] helo=kurt.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1fmbi9-0002UC-Hj; Mon, 06 Aug 2018 11:21:57 +0200 From: Kurt Kanzenbach To: Boris Brezillon Cc: Miquel Raynal , Richard Weinberger , David Woodhouse , Brian Norris , Marek Vasut , Masahiro Yamada , Kurt Kanzenbach , Gregory CLEMENT , Jane Wan , Jagdish Gediya , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] mtd: nand: fsl-ifc: fix SRAM initialization for newer controller Date: Mon, 6 Aug 2018 11:21:35 +0200 Message-Id: <20180806092137.9287-1-kurt@linutronix.de> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, the current way of initializing the internal SRAM of the IFC controller only works for older controller versions. Newer versions require a different method. So, adding support for it. Thereby, the result of the SRAM initialization should be checked. If it's not successful, further commands such as read won't work. Tested on hardware. Thanks, Kurt Kurt Kanzenbach (2): mtd: nand: fsl-ifc: check result of SRAM initialization mtd: nand: fsl-ifc: fixup SRAM init for newer ctrl versions drivers/mtd/nand/raw/fsl_ifc_nand.c | 35 +++++++++++++++++++++++++++++++---- include/linux/fsl_ifc.h | 2 ++ 2 files changed, 33 insertions(+), 4 deletions(-) -- 2.11.0