Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp105912iob; Tue, 17 May 2022 20:21:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyz9fobi9rWIIOQc4RmHB2DYiqmvE6W4W247D/I0qLML1JNT7kekm0OmXWAolqIC2lXwPEK X-Received: by 2002:a05:6a00:14cf:b0:510:5549:ad8a with SMTP id w15-20020a056a0014cf00b005105549ad8amr25388097pfu.24.1652844098359; Tue, 17 May 2022 20:21:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652844098; cv=none; d=google.com; s=arc-20160816; b=ejhXA40Vo4Te7kyculb/Jgp0nKgaYV2N1xyrOC1zYh+RU4/AGXNzdteIxFDuoDFC5O tjsMRXEuE9yUMx0pgjgNbok1IPTIGHcLsnev31nhDFruVy18O+LInqypUixG00f6TGDm K3jWvr4L2K6yHQVVR4uCNPiVVO/uqyblYeX46QNBzHQfYeGOS1fwrXawu/I7+9P4bn63 mCttB7r51xvBur+Ow4Z/FVu0WsN5lqURJM9BsJfW429VfvumTL6+aoNgUgBoZE9QUpfp KcBaIMgGv1xgQGdG0BexRoP8H9uVVhmoZVSdlMUSzYb53FHR/8w2YCXs105TFqLbUpPg 017Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=jX/75826u0dAvndf/WCTgLn1BPxJ18FVo/2uucSrT3Y=; b=rF3UHhNR+lCATduoOt8tpSRX9KUwGTDFnAOvXt9ED9JkfS1W24T0tAD5qXGYITBXeS T8puPfi6JfJ6g7eUWLxqYa8wtjjBfbiaDHqs1/Drnd6f7KRUK7uL1kV8pD4QTv+Y+4M8 Zaarz0XuAPbNiNMKWbRuH9hqzgMnJHFbBHuG4ENWUlMF/dUX7NamnUjYsZh5LZTJGI9s tABYbyJR3bOzWKlZyfxWpbYVrIQmee92zKNoWFsPveadoDoE5bIGsbOSWQC4tRBQ6R2d XWdfmtY7Qbv3rE1jnQikbB8d6JmioB95/YRlsCkAp2I7axcHPcXCtUTATn2Dlow0wllJ IgWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ksCA4A3K; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id il14-20020a17090b164e00b001df95edac97si3932993pjb.4.2022.05.17.20.21.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 20:21:38 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ksCA4A3K; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B863F606F8; Tue, 17 May 2022 20:20:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346089AbiEQMe3 (ORCPT + 99 others); Tue, 17 May 2022 08:34:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242745AbiEQMe1 (ORCPT ); Tue, 17 May 2022 08:34:27 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC0534B876; Tue, 17 May 2022 05:34:26 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 24HCXiuX090876; Tue, 17 May 2022 07:33:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1652790824; bh=jX/75826u0dAvndf/WCTgLn1BPxJ18FVo/2uucSrT3Y=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=ksCA4A3K9ssPA9nasc1mvGNYBJRLlfv+cVMJ1NgTBdWUOI9f/I3BARSCJtQewvqIi xkA9MBYoWj2ZVU4RmoTY4etI9m6jghCOtHMUdCZOmvs4Rg47zPO9VoNGJ4otocPobm w5d9sFsBjpbZYMq1I/G37MsCJv1o0CLcWvkcX13U= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 24HCXi48070260 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 17 May 2022 07:33:44 -0500 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Tue, 17 May 2022 07:33:44 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Tue, 17 May 2022 07:33:44 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 24HCXh78095767; Tue, 17 May 2022 07:33:44 -0500 Date: Tue, 17 May 2022 18:03:43 +0530 From: Pratyush Yadav To: =?utf-8?Q?C=C3=A9dric?= Le Goater CC: Mark Brown , , , , , , , , , , , , , , Subject: Re: (subset) [PATCH v7 00/11] spi: spi-mem: Convert Aspeed SMC driver to spi-mem Message-ID: <20220517123343.5cust7y6uqeeamjs@ti.com> References: <20220509175616.1089346-1-clg@kaod.org> <165272636363.750911.14933122170662994904.b4-ty@kernel.org> <20220517110509.2e6xbwot63yl6a3c@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 Hi Cedric, On 17/05/22 02:03PM, C?dric Le Goater wrote: > 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. I think the correct thing to do here would be to move this patch out of your main series. Since the old driver did not have this feature anyway, it is not necessary for the conversion to achieve feature parity. Then have a separate series to drive the conversation on how to best implement this contentious feature. > > 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. I interpret it this way because I feel you have ignored my comments and have kept this patch in regardless. But maybe I _am_ being too harsh. So apologies if I have interpreted things wrong. > > 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 ! Yes please. I would like to have this patch dropped, and then reopen this discussion in a separate thread. I have provided solutions before but maybe you missed them. Please see [3]. Specifically patches 1 and 3. These are still not very refined and might not be accepted in their current state (especially patch 3 since it does the calibration after registering the device with MTD), but they should be a good starting point for discussion. And we might end up deciding to just use the dirmap_create() hook to do the calibration, but it is important to have this conversation separately and clearly instead of it being missed as part of a large patch series. > > > 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 > - move the training to the appropriate handler if it exists This is my preferred option, [3] is a good starting point for proposing that handler. > - use a default value > > > [11/11] mtd: spi-nor: aspeed: set the decoding size to at least 2MB for AST2600 > > > commit: 73ae97e3cabb580639f02f12a192324a53c4bebb > > > > > > > [0] https://patchwork.kernel.org/project/spi-devel-general/patch/20220325100849.2019209-9-clg@kaod.org/ > > [1] https://patchwork.kernel.org/project/spi-devel-general/patch/20220214094231.3753686-9-clg@kaod.org/ > > [2] https://lore.kernel.org/all/20220208190636.h6dubktkmuosvdxo@ti.com/ [3] https://patchwork.ozlabs.org/project/linux-mtd/list/?series=233504&state=%2A&archive=both -- Regards, Pratyush Yadav Texas Instruments Inc.