From patchwork Mon Sep 16 09:58:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 829003 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:4187:b0:367:895a:4699 with SMTP id ei7csp699474wrb; Mon, 16 Sep 2024 02:58:53 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXUP0Dam72jl2p0Hp5PP9GsuxUausU0+NAuFwguZlpP/nGXxl8hbNdu4O2wgz8RdduexSOoQg==@linaro.org X-Google-Smtp-Source: AGHT+IF3SWO6dwtGi2TzBkWjtX4igF1UDSoBCDCnPRBch0Hhu+8jLUAsidTq5iJahONx2uSaFDgc X-Received: by 2002:adf:fa4d:0:b0:374:c11c:c5ca with SMTP id ffacd0b85a97d-378d6235dfamr9305411f8f.46.1726480733229; Mon, 16 Sep 2024 02:58:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726480733; cv=none; d=google.com; s=arc-20240605; b=QdM0V5iuXnKze7xN2JWqJp7jplKguZBrzQ4h4T7fd0akGi1uG9PYaeywf/SgKK4CCN PO7XKxlRkmv6rau9vm75xYYxuSDpf8tDwODpOOHrzQprR5+dJ1LWFUl6BXJWFBkolwTK d/tOg3EppfLS+Qt29FS5WhMhFndwGl2T/Rqvg+5NiNqgdFI0WzJ4nW/M4oIHkgNUE/1/ asXotYqC0LkjTf154qt37XvFSyU6Vh+NNsSXQEjqS8Bs/wcEm5/F9/0x8nydSnJlSApU 3JxQZ4RMCfLoVK8pTZIx7FOBa/2HjEH09e3Pn/N6EMOn/qSMBld6kihUDS7xLwRj3J3/ qqcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:content-transfer-encoding :mime-version:message-id:date:subject:from:dkim-signature; bh=dkUKt3UdwEitX0O61G7N5qJz6iQqsTpeb/1nStpbrCw=; fh=5yaKd48Llsak6+SOqiVTc0bus5/1RiU8DXzkkHLPcnA=; b=QNs1K6vgwNPwaSTvC7pleWB8BXXEpuIOCHb5HuJ5+Uc8jFxcJLLcDZMLJda9Elc6I8 2g5oapP3SczeLCfGGDCjEe51vzv9QBJJsqnEwnoKx0Q1EF3hHsMLGSaUtUYecfVEwnUS gegfdKlmcelMxmqTJtrZ3YDI/fewQTZ+oq1MVmCdwxhP0wUU2NKltitRBCXsrZChsMjF jVlD2DkXWDu18REJBRsQNpM6BseW0+hOf7ZQb0BzJU4/c1Dolrzx/1XMUxTAqajzBn/x 7N2TUbj00eJoiPZT7hKIglSyY0pKigZR1JHNAEY3elzkaAz6Z4miMIjedKg1Iu/mdJrn 7Fww==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=v9vsFZq6; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id ffacd0b85a97d-378e7818477si2010201f8f.753.2024.09.16.02.58.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Sep 2024 02:58:53 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=v9vsFZq6; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C50A188ED1; Mon, 16 Sep 2024 11:58:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="v9vsFZq6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 33A6288EC4; Mon, 16 Sep 2024 11:58:50 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) (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 D1A378899C for ; Mon, 16 Sep 2024 11:58:47 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=linus.walleij@linaro.org Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2f761461150so38974421fa.0 for ; Mon, 16 Sep 2024 02:58:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726480727; x=1727085527; darn=lists.denx.de; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=dkUKt3UdwEitX0O61G7N5qJz6iQqsTpeb/1nStpbrCw=; b=v9vsFZq6fqy5vrkpJopt0aHVU5AdHA+tlzMdnM+wiVgJWm6t9/f5QKqBladCtPXWoP hc1S2iLsG6WU6BNTDY+/PoSGF4fRZFLjqkWsuoPq8BWqdqtlpxcbEOuT6KRWnpzCTwiZ XE5FiLUM17prBFpckxXCkgANZOz5AlgLA77z8TE9Akw0uLYFZsHvUVD/cdKBiSCGWFC5 C32t2snZMCR0w1zVjXNPJaXM1SSTaxAMZpS6mbAa4iSfI5NYoamEjB0SkEL+wwifoY2J im9uAUb7YoSDU3Q5o84a6ZvS5pgpt96H7U0ClmHjiECtjydi6Drg50FCnVP7m4tMLbnn Rc5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726480727; x=1727085527; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dkUKt3UdwEitX0O61G7N5qJz6iQqsTpeb/1nStpbrCw=; b=JHza9AmIS39t/41T4piz/VF0+jsQyjPYtE3Lldo2mAeSrYpPAqsTZL9o0ufbXjfy30 Tj2eS41knWMKekQCfi/2+tNtPV6/yzMEf17awDSg/QIG0otcHTzvWYz1AotBz685Yi36 tIQAsMF64ZBwdZl8VTYjhiQdSIgoFFn2jv4PREjdgSbX58w6A5kZebUM7i5HidTfSjAY Q4n/AtZi0AWWsDU1ltsc6EoW8oAsZuKW4vodfxGPHkgNp+AzCMFBKusrgNEDz4DxFfJV o4PTN/j52yJomILlNdnmBO2SVoeetCMSFvIFhLRS6B9LZxX8zlBrb8RJ6lwfPkIIyEBn ytnA== X-Gm-Message-State: AOJu0Yw0bwIUo6ZhPLDUYT6zKg66ZMhfiLg/zF7BourIvEkQ2xFi/wKp AIQvO1JvOjH6EYzIRl7SVNWAuXTyTni0K3ACcD2UBdA5zDEtF49j6uLtW0tIedE= X-Received: by 2002:a2e:84a:0:b0:2f7:5777:cf14 with SMTP id 38308e7fff4ca-2f7935c342bmr44304471fa.35.1726480726654; Mon, 16 Sep 2024 02:58:46 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a906109662fsm292862966b.38.2024.09.16.02.58.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Sep 2024 02:58:46 -0700 (PDT) From: Linus Walleij Subject: [PATCH v2 0/7] mtd: nand: brcmnand: Backported fixes from Linux Date: Mon, 16 Sep 2024 11:58:42 +0200 Message-Id: <20240916-brcmnand-fixes-v2-0-08632f64c8ec@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAFMB6GYC/3WMSw7CMAwFr1J5TVCc8hGsuAfqwmnc1hIklYMqU JW7E7pnOe9pZoXMKpzh2qygvEiWFCu4XQP9RHFkI6EyOOsO9oJovPbPSDGYQd6cTSAfzkfXWjq 1UKVZeTuqc+8qT5JfST9bf8Hf+je1oLHGM6IjZ4kGvD0kkqZ90hG6UsoXJTDSs60AAAA= To: u-boot@lists.denx.de, Dario Binacchi , Michael Trimarchi , Anand Gore , William Zhang , Kursad Oney , Philippe Reynes Cc: Linus Walleij , Florian Fainelli , Miquel Raynal , Kamal Dasu , David Regan X-Mailer: b4 0.14.0 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.8 at phobos.denx.de X-Virus-Status: Clean These are a number of assorted upstream Linux fixes to the BRCMNAND driver that I have backported in an attempt to get BRCMBCA working with U-Boot (still not there). This patch set lowers the hamming distance between the Linux and U-Boot drivers a bit as well, while we deviate quite a bit it is still possible to bring fixes over thanks to exercises like this. On top of this I have a BCMBCA driver which works fine albeit with some complaints about ONFI: NAND: Could not find valid ONFI parameter page; aborting 256 MiB (...) => nand info Device 0: nand0, sector size 128 KiB Page size 2048 b OOB size 64 b Erase size 131072 b ecc strength 4 bits ecc step size 512 b subpagesize 2048 b options 0x00104200 bbt options 0x00060000 Signed-off-by: Linus Walleij --- Changes in v2: - Augment the write protect handling to also support the bool "write-protect" property in legacy DTS files. - Fix a mistake in the use_strap DTS property parsing. - Tested successfully with BCMBCA driver (will be submitted once this is merged). - Link to v1: https://patchwork.ozlabs.org/project/uboot/list/?series=423357 --- Linus Walleij (1): mtd: rawnand: brcmnand: Add read data bus interface William Zhang (6): mtd: rawnand: brcmnand: Fix ECC level field setting for v7.2 controller mtd: rawnand: brcmnand: Fix potential false time out warning mtd: rawnand: brcmnand: Fix potential out-of-bounds access in oob write mtd: rawnand: brcmnand: Fix mtd oobsize mtd: rawnand: brcmnand: Support write protection setting from dts mtd: rawnand: brcmnand: Add support for getting ecc setting from strap drivers/mtd/nand/raw/brcmnand/brcmnand.c | 209 ++++++++++++++++++++++++------- drivers/mtd/nand/raw/brcmnand/brcmnand.h | 2 + 2 files changed, 166 insertions(+), 45 deletions(-) --- base-commit: a7b83ade98e0f567c82d168022e12d3ebef1f318 change-id: 20240911-brcmnand-fixes-dabd75230a63 Best regards,