Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp530258rwb; Wed, 7 Dec 2022 22:42:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf6hZtoQIbm7rTFDAsx8hAZptxEeDlBs/KXhXxEPo+FS7ZDLdD4IouMKrM2ATUre2kKwMrOq X-Received: by 2002:a17:906:194f:b0:7c0:eafd:9ad5 with SMTP id b15-20020a170906194f00b007c0eafd9ad5mr13839955eje.532.1670481748772; Wed, 07 Dec 2022 22:42:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670481748; cv=none; d=google.com; s=arc-20160816; b=SHb6To9dLCBnFx9KvbVXXqG9SdHmCywoVUD5vONHEFC0M8By64UOJGfPyH3MqGs3YM o3NlnjjpJh4MHK2RsoknXLLKBxy78NyXrQdLB5z0l1lgIicDkTB0q6sZxJgkkDuAFumE rU+Q0JUcHeWv17s0NZO3xryUeQyVyIic+8mYP89DNoB7zY7F+0T0byMMFRd3KLKmdczx jwkQM7t3q9WuT2Zc6hziYgQ7J4o161h9iTDnFdMY2wNZViYuuhhmBRFlxTJWzpoIQOP5 6k2s/dkgeELGYIVsr+IpKyqvBE+ZybvNNHXM8s1diRYEcRdwjC60FItl1/4h7sZZOM0o bQ8w== 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=gjoMdKm3K1BkKwh0uyhxv6I5OD0EAyUs2xtnQzYYpsBKsvwSDvX2ktOqrmFrVkWhqK jWAnybJkjz0ahTt39BKJtbRZcWIFVXMBLzRMIsNoO4aPYTOjBZXFY3nJlaDdTtoJ5phH HhyIvFrtqRYWCL75gbXhwqRiWyOSoeTUBPqOXWRVidvRm2VaEnzwtbLXtXFkIsCnCkVH dIZDJfJ2ghIpmhQEaUo/3UMP1xwVfgNUYs2BpKhZRgwOUoZ+Ikh4NdmwdAJsT3YrR3vM NqwAfzvQvfBm+isvyqJ6yp7zDSCFgnJFd8r4g4HLDQzeLLBEyhbbOIFjn0YEWnw4i1Ba Lz4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=NMmYfzn1; 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 b17-20020a056402279100b0046aff50132asi6741358ede.316.2022.12.07.22.42.11; Wed, 07 Dec 2022 22:42:28 -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=NMmYfzn1; 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 S229808AbiLHGaN (ORCPT + 74 others); Thu, 8 Dec 2022 01:30:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229773AbiLHGaK (ORCPT ); Thu, 8 Dec 2022 01:30:10 -0500 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C109D128; Wed, 7 Dec 2022 22:30:07 -0800 (PST) X-UUID: 30f7034dc8794c7590f08f04ea43903b-20221208 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=NMmYfzn1ln5dxvN5kASHq2DWgEWV6CwjmQsjCVVSVEpiTgRqZeLMFJrDWdJsgZRBZ9fEGcTac1lpP76ndAqfEfyKHI66TzmtkmPvEwF5MJ102WSMqVSBxSRXjTU0gGsHcLOoaeGSJmMSYd/t3/EeJPoO9qtgrTqc98oT3yiXN+g=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.14,REQID:bd4530d6-4ac2-402d-bd46-959fad0ec30d,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:eac6a924-4387-4253-a41d-4f6f2296b154,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: 30f7034dc8794c7590f08f04ea43903b-20221208 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 353037254; Thu, 08 Dec 2022 14:30:03 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by mtkmbs11n2.mediatek.inc (172.21.101.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Thu, 8 Dec 2022 14:30:02 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Thu, 8 Dec 2022 14:30:01 +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 v3 1/9] spi: mtk-snfi: Change default page format to setup default setting Date: Thu, 8 Dec 2022 14:29:47 +0800 Message-ID: <20221208062955.2546-2-xiangsheng.hou@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221208062955.2546-1-xiangsheng.hou@mediatek.com> References: <20221208062955.2546-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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY autolearn=ham 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