Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp1940880rwj; Sun, 18 Dec 2022 19:09:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf55iE7ASpInPy9euue0aGvuHaP52zsHyomYf3xlLuuJqSI4SKpomnaBBSt9yPp4a6d7BjFL X-Received: by 2002:a05:6402:3908:b0:462:8a68:139f with SMTP id fe8-20020a056402390800b004628a68139fmr32748964edb.3.1671419343916; Sun, 18 Dec 2022 19:09:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671419343; cv=none; d=google.com; s=arc-20160816; b=oEfbfBQ8vwErbpFfYsovB9KE6mv+gQ2fxaXjgSeFuZkR8ZwAZ5gre8KrSqxPpJmNA2 ocavkKdODLnnyVQGxqkXfV/rSQQz2jH3G+lruR15ObYdcjiTTjVYquMSv8xPBsAij2gH XA6Ky3qsVUFJ91HmTjxwS3Td7klPLFA7B7tUsLmnvDfWCXn1gVEJxnJEl06aLMsh9kzO NGRwayjBcaUgRNNekcyypRRXodWPAtPSfViOJ/l2yxQigZMI8Q9i9H6MIU8Q7IiIkGde WHJrSmXHVbw0YrChhOAdwmUib47laZXIECeBQzMYq8E5w1nEbKSLWpErHvwa93yICGi3 I6ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mt32S3LwKdem0E64IVk6P3PMnbE8zfDO1YzBQ7//4fc=; b=iz5unhTdWeB806/RNM7D33ntCJuV5+Yc308pTlZQ5DevO9pk9HAiFOffc51IOGC8BC zQSxz/friV0pmvBshNKnRbdm50HQ0kkguKzJzgqRA/4izh8BmahkmUcnaKgyix8u327i mEeaCa2SgX9HU2WaPTkoz6BtRv4Wc/ezf+I5d6zjhu6iYLkVJyYHUvCJuSCHHOc8VkFx w/64Gj9/LeUzc8tXxmNn8s57doTxeaJZZv9k5FRjnF4ORufcRNMquIby+pUeTuu5pvJ9 b29XCkQyqFW8NdnOPqrvPHBMWcvVtKWc/0ub7cTfOjdUkvI7yhvsf7INpo5YRN2PrHaa sd5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=gwWzQikG; 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=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ay26-20020a056402203a00b00472ab30a94csi6963629edb.170.2022.12.18.19.08.44; Sun, 18 Dec 2022 19:09:03 -0800 (PST) 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=@mediatek.com header.s=dk header.b=gwWzQikG; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231207AbiLSCky (ORCPT + 71 others); Sun, 18 Dec 2022 21:40:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230484AbiLSCkv (ORCPT ); Sun, 18 Dec 2022 21:40:51 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA6D5E14; Sun, 18 Dec 2022 18:40:43 -0800 (PST) X-UUID: 582aa85dcfe04a5b9fc97d33ab79de5a-20221219 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=mt32S3LwKdem0E64IVk6P3PMnbE8zfDO1YzBQ7//4fc=; b=gwWzQikGm1v5N9DWcEI/I1YMzHOom1iKFp3LXIeWk4KP92urZJw3Z3YF88g2pjstH8tJwITFHeq1cWZxJK2xYAiR9nD4AjA+BwhjH/AXeTUwgMX1IjDc94U1gL16O4MKoxbeYMswcD/aCTC3TEV37fFuvlcTCOmC73jUvp0HRbo=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.14,REQID:563665a8-4431-4cf1-b56d-78d0691f1132,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:-5 X-CID-META: VersionHash:dcaaed0,CLOUDID:eb8243f3-ff42-4fb0-b929-626456a83c14,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: 582aa85dcfe04a5b9fc97d33ab79de5a-20221219 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 256837764; Mon, 19 Dec 2022 10:40:38 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3; Mon, 19 Dec 2022 10:40:37 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Mon, 19 Dec 2022 10:40:36 +0800 From: Xiangsheng Hou To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Mark Brown , Chuanhong Guo CC: Xiangsheng Hou , , , , , , , , Subject: [PATCH v5 01/10] spi: mtk-snfi: Change default page format to setup default setting Date: Mon, 19 Dec 2022 10:40:10 +0800 Message-ID: <20221219024019.31974-2-xiangsheng.hou@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221219024019.31974-1-xiangsheng.hou@mediatek.com> References: <20221219024019.31974-1-xiangsheng.hou@mediatek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_MSPIKE_H2,RDNS_NONE,SPF_HELO_PASS,SPF_PASS, UNPARSEABLE_RELAY 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 Change default page format to setup default setting since the sector size 1024 on MT7986 will lead to probe fail. Signed-off-by: Xiangsheng Hou --- drivers/spi/spi-mtk-snfi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/spi/spi-mtk-snfi.c b/drivers/spi/spi-mtk-snfi.c index fa8412ba20e2..719fc6f53ab1 100644 --- a/drivers/spi/spi-mtk-snfi.c +++ b/drivers/spi/spi-mtk-snfi.c @@ -1430,8 +1430,7 @@ static int mtk_snand_probe(struct platform_device *pdev) // setup an initial page format for ops matching page_cache_op template // before ECC is called. - ret = mtk_snand_setup_pagefmt(ms, ms->caps->sector_size, - ms->caps->spare_sizes[0]); + ret = mtk_snand_setup_pagefmt(ms, SZ_2K, SZ_64); if (ret) { dev_err(ms->dev, "failed to set initial page format\n"); goto disable_clk; -- 2.25.1