From patchwork Wed Sep 11 07:11:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 827364 Delivered-To: patch@linaro.org Received: by 2002:adf:ab1c:0:b0:367:895a:4699 with SMTP id q28csp663703wrc; Wed, 11 Sep 2024 00:11:36 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVIMFCpT8C8Y3oQ2+ZXE0NhDRILqxpe6yMwNCE6uHgin4JMAoqjMCMU0xrfwfnCSqx0b/MbNA==@linaro.org X-Google-Smtp-Source: AGHT+IEwrbrIghUDCftFMiVt3O3IdZMhQ2ofoN9to/aDmVVeTFkE42M381bna71xg5zjTDBBkPlW X-Received: by 2002:adf:edc2:0:b0:374:ba70:5527 with SMTP id ffacd0b85a97d-378895c70dfmr10711609f8f.13.1726038695842; Wed, 11 Sep 2024 00:11:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726038695; cv=none; d=google.com; s=arc-20240605; b=Ziootd4umuhs1+8L2f2add/MjVpX7t1Z2GBZMSeOlo3YInldj8co+64YKOIMuYBCj8 vZeG3GaAGrS7jrafgZrqHKlDuOo2A876CTus5gMhQemUPtb8J45VMWXCtPL/YhCGlPEY zfbYP+GihZY/TtFHZMli4KQtY0QI2+/vZLlcmVEbIQaNgfTUnKrQEC0JiP2IvKaWOj2V DTic5woMy1GaM5tQ4OklEH3BJL/3Z4aJ114Cem7wv8S8grWn+ClAbVvGX2pkkg+O8f27 GN3R63IszvoocBPgASOJuANnSHjOjNDm6Yv8TiS65DVpfpYLuMrhJ2RrkR53Tzcu93AA vBYQ== 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=PNUmMYvVDcaqlsiOyZtBstl8SyESzWDl+TaXv/gBnHM=; fh=5yaKd48Llsak6+SOqiVTc0bus5/1RiU8DXzkkHLPcnA=; b=E/gmr1qFN3bZ0GYlTT1vhhn/VXUwqty2TTFp41NE07HoUqtDJvshQ0L6mQjRLACwx/ I8eSVbXvKMQpeYOYWtXf5vF9b9LeuJRNhS1Esgo2PfIhsyC2BnHzzjCczdosNpP63wLs VA4SjVcP7liSIQtNeaDk9tAZ3oGjJZXloZUEb6wOkl+nnlTML4bMiSKrz96YZPxtQG83 FykGM4yJQ3REFfD1Je3uv9a3gFuWpJTa0imcjeJ7Ml9hiHGKk6ylkeW0weIyJ0M9RmGU gNAcbVMQII7Q46SLtMIussxsYBrk1GDc7P36OClVB2IuSQpO7rUHSxoQIsJxMR1d7hWs 01pQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="H3mj7/UO"; 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-378956b8533si3808577f8f.521.2024.09.11.00.11.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 00:11:35 -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="H3mj7/UO"; 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 8A60B89166; Wed, 11 Sep 2024 09:11:34 +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="H3mj7/UO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3A46A891C8; Wed, 11 Sep 2024 09:11:33 +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-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) (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 C4345891C6 for ; Wed, 11 Sep 2024 09:11:30 +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-ej1-x62c.google.com with SMTP id a640c23a62f3a-a8d64b27c45so402462166b.3 for ; Wed, 11 Sep 2024 00:11:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726038690; x=1726643490; 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=PNUmMYvVDcaqlsiOyZtBstl8SyESzWDl+TaXv/gBnHM=; b=H3mj7/UOWr4ZLjZyldk1HLgt0IVffniw2SIqF0UtrOZ9dpRwFydKvexHM6Ya4SBt/X YYBZPhlpD2Sqcfko/WFCz0LdWOXsdJ8FhTRflhyM0IMike6f81q7T6eVffGrB5L+CFg6 hmanL04JR5AZHv8HbTr9SdcRR4jXTCRTmMU8z0GatM0GOCAJYV1j2MnAuSrRqIirAlYj o7tLIQ9IXiTrk4ZqEB3CaGt6aIiAWqjesjRKxNIhszJG//shFiyzAwJgf9h0Bo1sdvoQ MEQYYGHG93XReIhorAy2JDk+WpGNgybaEE/NI8wSBoJwDvVBBGSdQJTX7RhQ9pNJ4joR WR/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726038690; x=1726643490; 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=PNUmMYvVDcaqlsiOyZtBstl8SyESzWDl+TaXv/gBnHM=; b=e9D1q5AN91S+9bhLgSfv8easxSIzD7KuG8qjAWqjLU8TIjmWSymEZ3HNNlyQgfqG4L GpQRrN2f4/k2AbMAb/ZOAsE4+sbHonUi4Ehi2+ZLB9ka8h9UyCgJ0gNIdYYxCnfWwro4 UYZMMVSedQrXhfaHPJYwDuwGdXTzLWdWzVuyMjhSoo7r+wCl25eSmzifWfjnEsih4Ilh t36HVkZQbueCAuPTS//I+sEJ11ZaxWN9J6BTfYjoViVH/8tudkYgacdLMYEqNPky/Qh7 AObOcllt8pWKOU2oR9Lt89mhsJkPsFquFGfL5SSO4Ju+izTTZi+zwxEdmB5RG7XvKxh6 36dg== X-Gm-Message-State: AOJu0YyN9Ywhs7yLL3wYiAHCEpOaXBkMy4GT2hwI7aKmVTtBskm0nmqs +ze11FXhSxpRdLAm8z2558WvdvoFGFJNvPL/uRYfrCxHa90aSYIil3XNXIbHv3o= X-Received: by 2002:a17:907:7ea4:b0:a8d:4845:de57 with SMTP id a640c23a62f3a-a8ffab2a19dmr341241966b.26.1726038689628; Wed, 11 Sep 2024 00:11:29 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8d25926ee8sm580523866b.50.2024.09.11.00.11.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 00:11:29 -0700 (PDT) From: Linus Walleij Subject: [PATCH 0/7] mtd: nand: brcmnand: Backported fixes from Linux Date: Wed, 11 Sep 2024 09:11:11 +0200 Message-Id: <20240911-brcmnand-fixes-v1-0-be112a20aaf1@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAI9C4WYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDS0ND3aSi5Ny8xLwU3bTMitRi3ZTEpBRzUyNjg0QzYyWgpoKiVLAEUE9 0bG0tAPAZ7qpgAAAA 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. The set tries to prepare the ground for the BCMBCA driver which I have a port of which is however not yet working as it should. This is why the read data callback is included. These patches seem to work fine for me with my devices but I know the maintainers have some nice test farms so try to put these to test and see if we can merge them. I bet the Broadcom folks has this on their TODO list anyway. Signed-off-by: Linus Walleij --- 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 | 206 ++++++++++++++++++++++++------- drivers/mtd/nand/raw/brcmnand/brcmnand.h | 2 + 2 files changed, 164 insertions(+), 44 deletions(-) --- base-commit: 5f044932413694475422d4b16607dfcf9aff8781 change-id: 20240911-brcmnand-fixes-dabd75230a63 Best regards,