Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp192138pxb; Thu, 31 Mar 2022 03:07:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIjPNR7b5ZBokUIb+DdKmk/3NQXqMtKswELNIgTIIjf6TStFd3HvDGgtjxFkdbWU+nQYV2 X-Received: by 2002:a05:6402:1107:b0:416:439a:6a9e with SMTP id u7-20020a056402110700b00416439a6a9emr15543550edv.382.1648721227560; Thu, 31 Mar 2022 03:07:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648721227; cv=none; d=google.com; s=arc-20160816; b=OK48iec+pUK7GwS8pDKfT59GXMp4Ymf5PWHVhzlOjNqEEbAO8oMFY8/OBOeQPR+Ugi tHLOjU+0oaQ7oCcaUyd+FQDjhlV0JhZElQFNc/68r5wOj4KNgcTIZaY+yzIiTR/YJ/Me ehpH5zdIYCa2d4AfRo4HjKSRq6ctJnzyNcypKGBhSb/9nCVa/PU/z1AG8qw6T6JKy9PE cX+SMR/dYNBseIZL312tnOvpSXZO1zc88VQEL9+udi3LY3+tXltwLTE20bRcyRP8YKXK SIAdSPBYNRhgpGf8zKzESMOxSmhRdMUBgC8bywGqZLxYyrA9mtmG6s4KCW4qjZoAHZd8 EwzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=ZoehMs4lZQ36vRc+fiNAemgSoIvpbbfwG0mmzoS0bcc=; b=RuwMVq0mQKOLuyUqWduAcE+g/mHSgs7B5GTWQ1G5pm2NkjQ7+274LR1/Z+noYDUcnb nHQf+JFWzLN67Cldc53HjrNl6Lj5B+BQTxp2Hkg57pNrA+4JOq59HWeEZx3ov/mDE4OT AiWin3z4/dKR1So8TbGdkJpKCYFSR8UlfBCYKpg2d48i4g8LcZG1cMp9l0fqAEqkJd0h aTnNuqZtgmjjZvJvwzr3UNdm6twkso2y4v1gJJliqv0WpZBiTFtev8xkXqiCRNUrUedE 6eAxReepKyLdmw1tnkhR9CuG5RuL9GEO0Iiq4abIG4kVtZgzf9SmgJDccDugKkxqAXtW E2cw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z17-20020a170906669100b006df9153e00bsi25474310ejo.10.2022.03.31.03.06.30; Thu, 31 Mar 2022 03:07:07 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230284AbiCaHTz (ORCPT + 99 others); Thu, 31 Mar 2022 03:19:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232210AbiCaHRu (ORCPT ); Thu, 31 Mar 2022 03:17:50 -0400 Received: from 1.mo548.mail-out.ovh.net (1.mo548.mail-out.ovh.net [178.32.121.110]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46F4D57166 for ; Thu, 31 Mar 2022 00:15:35 -0700 (PDT) Received: from mxplan5.mail.ovh.net (unknown [10.108.4.108]) by mo548.mail-out.ovh.net (Postfix) with ESMTPS id 647A321D6D; Thu, 31 Mar 2022 07:15:31 +0000 (UTC) Received: from kaod.org (37.59.142.95) by DAG4EX1.mxp5.local (172.16.2.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 31 Mar 2022 09:15:31 +0200 Authentication-Results: garm.ovh; auth=pass (GARM-95G0017a140443-46ad-4610-9aab-007a7028463b, FC9088D273F6636B0CAAD4892A2C3D02B7ACC8E0) smtp.auth=clg@kaod.org X-OVh-ClientIp: 82.64.250.170 Message-ID: Date: Thu, 31 Mar 2022 09:15:30 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v4 08/11] spi: aspeed: Calibrate read timings Content-Language: en-US To: Chin-Ting Kuo , "linux-spi@vger.kernel.org" , "linux-mtd@lists.infradead.org" CC: "devicetree@vger.kernel.org" , Vignesh Raghavendra , "linux-aspeed@lists.ozlabs.org" , Tudor Ambarus , Richard Weinberger , "linux-kernel@vger.kernel.org" , Rob Herring , Mark Brown , Miquel Raynal , Pratyush Yadav , "linux-arm-kernel@lists.infradead.org" References: <20220325100849.2019209-1-clg@kaod.org> <20220325100849.2019209-9-clg@kaod.org> <0ec477b5-e404-536f-ff60-39f43208c3cc@kaod.org> From: =?UTF-8?Q?C=c3=a9dric_Le_Goater?= In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [37.59.142.95] X-ClientProxiedBy: DAG4EX1.mxp5.local (172.16.2.31) To DAG4EX1.mxp5.local (172.16.2.31) X-Ovh-Tracer-GUID: 302d5792-24cf-4c48-bed0-3ba3d01619e2 X-Ovh-Tracer-Id: 6130243521099631422 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudeifedgudduvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfhfhfgjtgfgihesthejredttdefjeenucfhrhhomhepveorughrihgtpgfnvggpifhorghtvghruceotghlgheskhgrohgurdhorhhgqeenucggtffrrghtthgvrhhnpeekfeeiudekhfeujeetffevtdfhhfekheehhfdtjeekfeehieefjedvgfffgfeifeenucffohhmrghinhepghhithhhuhgsrdgtohhmnecukfhppedtrddtrddtrddtpdefjedrheelrddugedvrdelheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepmhigphhlrghnhedrmhgrihhlrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpegtlhhgsehkrghougdrohhrghdpnhgspghrtghpthhtohepuddprhgtphhtthhopehlihhnuhigqdgrrhhmqdhkvghrnhgvlheslhhishhtshdrihhnfhhrrgguvggrugdrohhrgh X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hello Chin-Ting, >>> - Maybe, if the calibration process is not executed, the frequency setting >> calculated from max_frequency in the device tree can be filled in FMC10 >> instead of using dumb slow one, 12.5MHz, always. >> >> Indeed. >> >>> For example, except for uniform content case, the calibration process will >> be ignored when SPI clock frequency in the device tree is smaller than 40MHz. >>> - The function, aspeed_2600_spi_clk_basic_setting, in [2] can be added to >> support lower SPI clock frequency, e.g., 4MHz. >>> For AST2600, SPI clock frequency can be calculated by >> HCLK/(FMC10[27:24] + FMC10[11:8]). >> >> Could you please send patches on top of this series ? Here are the branches : >> > > Of course. How do I provide you the patch? By private mail or send a PR? We should discuss first by email on the openbmc@ and linux-aspeed@ lists. Please send as follow ups on top of v4. Using the openbmc tree should be easier : https://github.com/legoater/linux/commits/openbmc-5.15 > Besides, I may add a new callback function for this part due to difference > between AST2500 and AST2600. ok. Given all the reviews and tests that were done on AST2400, AST2500, AST2600 platforms, I will be careful not to break the existing proposal. Thanks, C.