From patchwork Wed Dec 6 06:55:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ofer Heifetz X-Patchwork-Id: 845140 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.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3ysGj01Q2xz9sPk for ; Wed, 6 Dec 2017 22:33:54 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 0377AC2206F; Wed, 6 Dec 2017 11:33:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 1E73DC21C57; Wed, 6 Dec 2017 11:33:38 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 68F41C21DE8; Wed, 6 Dec 2017 06:57:12 +0000 (UTC) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by lists.denx.de (Postfix) with ESMTPS id C7F4AC21C5D for ; Wed, 6 Dec 2017 06:57:11 +0000 (UTC) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id vB66tEan025522; Tue, 5 Dec 2017 22:57:06 -0800 Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0a-0016f401.pphosted.com with ESMTP id 2em7g8baba-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 05 Dec 2017 22:57:06 -0800 Received: from IL-EXCH03.marvell.com (10.5.102.220) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Tue, 5 Dec 2017 22:57:04 -0800 Received: from SC-EXCH03.marvell.com (10.93.176.83) by IL-EXCH03.marvell.com (10.5.102.220) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 6 Dec 2017 08:57:02 +0200 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Tue, 5 Dec 2017 22:57:01 -0800 Received: from pingu.pt.marvell.com (unknown [10.5.25.3]) by maili.marvell.com (Postfix) with ESMTP id D8C543F7040; Tue, 5 Dec 2017 22:57:00 -0800 (PST) From: To: Date: Wed, 6 Dec 2017 08:55:38 +0200 Message-ID: <1512543348-1673-1-git-send-email-oferh@marvell.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-12-06_03:, , signatures=0 X-Proofpoint-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1712060101 X-Mailman-Approved-At: Wed, 06 Dec 2017 11:33:35 +0000 Cc: nadavh@marvell.com, sr@denx.de, Ofer Heifetz Subject: [U-Boot] [RFC PATCH v3 00/10] pxa3xx_nand updates X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Ofer Heifetz I'm looking into the NAND support for the db-88f6820-amc board. There are a number of changes in the pxa3xx_nand driver in Linux that are relevant (not specifically to this boards but to Armada boards in general). Some of these changes are cleanups and some are actual bug fixes. I'd really appreciate some testing on this. This gives me enough so I can mount and read files out of a ubifs volume created by Linux on the DB-88F6820-AMC board but I don't have access to any other Armada boards to test with. Where applicable I'll Cc the author of the equivalent Linux patch. I've had to tweak a few of them to make them fit u-boot (e.g. to handle platform data) but they should still look pretty close to their Linux counterparts. Note this series is dependent on http://lists.denx.de/pipermail/u-boot/2016-October/270967.html Changes in v3: - tested this patchset on armada-7040-db-D using 4bit and 8bit ECC Ofer Heifetz (10): mtd: nand: pxa3xx_nand: Increase initial buffer size mtd: nand: pxa3xx_nand: use nand_to_mtd() mtd: nand: pxa3xx_nand: sync pxa3xx_nand_set_sdr_timing() mtd: nand: pxa3xx_nand: fix early spurious interrupt mtd: nand: pxa3xx-nand: fix random command timeouts nand: pxa3xx: Increase READ_ID buffer and make the size static mtd: pxa3xx_nand: Increase the initial chunk size mtd: pxa3xx_nand: Fix initial controller configuration mtd: pxa3xx_nand: Simplify pxa3xx_nand_scan mtd: nand: pxa3xx_nand: add support for partial chunks drivers/mtd/nand/pxa3xx_nand.c | 294 ++++++++++++++++++++++++----------------- 1 file changed, 175 insertions(+), 119 deletions(-)