Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1287277rwb; Thu, 19 Jan 2023 08:46:56 -0800 (PST) X-Google-Smtp-Source: AMrXdXuV8AComGrpF2acDb/4FJYbxo9cMdCWEZfPx1Aj86TUqMJvNm30UL19AyWpzkAoqUtU7GZG X-Received: by 2002:a05:6402:1946:b0:48b:c8de:9d20 with SMTP id f6-20020a056402194600b0048bc8de9d20mr12423785edz.32.1674146816553; Thu, 19 Jan 2023 08:46:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674146816; cv=none; d=google.com; s=arc-20160816; b=W48hMe7NnPBMHkangWW4En560oBLH4pIlg1GGbeLbvxJpevy9zJNYBpZ1N93z33T/g CTz500ARlaUUS/4vD9NEXCUv3AiCCnHHcq8Z127KGf5w0BC31nWKd1Vbu7CoWAeaavY9 b3+hEh+iF21MCmDw/wNyINMxak5zOMM1Qc6/N/ZF9X+fhcGX5Fg7WIEv0ecwDjNwIK9S +hkBcjNfjNdjlob1xfsnNn4bEVgDPcIs9Jey63nQfm2OU82OLoPVyeQa2YSV1y5wSYqd UwuCXIuD/o6mQaDqoLK+CWkEU0Q6TqCbOj8xfpcvJ9V/MZiV/UHRXUkPvM/xsYpC2XNP RvYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=9cZOLXE9Rt7cay1kOYQeGynPWNFeemf/Sd0cPM5L7dw=; b=giUKQLmbGtE/9BW8noWi9Eij5c0nSywep90TG18LcGkzU8jEpyqXl/uOizM46DvC9X 9n3xxUlRuCeyY1KY4U9zP06EmVuNvDyV1So/iALJCQm2VBbz9wb5o80HwlD53AJ62hsl n6MLzk1z0M6MaBpVKW263n7rYdGuh92eoZS65fUpmk3dvKVdtZF4rN7CfgTPLwZdmNQz 32kwgOnSP06R+PXMRQns1F5lnPQW8A/hD/iEN5YrEiBU/O86h9OsLreeCg/nXkxQqPI5 ZD/6r8f+MgxXMhxEceY7wxA3tYOgWCkuzDwyyBqtGjzbB0gZW6sl0Ke16VWVJoi3aV5q alCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=d4q1mX9T; 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 g14-20020a056402090e00b0048721e1b62csi20618796edz.613.2023.01.19.08.46.45; Thu, 19 Jan 2023 08:46:56 -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=@sifive.com header.s=google header.b=d4q1mX9T; 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 S230175AbjASQ1b (ORCPT + 45 others); Thu, 19 Jan 2023 11:27:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230174AbjASQ1Q (ORCPT ); Thu, 19 Jan 2023 11:27:16 -0500 Received: from mail-yw1-x112a.google.com (mail-yw1-x112a.google.com [IPv6:2607:f8b0:4864:20::112a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A2E982D5A for ; Thu, 19 Jan 2023 08:27:10 -0800 (PST) Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-4b718cab0e4so34566037b3.9 for ; Thu, 19 Jan 2023 08:27:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=9cZOLXE9Rt7cay1kOYQeGynPWNFeemf/Sd0cPM5L7dw=; b=d4q1mX9Tar6euCY+/x7rWi+HkA9ifmIQ9HJbt+aNgcVMTxzOoQIifc7fHMpBw8mOGC vVj97/L/lvGOSrZA9LPEtUZa0nkULGzeiS/ccLi7QWecDW6SxqCgB1xCVP8LA5tDTYVq fgIo9fqZag6x/C/AoBCtA77PMnxtM5qTIkAM+j94avdVyzYWthaM9ZBXhADQZ9kbzDIB LHDf5ajK9VUWnwIcZZEq+hf+skM34hkesUZ2/tgdCTt/wKnafZhQ+Y5E3TZUYpjKgMDw iiRua3FY140TfljdNf6GkOrIiCSlfVmuTYBmvXNB3sr8IlLbSZuLV6ZskSjAU9gtHreR 73sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9cZOLXE9Rt7cay1kOYQeGynPWNFeemf/Sd0cPM5L7dw=; b=jCv91lNUsu+u5pIqvH/zkHHBYY9IltKaLeidYZGwFezbpR9v+cFodFuhdVKZazqGfL cn1czjSdx9mdaxFn9Go5AJRp3X+B9vzwK1VqA8pnhxATWdRKw4Ce+i7fvYWk1wqTwnYk cqP9UYbyYBKFY+e1ZGHItUKGtPKEDnz+mDtUqL4dmt6r5gHOzrPFjYS0lKACuFnhFPom tYSvFwRtSzLe/V0uhSjbq8jD1d1pYyb1yHyIx4cansmxKy8iFsbVxrs32QSNf0zZ2fR3 SQkk6NF/HH+9Lcf69rX9sQjar1ycy5flknqNWeDF6wjHA3IwhK7uVh8ZlsIg7KaIBpe2 r1Hw== X-Gm-Message-State: AFqh2kpttexNLD4UEzQMYERTNsT/tPG0jYdcb9dm9EU0YyGhUouEQufN pFqr6zZAl7W+uvEXh1r6yTIeDa/6GFDpVeyZhr5GBw== X-Received: by 2002:a0d:cbcb:0:b0:4f2:1365:fa5 with SMTP id n194-20020a0dcbcb000000b004f213650fa5mr1253495ywd.279.1674145629769; Thu, 19 Jan 2023 08:27:09 -0800 (PST) MIME-Version: 1.0 References: <20221212180732.79167-1-sudip.mukherjee@sifive.com> <20221218174523.cke7ubh6nycd247c@mobilestation> <20230104222036.h4ke6maxkdvuqtqc@mobilestation> <20230109162505.o3clvmwu3eremlyd@mobilestation> In-Reply-To: <20230109162505.o3clvmwu3eremlyd@mobilestation> From: Sudip Mukherjee Date: Thu, 19 Jan 2023 16:26:58 +0000 Message-ID: Subject: Re: [PATCH v2 00/15] Add support for enhanced SPI for Designware SPI controllers To: Serge Semin 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 Content-Type: text/plain; charset="UTF-8" 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_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 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. -- Regards Sudip