From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 441FCC433F5 for ; Sat, 23 Apr 2022 08:12:07 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B837983CDF; Sat, 23 Apr 2022 10:12:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="JZmnv7Dk"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E823C83DB7; Sat, 23 Apr 2022 10:12:01 +0200 (CEST) Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 5B35A83A70 for ; Sat, 23 Apr 2022 10:11:59 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=michael@amarulasolutions.com Received: by mail-wm1-x32f.google.com with SMTP id r19so6338292wmq.0 for ; Sat, 23 Apr 2022 01:11:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZMp3cqYBq/zJrTEdv8qJezAVBdEJoNypPHziC/YtWgs=; b=JZmnv7DkaZzm7R5KTAnsYvvRcvKWYUXufV5AfA1PI1eKLaHzrhBkYePu4jJo11og3c 8m852sceXpCLiXnTB4flOvw/P/tIS87JfF7gDW7K6CUgdpPof/cTTRivhQ8jztOUU4sp e7j7J6K5OoEgQbBxR4XD6/MuHHkXh8cRMoa4E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZMp3cqYBq/zJrTEdv8qJezAVBdEJoNypPHziC/YtWgs=; b=6AbyQQAnHZ7qUqjvMEpHHHb/SUgh6KsAIVrlQFNeLPJPMrMvuMzdbP5GCV8tjpyecj 8tlNrKhs09wCRP1NA3K9wncioXOEQrdGQWBAqZJeWoGf71vkfpaKntKtNC2mO/ypDmu2 OqOqXnkcEzMMgDJtUlOfZTk5owSl/QsqCKIEYhEgbFi5IZBCW3V8q6g86+6SEEDWVzCn 7bmIb7R5FL2jjw8XZy/DgF7FG8cnG3yXRs4jciNhWZnVvCaUyng1FUFagg0v3j4SFkrZ 6Y/+y1byFr8me/9ZCTkTGHwZWemodFvWIRWtxwzRDB3+RjdHEcD/HLv9lu9H+5ucB3J5 fX6Q== X-Gm-Message-State: AOAM532OAjvnTXoDCQnnNhfiVr2JUNnD8aEI8UgKhy3D8kUDYVv16ZDf ynIl+ponHRKW60XEFlIU9uOXtw== X-Google-Smtp-Source: ABdhPJyk1HWsstN2ZtInGQuBgW0zvJiY+EA/n/yUweiJT78P7MclwfLNK0tIXR6Gfe4XOrPdFCi4Pg== X-Received: by 2002:a7b:c347:0:b0:37e:68e6:d85c with SMTP id l7-20020a7bc347000000b0037e68e6d85cmr17320681wmj.176.1650701518765; Sat, 23 Apr 2022 01:11:58 -0700 (PDT) Received: from localhost.localdomain ([5.171.215.34]) by smtp.gmail.com with ESMTPSA id m7-20020adfe0c7000000b002060e7bbe49sm4181319wri.45.2022.04.23.01.11.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Apr 2022 01:11:58 -0700 (PDT) From: Michael Trimarchi To: Ye Li Cc: Miquel Raynal , u-boot@lists.denx.de, Fabio Estevam , Dario Binacchi , Sean Anderson Subject: [PATCH 0/2] MXS nand fixes in SPL Date: Sat, 23 Apr 2022 10:11:53 +0200 Message-Id: <20220423081155.27687-1-michael@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Those patches come after some testing of failing in factory on some unit. We found out that the bootrom imx loader was not able to handling badblock. This can be a limit of the implementation right now in imx8mn. Anyway not all the imx platform has the support of this loader. I found some problems on the implementation so I have fixed it up according the experience of Sitara. I tested only using a Fit Image as a flash container Michael Trimarchi (2): nand: raw: mxs_nand: Fix specific hook registration mtd: nand: mxs_nand_spl: Fix bad block skipping drivers/mtd/nand/raw/mxs_nand.c | 32 +++++----- drivers/mtd/nand/raw/mxs_nand_spl.c | 90 ++++++++++++++++------------- 2 files changed, 65 insertions(+), 57 deletions(-) -- 2.25.1