Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1324617rwb; Thu, 19 Jan 2023 09:11:57 -0800 (PST) X-Google-Smtp-Source: AMrXdXsyD1TzGYx/x1ydfiBuDGlP/s4t57qGW4tOQBziwktWvNEjqqPAJYmezCFfTlt7MpLrBnTW X-Received: by 2002:a62:5fc3:0:b0:580:ffa0:bfcf with SMTP id t186-20020a625fc3000000b00580ffa0bfcfmr9854507pfb.6.1674148317592; Thu, 19 Jan 2023 09:11:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674148317; cv=none; d=google.com; s=arc-20160816; b=saqRKaPZiWlcikcsZ08nPeXUkxrhs86vkG/Jsi+SHW/jGOGA6s0l91Kqs2L7tYI0eV liK91Q83LkXCCWdFcfB1TzaeSWwPJmaLkVyFX77x6UvBS2u2HeBo/gChEqz8M0MSIsWm ILJ+kvItY3euuSO1YoQr3LckTuknkWS+Q1HUK7cf65XzsrL+SdQEpZI0YaspMz5g5vlt 3eLlj9+y5QhrR2GVKIqn60jSQnzSpe209BlcDIgwGmN4y3TZsYOOBgwWK5KcAyX6Tbq+ 0EAmu83s6629PF6jmk+Ei2p6dSrJTwLCj8Agct5dK/yujhQmV5Eo4+i5E4mCEmXSinFl vLkQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=JxOM0SJDbMq/E2lMPr2rz9jcbXZTrUs3W/H1oRDOJqU=; b=NCs0QwABhY02uGiviNRxwHuMzdQRbSb1JS6vnd+3bAFa0OT5vnUcXGzZvNmCTGsn2T Z3uCMTxVIQWyDX29IeB7m511Kefh30VseR/TRQjnmr+S3pOEOH45vPhPb6NfjDWU0fDj W0bPD0BqkBJgoU5hveaq6uGJa7AfoTQrbUT4dbCUCzIHv3U4p/7xVmAVsXMwkmY/iNS9 ixll6mv68jCf5hjroytw9aKwmiXnLIVaYs740nlwjTdzQaQ46XDz6NS6T8n4GniQPeR4 xiAhWtUNS5zTNmriaUW9unVuJ7OobgWrw8XDDb78F57x4NgUMs5s9/XznxfoxlHkh5xO 4+ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=M5sK1iS6; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j4-20020a056a00234400b0058d6a27d641si13961684pfj.234.2023.01.19.09.11.51; Thu, 19 Jan 2023 09:11:57 -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=@gmail.com header.s=20210112 header.b=M5sK1iS6; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230166AbjASQhQ (ORCPT + 47 others); Thu, 19 Jan 2023 11:37:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230182AbjASQhK (ORCPT ); Thu, 19 Jan 2023 11:37:10 -0500 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28576792B5; Thu, 19 Jan 2023 08:37:06 -0800 (PST) Received: by mail-lf1-x12a.google.com with SMTP id g13so4046402lfv.7; Thu, 19 Jan 2023 08:37:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=JxOM0SJDbMq/E2lMPr2rz9jcbXZTrUs3W/H1oRDOJqU=; b=M5sK1iS6RP6Lgmn/t4+bnczYflVb4Bc7XGV6pFhDAGf6maIYd+ECAUzEfu9IH1DPaM 1UL3iWbUAF+29ea5vTE1qduy/A5T8WATSm7PZSyCTIjBZQhv6wUKYVw4nlnlP7e9u0rE D7azd/hO4b0ZQrBkMBzcWiAorhzHGBj/f97o97tHvz7MGynif1qwrbNigAJMXVFgV0Zk c5s+5nndj4fcu9TSAqGiPO6nylXDl5iNyzUhq8TB2ePcQpBZYOYeYRIFFPfWOQFmXEh7 ketYQZULfmer69j8PmYt79j9+0klV425LxtJUjzGR3PWabcdnhZslvZqH8hQ2rqCd9TW hADw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=JxOM0SJDbMq/E2lMPr2rz9jcbXZTrUs3W/H1oRDOJqU=; b=wsReJUkqQoOWSgdDYfcd4jXIHHo9dHNuQFWxTwSShfW1YqVY4JAwOSgGcwNCwT1sFN 4ruh+Xo27COxIdE/CAJAmujoapReWLQa0Ki2dW50HKDtpAZDOFEAUYCG1CYvoPk3ZlXv rY/bc0+kj4AI9DwRo0MRWlKE73hI2/VRgzRCIBfTmbIH+aUsEM3qusGkKJnrNLrU8v6a MvUiRLjFVJJI6OqhrZqUsOb4CbZ+Veepzs/pGRIFQFL1LNQZgnxLt7a5max0yB5KrnCu Hx11GmalKdJBI9rj0603jy6WEtG3U5we3i6ONBiDrIQ2hwF8K282w5/DJ8egIrZE7M/V dIcA== X-Gm-Message-State: AFqh2krbyw1xpcehs7less2k3NO2FkByG9d9zcXcQZn9jXmlOQz011HF Et1MFv10rHUki8FNmA2CXas= X-Received: by 2002:a05:6512:1108:b0:4d1:7923:3b92 with SMTP id l8-20020a056512110800b004d179233b92mr4083310lfg.50.1674146224464; Thu, 19 Jan 2023 08:37:04 -0800 (PST) Received: from mobilestation ([95.79.133.202]) by smtp.gmail.com with ESMTPSA id d4-20020a05651233c400b004947a12232bsm5898873lfg.275.2023.01.19.08.37.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jan 2023 08:37:03 -0800 (PST) Date: Thu, 19 Jan 2023 19:37:01 +0300 From: Serge Semin To: Sudip Mukherjee Cc: Mark Brown , Rob Herring , Krzysztof Kozlowski , jude.onyenegecha@sifive.com, ben.dooks@sifive.com, jeegar.lakhani@sifive.com, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 00/15] Add support for enhanced SPI for Designware SPI controllers Message-ID: <20230119163701.3g7g74zfzmbgvqfh@mobilestation> References: <20221212180732.79167-1-sudip.mukherjee@sifive.com> <20221218174523.cke7ubh6nycd247c@mobilestation> <20230104222036.h4ke6maxkdvuqtqc@mobilestation> <20230109162505.o3clvmwu3eremlyd@mobilestation> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 On Thu, Jan 19, 2023 at 04:26:58PM +0000, Sudip Mukherjee wrote: > On Mon, Jan 9, 2023 at 4:25 PM Serge Semin wrote: > > > > Hello Sudip > > > > On Thu, Jan 05, 2023 at 01:20:39AM +0300, Serge Semin wrote: > > > Hi Sudip > > > > > > On Sun, Dec 18, 2022 at 08:45:26PM +0300, Serge Semin wrote: > > > > Hi Sudip > > > > > > > > On Mon, Dec 12, 2022 at 06:07:17PM +0000, Sudip Mukherjee wrote: > > > > > The is v2 of the patch series adding enhanced SPI support. Some Synopsys SSI > > > > > controllers support enhanced SPI which includes Dual mode, Quad mode and > > > > > Octal mode. DWC_ssi includes clock stretching feature in enhanced SPI modes > > > > > which can be used to prevent FIFO underflow and overflow conditions while > > > > > transmitting or receiving the data respectively. > > > > > > > > > > This is almost a complete rework based on the review from Serge. > > > > > > > > Thank you very much for the series. I'll have a look at it on the next > > > > week. > > > > > > Just so you know. I haven't forgot about the series. There are some > > > problematic parts which I need to give more thinking than I originally > > > expected. I'll submit my comments very soon. Sorry for the delay. > > > > > > Good news is that I've got the HW-manual for the DW SSI v1.01a > > > IP-core. So I'll no longer need to ask of you about that device > > > implementation specifics. > > > > Finally I managed to consolidate my thoughts regarding your patchset. > > Here is the summary. Some specific comments will be sent in-reply to > > the corresponding patches. > > > > First of all there is a crucial difference between eSPI capability > > available on DW APB SSI and DW AHB SSI controllers: > > DW APB SSI 4.x: > > + Tx until FIFO is empty > > + No clock stretching at all > > Thanks for your detailed review and all the additional details about > DW APB SSI. I did not have this datasheet to check. > So, that will mean I can remove the APB versiom detection from my next series. > But unfortunately, I don't have access to the hardware currently to > prepare and test the v3 series. It will be delayed a bit and I am > hoping I will be able to work on this by early March. Ok. Thanks for the update. Whenever you're ready I'll be here for review. -Serge(y) > > > -- > Regards > Sudip