Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp122765iob; Tue, 17 May 2022 20:59:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxmAssc83MoSIMvLXhw+k02+mbv9+qbi1N9WuhCrEdSyUL9PLhNiQ1oG9tnT32Rr+syWtc X-Received: by 2002:a17:902:ed82:b0:158:fef8:b501 with SMTP id e2-20020a170902ed8200b00158fef8b501mr24763503plj.47.1652846372295; Tue, 17 May 2022 20:59:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652846372; cv=none; d=google.com; s=arc-20160816; b=LFhA5hzpTR1IajOqPVNIFU2Eb5H6fYvvrU+RG0SXrPBtt/gBnTasKx7cZim0A5jvzc QbINAeM62/q5q7DPef7U4WCOASlHtlkM5pv/rJLAjwaOAouE0l3OcXM6aJYWcg27VHJD clatq6p9WhSTHdOMMb334qrbSOH5AdPBD3Hs0KZOptsxkaFkHMFdG3iuICkIXJL+KAx5 Ob+2kLrrzlHwkBOj4kqCTpNP73v9yjhfZhSN/whPsLFOW0ggWRSUlswPPDe/CuM9w1NF xrW21Jbyf/OtHwV+SK1Or5c1p3LxfUuhK15HIpdl3Jgk9yZDvYV8MZgukMFIBQW0yJXU gSlQ== 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=P3UhsEzyr0Gk792j5WoVMS4p7NN295eH0iS9EeJGJIs=; b=UzRCXPEhmC0gbdirl2xAv2wuiFzYvNDciYRkjSCfmHPLd4BOuS6DDhEwW3G8O8+z6d CsS3HT/7zJtVF277NqdcX2dUJlOdLlLXrO8183KfPdTOh7kq8GXPrcRjJiSRzzALfjCE YIXDq8Wrv4jwqcwx92eVXhlvLk2V6Acn71lmJtkuvjrMvHAYP/b81V34UdFm6nlBLD1e v5C3bpl+JaStTkzbfltb/up/7p5F480ZX8vXUO39IC+dr/3+DuCVpS81GlNQYt+pn87P 7d2hH6KoB4I2rZTBqCBJkTzX9b6qBb7TponLb03W+qk5duVW02thUaVmmqdEfi7Jx9z1 pTGQ== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 125-20020a630783000000b003f5f7390256si1156328pgh.824.2022.05.17.20.59.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 20:59:32 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B25646321; Tue, 17 May 2022 20:35:55 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346456AbiEQN75 (ORCPT + 99 others); Tue, 17 May 2022 09:59:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235590AbiEQN7y (ORCPT ); Tue, 17 May 2022 09:59:54 -0400 X-Greylist: delayed 2418 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 17 May 2022 06:59:51 PDT Received: from 8.mo552.mail-out.ovh.net (8.mo552.mail-out.ovh.net [46.105.37.156]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D37FD3C700 for ; Tue, 17 May 2022 06:59:51 -0700 (PDT) Received: from mxplan5.mail.ovh.net (unknown [10.109.156.48]) by mo552.mail-out.ovh.net (Postfix) with ESMTPS id 198B4276A6; Tue, 17 May 2022 13:41:06 +0000 (UTC) Received: from kaod.org (37.59.142.102) 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.2507.6; Tue, 17 May 2022 15:41:05 +0200 Authentication-Results: garm.ovh; auth=pass (GARM-102R00468999d79-193f-4c38-8695-8964d1044880, BB146B841C735870D6401592F5D215EFF71F43F0) smtp.auth=clg@kaod.org X-OVh-ClientIp: 82.64.250.170 Message-ID: Date: Tue, 17 May 2022 15:41:04 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: (subset) [PATCH v7 00/11] spi: spi-mem: Convert Aspeed SMC driver to spi-mem Content-Language: en-US To: Miquel Raynal CC: Pratyush Yadav , Mark Brown , , , , , , , , , , , , , References: <20220509175616.1089346-1-clg@kaod.org> <165272636363.750911.14933122170662994904.b4-ty@kernel.org> <20220517110509.2e6xbwot63yl6a3c@ti.com> <20220517143713.47676b4c@xps-13> From: =?UTF-8?Q?C=c3=a9dric_Le_Goater?= In-Reply-To: <20220517143713.47676b4c@xps-13> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [37.59.142.102] X-ClientProxiedBy: DAG2EX1.mxp5.local (172.16.2.11) To DAG4EX1.mxp5.local (172.16.2.31) X-Ovh-Tracer-GUID: eb8babb7-c5e9-4c21-ab82-43c65d86be41 X-Ovh-Tracer-Id: 11957338486556756868 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvfedrheejgdeihecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfhisehtkeertddtfeejnecuhfhrohhmpeevrogurhhitggpnfgvpgfiohgrthgvrhcuoegtlhhgsehkrghougdrohhrgheqnecuggftrfgrthhtvghrnhephfekkeekveduudfhfeffkedvhfeiueelfefggeevvdelfeejueektdeuleetteeunecuffhomhgrihhnpehkvghrnhgvlhdrohhrghdpohiilhgrsghsrdhorhhgnecukfhppedtrddtrddtrddtpdefjedrheelrddugedvrddutddvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpohhuthdphhgvlhhopehmgihplhgrnhehrdhmrghilhdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomheptghlgheskhgrohgurdhorhhgpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Miquel, On 5/17/22 14:37, Miquel Raynal wrote: > Hi Cédric, > > clg@kaod.org wrote on Tue, 17 May 2022 14:03:02 +0200: > >> Pratyush, >> >> On 5/17/22 13:05, Pratyush Yadav wrote: >>> Hi Cedric, >>> >>> On 16/05/22 07:39PM, Mark Brown wrote: >>>> On Mon, 9 May 2022 19:56:05 +0200, Cédric Le Goater wrote: >>>>> This series adds a new SPI driver using the spi-mem interface for the >>>>> Aspeed static memory controllers of the AST2600, AST2500 and AST2400 >>>>> SoCs. >>>>> >>>>> * AST2600 Firmware SPI Memory Controller (FMC) >>>>> * AST2600 SPI Flash Controller (SPI1 and SPI2) >>>>> * AST2500 Firmware SPI Memory Controller (FMC) >>>>> * AST2500 SPI Flash Controller (SPI1 and SPI2) >>>>> * AST2400 New Static Memory Controller (also referred as FMC) >>>>> * AST2400 SPI Flash Controller (SPI) >>>>> >>>>> [...] >>>> >>>> Applied to >>>> >>>> https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next >>>> >>>> Thanks! >>>> >>>> [02/11] dt-bindings: spi: Convert the Aspeed SMC controllers device tree binding >>>> commit: ce9858ea499da025684a7a5f19823c2c3f14bdce >>>> [03/11] spi: spi-mem: Convert Aspeed SMC driver to spi-mem >>>> commit: 9c63b846e6df43e5b3d31263f7db545f32deeda3 >>>> [04/11] spi: aspeed: Add support for direct mapping >>>> commit: 9da06d7bdec7dad8018c23b180e410ef2e7a4367 >>>> [05/11] spi: aspeed: Adjust direct mapping to device size >>>> commit: bb084f94e1bca4a5c4f689d7aa9b410220c1ed71 >>>> [06/11] spi: aspeed: Workaround AST2500 limitations >>>> commit: 5785eedee42c34cfec496199a80fa8ec9ddcf7fe >>>> [07/11] spi: aspeed: Add support for the AST2400 SPI controller >>>> commit: 53526ab27d9c256504f267713aea60db7af18fb0 >>>> [08/11] spi: aspeed: Calibrate read timings >>>> commit: eeaec1ea05c0e0f08e04c6844f20cc24a2fcc0f4 >>> >>> I have repeatedly objected to this patch [0][1][2] and you have >>> repeatedly decided to not address my objections. >> That's a very harsh way of saying things. I did not decide anything >> or ignore your comments. I answered your questions and acknowledged >> that indeed the read training was done under the dirmap handler but >> this was not a concern today since we had all the required information >> from spimem. >> >> We waited _together_, 5 or 6 weeks, for more inputs on how to address >> the concerns you raised regarding the sustainability of this method. >> >>> I won't spend any more time fighting it. >> This is not a fight. I don't know why you interpret it that way. >> >> Now, since you object so explicitly, and since this patchset has >> not reached the Linux kernel yet, we should consider dropping it. >> I rather do that than push crap in mainline. But then, please, >> provide solutions and not only objections ! >> >>> But I will say that you should not expect any >>> guarantees that SPI NOR or SPI NAND will not break your calibration in >>> the future if they decide to move the dirmap_create() call around. >> >> If that's the case one day, we have multiple solutions : >> >> - stop doing the training > > Not really an option, isn't it? well, I would really rather keep the training. Else the device would be crippled and run at low speed. 1/16 HCLK is the default :/ > >> - move the training to the appropriate handler if it exists > > Sorry for jumping in so late, but why not using this solution already > if there are concerns about the current location? It does not look like > a complex solution to implement, but I might be overlooking something. I think we need some more feedback on this proposal [0]. If that's not acceptable, then let's discuss on dirmap_create() and see if it would be acceptable to do calibration under this hook. Which is what this patchset is proposing since the spimem interface offers all the required information to do so. However, Pratyush would prefer a stable interface, hence [0]. That said, if one day we merge a do_calibration() hook like proposed in [0], we can change the current Aspeed patchset to use it. That's why I didn't see the lack of specific calibration hook as a blocker. > This can also be done for the next kernel release. I was hoping this one. We would need a comment on the use of the dirmap_create() hook to clarify. Thanks ! Cédric [0] https://patchwork.ozlabs.org/project/linux-mtd/list/?series=233504&state=%2A&archive=both