Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3539164rwd; Fri, 16 Jun 2023 20:30:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4HV2QEsvOu3UoR0jXQhHMigm6Y30j5pLBBLv54Sd3jNx5WxbiflAKnhbdLIHjSADrzqYoA X-Received: by 2002:a9d:73c2:0:b0:6b1:658f:39e5 with SMTP id m2-20020a9d73c2000000b006b1658f39e5mr1538358otk.34.1686972621346; Fri, 16 Jun 2023 20:30:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686972621; cv=none; d=google.com; s=arc-20160816; b=LTJihJUMGungJR6b+JxaoPNs62NGJUQLGv+/8ztadISu5yOJBvtkLLtPIYkJVow8Zt qEo1IgvpLdXg+vPT+O43IpdMzdSSez7k5H5k9oPnXbiyZ33D1vaUMK7MB/ZRXE0HjaE3 ujS/c7sYe/lV+zOcOCIqKnrT2FAlPf22GzQysAd5HtpFfxWFXdXwLdzgnsGASufKy3eu IYf5YyPCit0sCm/AfEaWD3lDah1X4Oh4PiQWgbbSMcXrWdPfd/wxtMk4iMhZiuGqkv3K fUruuwqifymmBSW7HuCUD0MT0Zl1m2Vp/q3mZbwdO65GO8T4kLL8kj8PVxPeFGAeIvSm OblQ== 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=5z8QBb6O8P087oUPd26duriIWGZAkrXX56WPhr7u3Q0=; b=JUpF13FAyWU6mJdE9wyMf2gdCLRwxQmkRck98sxJlUIlkKku63y+iddugo4qb2pRns DkVKpAKNq+8EIuUrTIEw/21lCYY0AhW6kTAphw8IVHcREpUzpVdZwb2/YLQR94Q5mO0b jqa8Vj8Kvu3Oa+1WO7WWwFNv245AHgoQKyRudU2zoGebZqgP/1DMKEGv6oviEZWn8Y2g gtHhGs0yk4gcK+j8hNB3BeJ8yv6i7bHp09sHbtobC3+t0oR5OrMffgbqOM3rEhe2yd7O oWkFA1cYloGMF4M1kt8E5w1IgjRhkeTB9pmNRH/H4fuFZ3bng+6PGn8NmVJSEOutdYIF 3PDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=N6pitaaU; 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 z12-20020a63e10c000000b005538b4e729csi1130483pgh.171.2023.06.16.20.30.03; Fri, 16 Jun 2023 20:30:20 -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=N6pitaaU; 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 S230515AbjFQC3n (ORCPT + 99 others); Fri, 16 Jun 2023 22:29:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbjFQC3m (ORCPT ); Fri, 16 Jun 2023 22:29:42 -0400 Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A7D135A3 for ; Fri, 16 Jun 2023 19:29:40 -0700 (PDT) Received: by mail-ot1-x335.google.com with SMTP id 46e09a7af769-6b2b7ca1cb8so1205352a34.2 for ; Fri, 16 Jun 2023 19:29:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1686968980; x=1689560980; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=5z8QBb6O8P087oUPd26duriIWGZAkrXX56WPhr7u3Q0=; b=N6pitaaUQglkpefRWJ2WEnRjeOjOnxD+uLHkiPPaLayZQ6wQhpKDf/J9j+vtEwdx3z J3KiqFBVyUyDtTu45x6eF6LZHyNuBumpnROLXLn2zu2Kx9XVrgp5jPjEIEwc/25b7epl 92W4+bI9Y7TJPC1coESKyL0BsGCjIkjKMeu0c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686968980; x=1689560980; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=5z8QBb6O8P087oUPd26duriIWGZAkrXX56WPhr7u3Q0=; b=MSKdE+ALf+d5pGf2hHaZBaZe16jFatSgQPy0aGKLMnLbiuvblfCxKHtGsPiKizOfE0 k+cRA7JndnQk721+qjh4VMFhaOaZrSujW3ElMHUFp9Ik6SLI/Jkjpbs12LGQ0C6+HuGg AcijwQQj84d1lidPdnh7obpv+Il6LFPCEKqGiubm0WEzezJOXRF6N4Fwf1X3xvl/i48B JBL+rbXdj/l3FiXEUU7Syrxe+taUQLwqoD29sslgrlOZAozcPhz1x8OmFGr+xKCZIVQR JHfRHGIzAOyfw/reabgULtd/to08+x3sY5S37sHT5/BU3g7KBdLUYAXshPsjGRwUgBlt bo1A== X-Gm-Message-State: AC+VfDyPIPla9QUHlfNjcngaqSWLOOi7y3+JnbrMiQ5rUrYzVOxi5j7s HX6L0OX8zp1wdNdcoQaKVeiL1g== X-Received: by 2002:a05:6830:1e37:b0:6b2:dd5b:8c1a with SMTP id t23-20020a0568301e3700b006b2dd5b8c1amr1100175otr.32.1686968979868; Fri, 16 Jun 2023 19:29:39 -0700 (PDT) Received: from ubuntu-22.localdomain ([192.19.222.250]) by smtp.gmail.com with ESMTPSA id b2-20020aa78702000000b006668f004420sm3520239pfo.148.2023.06.16.19.29.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Jun 2023 19:29:37 -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 , Rob Herring , linux-kernel@vger.kernel.org, Vignesh Raghavendra , Miquel Raynal , Richard Weinberger , Boris Brezillon , Kamal Dasu Subject: [PATCH v2 0/4] mtd: rawnand: brcmnand: driver and doc updates Date: Fri, 16 Jun 2023 19:29:16 -0700 Message-Id: <20230617022920.67173-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="000000000000cf157005fe4a12d0" 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 --000000000000cf157005fe4a12d0 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 be sent through separate patch series. Changes in v2: - Use driver static data for ECC level shift - Handle the remaining unaligned oob data after the oob data write loop - Remove bcmbca SoC related updates William Zhang (4): 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 drivers/mtd/nand/raw/brcmnand/brcmnand.c | 107 +++++++++++++++-------- 1 file changed, 71 insertions(+), 36 deletions(-) -- 2.37.3 --000000000000cf157005fe4a12d0 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 aqsXsipoX1vsNurqPtnC27TWsA7pk4uKXscFjkeUE8JZu9BDKaswZygxBOPBQBwrA5+20Wxlk6k1 e6EKaaNaNZUy30q3ArEf30ZDpXyfCtiXnupjSK8WU2cK4qsEtj09JS4+mhi0CTCrCnXAzum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