Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp18180471rwd; Tue, 27 Jun 2023 12:55:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4z/7iQnSKyNgL2AucMG3UxtzGNNAd/Om1GxKnfzRfBp+Iscvlp2gnhS2vNdE1+BUZWgz6V X-Received: by 2002:a05:6a20:7daa:b0:127:32d9:78f0 with SMTP id v42-20020a056a207daa00b0012732d978f0mr6753397pzj.47.1687895724205; Tue, 27 Jun 2023 12:55:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687895724; cv=none; d=google.com; s=arc-20160816; b=GWCbhR7889ImI0JL7WbVSf2z42LPErFt8MmIkIkBnERx6iwFBDm46i67gKqNPcOJ5W +WC+KpunYuxxsoNW9QWn6Jazk5v+MH9qgMzsHVxC6WONkeAu5N/pZk+WoMeQcmqMgr9e m/J9FjNCSttY2HlcXr5cpzrYIlGxS6Iw+U3UeGWVuVqJZdungh4uD5T3nj9rG1bDb11T ZeuPrMhQH//+FTFEXXmApKpuaXs3CgBJX/KYqXZnbROHSDcvYsxCPw5YaXQw3wCFWvum iFGJd8kADxDtKlUa77JOJ9LAE3AUuVvftOHpenIDQcb7hb7Q0XYLf8Ab6J9H9fcRQGvs ddqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=OEZDMhG7rx1pRbvYJd/KZHhGempgDxPd4m7U4c02lKk=; fh=1j+wK2MvRZ+6bjV8dAi4bx6TwNcp7oxMJoxqwO5/Yqw=; b=OhA5iv9NaRQl+pjaS/o+XW31VudXDOhOZmk85o4lg/fGL8OsYzYDqjLWL0AMWhneKI 5ptK5HsklC0BFts8KBMGGbqz0popEiYLv5mmJodwo3dshAErJ/pwNufUdWYiwapi6BQl Tf5XmYQa6kNenhIH1jlEPMpB3VqXGwc0fs92kRZNiLTxIOjFjKD9S+VDwsK3vGOQLdjO zFy1h3elp+la3BJNb4rZ+1oIFTdY4Q9FxCzhZOchW4dOhTlyt4hjuFRPCjGxdXttgy8o DGtjP50OLwDMEF6Namv9i+3cZkTF2F6qyA30XkI7BDAqRjPt0GfZw92ka2DiaD109oKr kZhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=aoiqH0CN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k26-20020a635a5a000000b005534371608dsi7736729pgm.849.2023.06.27.12.55.10; Tue, 27 Jun 2023 12:55:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=aoiqH0CN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229924AbjF0TiC (ORCPT + 99 others); Tue, 27 Jun 2023 15:38:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229495AbjF0TiB (ORCPT ); Tue, 27 Jun 2023 15:38:01 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DD2519B0 for ; Tue, 27 Jun 2023 12:38:00 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-1b80f2ed810so13240775ad.0 for ; Tue, 27 Jun 2023 12:38:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1687894680; x=1690486680; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=OEZDMhG7rx1pRbvYJd/KZHhGempgDxPd4m7U4c02lKk=; b=aoiqH0CNlNa4UCNqVgOqQ2c7AG+6ac10idG0IQQ77LLCv9BFmkuxC406gadPAFOsJ+ MIAc+mvsFgXGy4h7O+VaUsUNKN7XkawwAJ1dns8eeLKhjLOgMFYSbZN74TU5fB/46gVm ay6AZaLypoi7lDvUNKCPvanXITcLcu6bWU+Dw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687894680; x=1690486680; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=OEZDMhG7rx1pRbvYJd/KZHhGempgDxPd4m7U4c02lKk=; b=V9ElTBiSkMweo2HzBoi0av4HeGTrmFSobkKBqta7Y+czy9Iqf5ovwoqAGK8fEhFQg3 B7hjxmEuz7ticY4Pe402/URNKH5ucG0wYVZYXw3HOgKdKy1/p2GJI+uiGKGv28yUUUNu Pwo/uoL0rCDJ2eZLxPxmdVNinEdP0gDnD0i+ctbrbHpL0uEivpB3SdcT8enoEC6n7CCa 2HNnN+ZFiyrRBW/IuTnD2Pr9qEIjO48qBIewPLKvlyRGu5YXjWj10mw8W7QfNKk6+9UA 6BRlw60vt5WOYPKbpnYIUg/l9yV8SYRsIZ71pDf1i5HVZfIuFs4quzCxZXRYQdL8z26Z AwZw== X-Gm-Message-State: AC+VfDzR/tkj9WoaecHGfrSWz33d681J8wJq5/06cVQDnvwklvZvFRjw TpgEPdw3UQSdUBjhQnhvQ6DJ9Q== X-Received: by 2002:a17:903:1105:b0:1b7:c666:dc5b with SMTP id n5-20020a170903110500b001b7c666dc5bmr8102344plh.20.1687894680078; Tue, 27 Jun 2023 12:38:00 -0700 (PDT) Received: from ubuntu-22.localdomain ([192.19.222.250]) by smtp.gmail.com with ESMTPSA id g7-20020a1709026b4700b001b7f40a8959sm4986919plt.76.2023.06.27.12.37.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jun 2023 12:37:58 -0700 (PDT) From: William Zhang To: Broadcom Kernel List , Linux MTD List Cc: f.fainelli@gmail.com, rafal@milecki.pl, kursad.oney@broadcom.com, joel.peshkin@broadcom.com, computersforpeace@gmail.com, anand.gore@broadcom.com, dregan@mail.com, kamal.dasu@broadcom.com, tomer.yacoby@broadcom.com, dan.beygelman@broadcom.com, William Zhang , Frieder Schrempf , Rob Herring , linux-kernel@vger.kernel.org, Vignesh Raghavendra , Miquel Raynal , Richard Weinberger , Boris Brezillon , Kamal Dasu Subject: [PATCH v3 0/5] mtd: rawnand: brcmnand: driver and doc updates Date: Tue, 27 Jun 2023 12:37:33 -0700 Message-Id: <20230627193738.19596-1-william.zhang@broadcom.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000d7c0d505ff219afc" X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MIME_NO_TEXT, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --000000000000d7c0d505ff219afc Content-Transfer-Encoding: 8bit This patch series include the accumulative updates and fixes for the brcmnand driver. The bcmbca SoC related updates are removed from v2 and will send separate patch series for that. v3 series adds a new patch for mtd oobsize fix. Changes in v3: - Fix kernel test robot sparse warning - Add a new patch for mtd oobsize fix Changes in v2: - Use driver static data for ECC level shift - Handle the remaining unaligned oob data after the oob data write loop William Zhang (5): 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 crash during the panic_write mtd: rawnand: brcmnand: Fix potential out-of-bounds access in oob write mtd: rawnand: brcmnand: Fix mtd oobsize drivers/mtd/nand/raw/brcmnand/brcmnand.c | 114 +++++++++++++++-------- 1 file changed, 76 insertions(+), 38 deletions(-) -- 2.37.3 --000000000000d7c0d505ff219afc Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQcAYJKoZIhvcNAQcCoIIQYTCCEF0CAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg3HMIIFDTCCA/WgAwIBAgIQeEqpED+lv77edQixNJMdADANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA5MTYwMDAwMDBaFw0yODA5MTYwMDAwMDBaMFsxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMTEwLwYDVQQDEyhHbG9iYWxTaWduIEdDQyBS MyBQZXJzb25hbFNpZ24gMiBDQSAyMDIwMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA vbCmXCcsbZ/a0fRIQMBxp4gJnnyeneFYpEtNydrZZ+GeKSMdHiDgXD1UnRSIudKo+moQ6YlCOu4t rVWO/EiXfYnK7zeop26ry1RpKtogB7/O115zultAz64ydQYLe+a1e/czkALg3sgTcOOcFZTXk38e aqsX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