From patchwork Mon Aug 6 09:21:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kurt Kanzenbach X-Patchwork-Id: 953795 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=linutronix.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Q3J0ehHB"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41kXHr6lKjz9ryt for ; Mon, 6 Aug 2018 19:23:04 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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:In-Reply-To: References:List-Owner; bh=sTOwyG6f1JT2JD4/dQnQBtC4sKNR575hQPtOBAFblIU=; b=Q3J 0ehHBncUqjRiebeMBhZxIY5PIrz5OhiPz+R223AeAnmqVZCu72Y2QbOfiyzvAJfey1oh7+8f3ndVd yzJIrsKD9avfM2HjdCmP96d85Je/RP8ufPHQS/sJzK1fEsIL6vAXaKvgeuufcsftTOe8R8tlS4KzT 6WOUeg6/S/+qerOVQjzP0rC7tT76wOzhuClgspiJ6cHTPSg7GYMxjOwdCNPcR4+8VkqCRkTmQ+aYU 23TKMV39orIRJecI1VRfwJHXUtX8qSh3AIelPugJSCtPYdO2R3wj2HD1cPwBS++hw+HclLoCb38Lk SEWfjLTA77847Tse8Ewg95S8iUxHhZQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fmbj9-00083K-CV; Mon, 06 Aug 2018 09:22:59 +0000 Received: from galois.linutronix.de ([2a01:7a0:2:106d:700::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fmbic-0007es-VA for linux-mtd@lists.infradead.org; Mon, 06 Aug 2018 09:22:29 +0000 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180806_022227_177094_E9BB83D2 X-CRM114-Status: UNSURE ( 8.61 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [2a01:7a0:2:106d:700:0:0:1 listed in] [list.dnswl.org] X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jane Wan , Marek Vasut , Richard Weinberger , Gregory CLEMENT , Kurt Kanzenbach , linux-kernel@vger.kernel.org, Masahiro Yamada , linux-mtd@lists.infradead.org, Jagdish Gediya , Miquel Raynal , Brian Norris , David Woodhouse MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.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(-)