Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1316251ybk; Thu, 14 May 2020 06:07:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznUXoZ8u/rkUQ+LClAEp0aIw9BNAmLasDwIEN00TAbrm33sArGovFRRqRek4Xk6DeAmUXN X-Received: by 2002:a17:906:25cb:: with SMTP id n11mr3948897ejb.37.1589461667703; Thu, 14 May 2020 06:07:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589461667; cv=none; d=google.com; s=arc-20160816; b=OLbXMbbtXunJd050o3lM5x0gAc4bCRgDAI94PR0nBcrPgxN5Jqtc3rG+C2Zj3YNqNf B1M03oJhJEHzgEZzIHK6yYD6nmPobCgLrQwGW6xelycFYFpi7eG338vBWacWw1Yaz7wd 9sU9V+oBO6l442K4X2beBENe+zbCHw4f9SfX8MB7Z4J+BGj2K7Kc+UFEYk3W/zmHbCT/ jjnTJ643vf6MLuKTOnQFVDBWghD69defoP8RRLW/h6EnLOfg2PQaWm58AVhXDuS/nh2A xLYZ8MJHeLthmTWYqG2TxnQFSKuLSDgJMGwlPNuM1QsZl76anqaUoTCxuEhxjFvPzPzp 5FOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=z/WweE78c32n7afgJJ4ZonJxx0oTkB1EOnNtQfvwKJw=; b=ScW0w7ASyMqbJ0bY9ZJwnFSG5SgiuusDIRhrFHoLsePXmSN4wnazq0g5RgobB0pBt/ dkidyJJvIfFcIkViQnkOB0pL+1c5lMvzvDsvRMj7H04a14dibCCTOUrvw6WFuvZ0k1iA aSs8cAIo7xGb/wOh/u1XLW9vXtiMz7BEN4tZvtdgpeT7a4Iv/gjnvCOxEQf+L0oyUKkI sr0JB7XCUrl8027KswmN4DUNqwNR606LEv/QfsHAqF+s8V+5Q85pWBxdBMdY+/fEgn7t w7SqJjhDZTkYOdCe/RI2aT2tlH22qdnLaPlQZjG9diZzCqNPUWvNymSivTWkUREdv44c t08g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn16si1598599edb.488.2020.05.14.06.07.23; Thu, 14 May 2020 06:07:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727770AbgENNEO (ORCPT + 99 others); Thu, 14 May 2020 09:04:14 -0400 Received: from mail.baikalelectronics.com ([87.245.175.226]:58910 "EHLO mail.baikalelectronics.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726056AbgENNEO (ORCPT ); Thu, 14 May 2020 09:04:14 -0400 Received: from localhost (unknown [127.0.0.1]) by mail.baikalelectronics.ru (Postfix) with ESMTP id 4DA46803087B; Thu, 14 May 2020 13:04:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at baikalelectronics.ru Received: from mail.baikalelectronics.ru ([127.0.0.1]) by localhost (mail.baikalelectronics.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1H7tDBhNpUNg; Thu, 14 May 2020 16:04:08 +0300 (MSK) Date: Thu, 14 May 2020 16:04:07 +0300 From: Serge Semin To: Mark Brown CC: Serge Semin , Lars Povlsen , SoC Team , Microchip Linux Driver Support , , , , , Alexandre Belloni , Andy Shevchenko Subject: Re: [PATCH 01/10] spi: dw: Add support for polled operation via no IRQ specified in DT Message-ID: <20200514130407.guyk3r4ltjvszy5s@mobilestation> References: <20200513140031.25633-1-lars.povlsen@microchip.com> <20200513140031.25633-2-lars.povlsen@microchip.com> <20200513142050.GH4803@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20200513142050.GH4803@sirena.org.uk> X-ClientProxiedBy: MAIL.baikal.int (192.168.51.25) To mail (192.168.51.25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mark On Wed, May 13, 2020 at 03:20:50PM +0100, Mark Brown wrote: > On Wed, May 13, 2020 at 04:00:22PM +0200, Lars Povlsen wrote: > > With this change a SPI controller can be added without having a IRQ > > associated, and causing all transfers to be polled. For SPI controllers > > without DMA, this can significantly improve performance by less > > interrupt handling overhead. > > This overlaps substantially with some work that Serge Semin (CCed) has > in progress, please coordinate with him. Thanks for copying me these mails. I haven't been Cc'ed in the series and hasn't been subscribed to the SPI mailing list, so I would have definitely missed that. I would like to coordinate my efforts with Lars. I'll have the patchset reviewed soon in addition providing my comments/suggestions of how to make it useful for both mine and Lars solution. One thing I can tell about the mem_ops he implemented, is that they aren't mem_ops, but dirmap (as you remember it's also implemented in my code, but with alignment specific), and the exec_mem_op partly consists of a code, which belong to the supports_op() callback. The rest of my comments will be inlined in the patches. -Sergey