Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30859308rwd; Thu, 6 Jul 2023 11:45:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlH5pXtATy3gRg4nr1dYFA/XQjBmscnIBzUTdfepxv/RYfSPYVPRXx7sGwdz+LEWljrNNE1u X-Received: by 2002:a17:90b:400a:b0:263:f5a5:fb98 with SMTP id ie10-20020a17090b400a00b00263f5a5fb98mr2231397pjb.28.1688669113825; Thu, 06 Jul 2023 11:45:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688669113; cv=none; d=google.com; s=arc-20160816; b=Iztd3jBG+mrC2DsaOsojsGUoIZM/dV4MmeFCwF22oW03BnfK878qr2090Y3Ceghok3 eRauXsPXglpVI4O9ZYGRaZxpLn54rTeRQbGq3pGoSqy09XRBlLHg99buAzWXjFADJVif B2i383Fm2E3Y92yKehgOOIN8BCl5bIqaFbjU5mcxbbE0ccfmycKFhqo5eYcP9g5yZAvd ZALwEN6zZxZJn38bB1BPDlfeL2RNTbMkBbqk/FJNSAa1FrWhf7vB0nC6e6lS4RZ2t0gr IzSQ/58HvBr9WLF+0TfZxWLtBie8/xI0/kjamheYC9Dahb7fDAobeYKohC0AM6VfQNT9 TEjA== 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=jdVO3/kvR+FTNPNClVEqogL+vtg5wZVFP+d96PSlRP0=; fh=m6XTxhWJuw32VtwfA5PJHj/19GlLgFAKAr0tlSTLsV0=; b=eNWMaM696uEXabjvmZci3ZlqicABQ7uGB0Auuj0tleGyEP2I/ohopfxEUnCuUBin3w uHnBlLortcBR6HowcIjESVn+yHm7nZIvgtMAnEA3qj6eYCKDwVXXocpXrZ3aG5zvpB4A JL2WICHPvDnG61utyAjt0GK0OJAjgbSu0OHv8C8sxfNgmDZ1mnyTS//fi6dbP+PKf7A2 SXOUnZR9meQSscNFOgKH0WDy84IuFVyhPJe6qtDxUNJ2Skv88Lq9h3ht0YcpuNp+7uWA ZzTRPG+WyJNeegwvrf34PKt3zRuUkqDKIp7TQLxbMGqHkcZ9TUvkMlmPnQNzvqRuANKH jI1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b="YAjliT/G"; 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 8-20020a17090a0f8800b00262ef440ed4si247513pjz.27.2023.07.06.11.45.00; Thu, 06 Jul 2023 11:45:13 -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="YAjliT/G"; 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 S231136AbjGFS3d (ORCPT + 99 others); Thu, 6 Jul 2023 14:29:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230054AbjGFS3c (ORCPT ); Thu, 6 Jul 2023 14:29:32 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56B2B1BF8 for ; Thu, 6 Jul 2023 11:29:30 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-6687096c6ddso694289b3a.0 for ; Thu, 06 Jul 2023 11:29:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1688668170; x=1691260170; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=jdVO3/kvR+FTNPNClVEqogL+vtg5wZVFP+d96PSlRP0=; b=YAjliT/GN4nSsVDsIaSFLQIfEPIezpIl3vsv6HGbfY9dtgLLRdbSJRdCdivgIsbTqO a5heskNeSMWIasJ3/oD8xnSxXv4hHT9N/dfgJehkVIKapBBsFuJ56Ud5ERii6nelrkkr VoLMZu2mxMkUl/S66nZr+LBxlIhv9F5V1KadQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688668170; x=1691260170; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=jdVO3/kvR+FTNPNClVEqogL+vtg5wZVFP+d96PSlRP0=; b=JyK2eNFJThyuwmt/UnNcdUr5hBABLN8/0k7luN/1c4EoZQto4OwMSWz/29AuP0MhlG reR9RGS71EqHrkjPGm8509wU/Ls/KcUBKwiKv+M7qKbgswIpQKbMRVSRasdCG6gVHpRr 0RrDApGQCnVQ7UxAj2nOEg/YZ8rsKdg5vSOjmf6rBjH/jCVlXj/q7rVDrqX2RiEVu3hN Z3dkstC1+DpGswEvIxciYqTfneEPqzL4QFXVVyV+dwRPdhDCsfKBpyrb2Sl9z66T7VLf nogk64lrwPxpnmAGO3wx0gKfqyY8uCwGQqhKlzZujjxD1qXxyWtzNW3UvyuH4DX6nd56 +//A== X-Gm-Message-State: ABy/qLaxz9lVxU3rPIFPJEcJew8LbjZCD2Q/A/zGSeSioAjmTgsL2REZ jmunoiTRYF78r6IbmZ1WEoK0WQ== X-Received: by 2002:a05:6a00:2446:b0:66a:3812:7eda with SMTP id d6-20020a056a00244600b0066a38127edamr1918742pfj.9.1688668169563; Thu, 06 Jul 2023 11:29:29 -0700 (PDT) Received: from ubuntu-22.localdomain ([192.19.222.250]) by smtp.gmail.com with ESMTPSA id y13-20020aa7804d000000b006826c9e4397sm1580871pfm.48.2023.07.06.11.29.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jul 2023 11:29:27 -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 v4 0/5] mtd: rawnand: brcmnand: driver and doc updates Date: Thu, 6 Jul 2023 11:29:04 -0700 Message-Id: <20230706182909.79151-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="0000000000006bcaf205ffd5b2b4" 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 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 --0000000000006bcaf205ffd5b2b4 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 v4: - Move ACC_CONTROL_ECC*_SHIFT definitions out of the enum definition - Add cc stable tag - Update comment in the polling status and oob write function - Update commit message Changes in v3: - Fix kernel test robot sparse warning: drivers/mtd/nand/raw/brcmnand/brcmnand.c:1500:54: sparse: expected unsigned int [usertype] data drivers/mtd/nand/raw/brcmnand/brcmnand.c:1500:54: sparse: got restricted __be32 [usertype] 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 | 119 +++++++++++++++-------- 1 file changed, 81 insertions(+), 38 deletions(-) -- 2.37.3 --0000000000006bcaf205ffd5b2b4 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 MyBQZXJzb25hbFNpZ24gMiBDQSAyMDIwMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQE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