From patchwork Tue Jun 27 19:37:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Zhang X-Patchwork-Id: 11352 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp8435975vqr; Tue, 27 Jun 2023 12:54:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6A3BF360zrLWOse8dLh08HZnX7jCMKOJnCbQa8KLnCvzIBmVvlGukxFOlNic2g2WG0EjCy X-Received: by 2002:a05:6a20:7485:b0:115:e834:7bc1 with SMTP id p5-20020a056a20748500b00115e8347bc1mr25992959pzd.30.1687895661913; Tue, 27 Jun 2023 12:54:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687895661; cv=none; d=google.com; s=arc-20160816; b=XEG8K8NB3uVernXJs8BgadzDz1LsHZc2QHfLzvy9/8s/zSPC/CN1L37PMnUAcBP1hq jnrQRaxfuqhfGRxztzqNa2pyB4fHw9iCdHIe/CYLUfBSj26rZgBhkXxp9+Bttvtsrdjm bBH2XG/Tx6NH0qRsOHGqkVreYCMnkTeWgLe49LZ/a8aLdDLeJ35Xfy5Bir3DHqv1NdS6 eYOOhwTPuhyqKIhjR+nW4sUgIy7KwcxxtYWXEROUbMmLsAQftQZHAysLtDeY142wOW2R 4Q/161Vbx43GtB/cElpKRP9n4k1A3T70rTppSD8B+M/XHxWgz5GyBWmCEfAOgkGwS6pB Ehrw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m12-20020a1709026bcc00b001b81c36f2fesi1942039plt.640.2023.06.27.12.54.09; Tue, 27 Jun 2023 12:54:21 -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 S229957AbjF0TiC (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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769886881727832099?= X-GMAIL-MSGID: =?utf-8?q?1769886881727832099?= 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(-)