From patchwork Sat Feb 11 15:29:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 652699 Delivered-To: patch@linaro.org Received: by 2002:adf:f90f:0:0:0:0:0 with SMTP id b15csp1537556wrr; Sat, 11 Feb 2023 07:31:06 -0800 (PST) X-Google-Smtp-Source: AK7set+CMGZPrw+/TKar5Jh/fZZVzcUtJmCKwvUgEi2JBPjYaX3Dz5siggCMvGNbPbqhPxAInzP4 X-Received: by 2002:a4a:d8d7:0:b0:517:7580:4764 with SMTP id c23-20020a4ad8d7000000b0051775804764mr9816067oov.0.1676129466772; Sat, 11 Feb 2023 07:31:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676129466; cv=none; d=google.com; s=arc-20160816; b=pczx6XZCsLPmx0TQw541ZJkw4hwMOJGDYk5uN4cpDqPUbJ6wC6i8YUCPkTJMdhVhqg cUZiefTFMP7emCSXyWveuuE1O7dgoDFG2KV4Yf583TG2lvcExd9XsPsmLAr6Dd9zF4+6 HBntoxyUYI0w6DAfv00FTBaq3RxgFLTjqFqBzGT45J69tHcqtDzZzE9LGn/y++Reak+/ 83QYQ6u+EOp27RIAca9Q3Q1XbdgJjup/Y8ciWb5tWuG524EogcUrOKcy4YY7FJOlGxgb pZax0ss9kii41DH9goE7msBZTw9rU6A/Suf+DVlfxFrkgSOgpa69nSkxOErs3jDh3jM4 3T5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=LnrOWPGeI03zbnn8041Fes9GWNYbQAgM/RxX+QqW548=; b=ZjiRUvCq88oV7K6jS51jPbJoEPF8xzLmMQpJDVc6TnqADzCZNyFx/uT26aR6vF9n/P iB+Xg9Ol5P5fTDPXyyGQTnYn3CtnoP60FKh/AMULuz20eX97OA0TCoTVhy01d/v+ybKs FPP8F1Nx24h72rkdvI2TsFVRG9kpKKDwi4BIDXk9hZO/vrdSbXTb03BFtxIMmbw4qZpT AbcDChqzRA7UMR1o13EaBrcgWIOQn13oPkbLYilkt5tu8/+IQR4HR7C+6O8XlNrM20+U FaRvpuRP06EGJlfiEEevJjaDOaKKooq8f5uhIdmfJ0IBz3Cmoo8ZKqd7WSFRx6A6dF9F KXRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="dk86k/t1"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id j12-20020a4aea4c000000b0051763159800si7119966ooe.81.2023.02.11.07.31.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Feb 2023 07:31:06 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="dk86k/t1"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8CB8A8578D; Sat, 11 Feb 2023 16:29:46 +0100 (CET) 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="dk86k/t1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1C3FB8578D; Sat, 11 Feb 2023 16:29:35 +0100 (CET) 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-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) (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 EFFB98577F for ; Sat, 11 Feb 2023 16:29:31 +0100 (CET) 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-x62f.google.com with SMTP id hx15so22403817ejc.11 for ; Sat, 11 Feb 2023 07:29:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LnrOWPGeI03zbnn8041Fes9GWNYbQAgM/RxX+QqW548=; b=dk86k/t10AwHzFwZ9jrJTg+wDL8Ggwc51H9gZW43BqstfH/vgKdsw+sq1hMk6D/Rev h/rEUNKxyBSfnV2tBTaNw8RVd5CyOWzVm9NHgKoS3G6LBZqCVKzDyGi8wxMODzCL6lpy 1JuJ6Vz0LOFFUAzYZmkslDsPRuwG3akzh5h1+tvGxMHkMXZS6Tz/SCb5jEaHUl1ypcqb P0TggOJpkBjajrXlcFOfhh1aUSPbFBNJj8WbvmQ9ANJqtawMEXD9i0yCOPcSXgaQfr+E wOGXrhp0IBd29r+lbu7GoW3GfJFXHnFSLXuhUaPrXMWipoMvBxqed8sAH6xttbXA26mm RbOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LnrOWPGeI03zbnn8041Fes9GWNYbQAgM/RxX+QqW548=; b=WueBqVJtLT3MphowRpx8mdDL8CbVyl22kMF3wcqpISu3P7nN4uc3xDxMCtImiDzpiM wtg0L/susYJsWO2c0NecFIWhnXUl+6yODCKIc7eps4tK4Plos481RRCq6VfSj+wYveZp 1rVGLqIjKJR7QD1qrpjZoWmznNA/Vbey5cLN7pRzkSiMLqlH3dsT94kgwZ7OQk4NjNS6 3U2ZWH/V9WNQ943mjFHmEz+3iByZMmHf+xk8fSihKs9GNfYEv68EIioCmT9bo0MKh119 bVukN8KPJxP+OGkvcJQbCuXU3zSOzZWT+R3+DvWcHQ0GUWs0ePaF+FRafHHDF5D4yT4j WETw== X-Gm-Message-State: AO0yUKWOjz1nt710PlDXQ4v1RtkbuUbF9/jeAwITjOnSIwNuVO1iGTC4 GJSDUE3b6+lW1HFBmaGyQ2ceFBxRoXeeAf4C X-Received: by 2002:a17:907:1005:b0:88d:33fe:3306 with SMTP id ox5-20020a170907100500b0088d33fe3306mr17630234ejb.31.1676129371396; Sat, 11 Feb 2023 07:29:31 -0800 (PST) Received: from Fecusia.lan (c-05d8225c.014-348-6c756e10.bbcust.telenor.se. [92.34.216.5]) by smtp.gmail.com with ESMTPSA id f26-20020a170906825a00b0084c4b87aa18sm3977768ejx.37.2023.02.11.07.29.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Feb 2023 07:29:30 -0800 (PST) From: Linus Walleij To: u-boot@lists.denx.de, Tom Rini , Michael Nazzareno Trimarchi Cc: Anand Gore , William Zhang , Kursad Oney , Joel Peshkin , Philippe Reynes , =?utf-8?b?UmFmYcWCIE1p?= =?utf-8?b?xYJlY2tp?= , =?utf-8?q?=C3=81lvaro_Fern=C3=A1nd?= =?utf-8?q?ez_Rojas?= , Florian Fainelli , Miquel Raynal , Linus Walleij Subject: [PATCH v2 08/10] mtd: rawnand: brcmnand: rename page sizes Date: Sat, 11 Feb 2023 16:29:07 +0100 Message-Id: <20230211152909.1436133-9-linus.walleij@linaro.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230211152909.1436133-1-linus.walleij@linaro.org> References: <20230211152909.1436133-1-linus.walleij@linaro.org> MIME-Version: 1.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.6 at phobos.denx.de X-Virus-Status: Clean From: Álvaro Fernández Rojas Current pages sizes apply to controllers after v3.4 Signed-off-by: Álvaro Fernández Rojas Acked-by: Florian Fainelli Signed-off-by: Miquel Raynal Link: https://lore.kernel.org/linux-mtd/20200522121524.4161539-4-noltari@gmail.com [Ported to U-Boot from the Linux kernel] Signed-off-by: Linus Walleij Acked-by: William Zhang --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmnand/brcmnand.c index 1ea9091e6497..10a2e2c0f599 100644 --- a/drivers/mtd/nand/raw/brcmnand/brcmnand.c +++ b/drivers/mtd/nand/raw/brcmnand/brcmnand.c @@ -526,7 +526,7 @@ static int brcmnand_revision_init(struct brcmnand_controller *ctrl) { static const unsigned int block_sizes_v6[] = { 8, 16, 128, 256, 512, 1024, 2048, 0 }; static const unsigned int block_sizes_v4[] = { 16, 128, 8, 512, 256, 1024, 2048, 0 }; - static const unsigned int page_sizes[] = { 512, 2048, 4096, 8192, 0 }; + static const unsigned int page_sizes_v3_4[] = { 512, 2048, 4096, 8192, 0 }; ctrl->nand_version = nand_readreg(ctrl, 0) & 0xffff; @@ -573,7 +573,7 @@ static int brcmnand_revision_init(struct brcmnand_controller *ctrl) ctrl->max_page_size = 16 * 1024; ctrl->max_block_size = 2 * 1024 * 1024; } else { - ctrl->page_sizes = page_sizes; + ctrl->page_sizes = page_sizes_v3_4; if (ctrl->nand_version >= 0x0600) ctrl->block_sizes = block_sizes_v6; else