Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp497615ybe; Tue, 10 Sep 2019 23:36:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgR9AwqqgzY5Q2cedd//PLS42kMkEhiz+aaAJp8pdONdv1bwyHsZ7FVshwshpc8XM9/Ych X-Received: by 2002:a50:c10a:: with SMTP id l10mr34124708edf.79.1568183785749; Tue, 10 Sep 2019 23:36:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568183785; cv=none; d=google.com; s=arc-20160816; b=eNsHsuRBT1CY8L3ysX1teGshJWw7058281OAwqVT6O/uDyLVmq9b+bOqZGomZBOas0 3CqAjxMeMBRe8OgaR0jn+S14dDOQT3v9Ns/vRB2O/serAK/D0pVIu3BwjaYboQrA1hd0 iF17uPyrLYxtAatP3KOPeLbM2/5qFuRr9iPnFnjQx8fP1S5StS6T+1fFJ/fXmpfiYpMX DX6OKbD3eVEr65hfi2Td+T7W8vGvoyT5/DTX0/PmHvypCbphopDoz4//Zc0cyqMl2zgN SZi4lqztD2pS5mdDNHQLV9FQicX3ufgdW71THSICFH4rioaRBdifQXH4oKf+1hAgRDDv dbcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Qwa/WAnxNwW5ZC3mnnldB9kO6l0iDH0bCXzBc01IAxo=; b=Rsym4YRiQa1jZfRgwk1XNlX8U46ZWhK0YX4GAXQQPWpLzoldjv96H8c1m3L6Dt1tjf diDn3n+iMdtUqLOPdpVA7KfMFbcL+6vi/wztgeS4UBsdyBlsEX1wOnFGYVadPGShCb8m 8Etdf7wuJxI4EV+shbm7Tt01mewdcwQ/nHXP5+YKcA/5Z11vhc9+OpRBEUMFcZ1n9npK ii2znFUaXhzo/WbXMcRbFMUuv4GEGGoF0Gks83xY8nkmuQU9gY8nAB9bWa8r8Nai9hvO xS8PWAAvJHwa9zA+5VQogVE0mTIkVgzAftb55ct1aCCiGAKC4R/mMOcCsZ2PyaGJr7Ct OgcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hdiGnsYA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w20si12742403edc.202.2019.09.10.23.36.01; Tue, 10 Sep 2019 23:36:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hdiGnsYA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726952AbfIKGeC (ORCPT + 99 others); Wed, 11 Sep 2019 02:34:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:37966 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726390AbfIKGeC (ORCPT ); Wed, 11 Sep 2019 02:34:02 -0400 Received: from dragon (98.142.130.235.16clouds.com [98.142.130.235]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A1F7B21D79; Wed, 11 Sep 2019 06:33:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568183641; bh=nILqRGanKyWCsHzEVK8odXbwKzmEyjYx6QNVTLEWPxI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hdiGnsYABZmVcA3qsJpOxGkwJMtLvaWrreihk580l8Bdua269dMT9TuUPCKFcKfHp +WhR12Ze+NzXy0ixqQA0GNZVk17CK3kfBB3iwU9+hkHQStxz+N0YKHGiymxkG8aSpn NjoHWrIMmv05+LjhyeVwUE8PVyePFUEFqRn7W2hQ= Date: Wed, 11 Sep 2019 14:33:51 +0800 From: Shawn Guo To: Vladimir Oltean Cc: Mark Brown , linux-spi@vger.kernel.org, lkml , devicetree@vger.kernel.org, netdev , Rob Herring Subject: Re: [PATCH v2 5/5] ARM: dts: ls1021a-tsn: Use the DSPI controller in poll mode Message-ID: <20190911063350.GB17142@dragon> References: <20190822211514.19288-1-olteanv@gmail.com> <20190822211514.19288-6-olteanv@gmail.com> <20190827180502.GF23391@sirena.co.uk> <20190827181318.GG23391@sirena.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 27, 2019 at 09:16:39PM +0300, Vladimir Oltean wrote: > On Tue, 27 Aug 2019 at 21:13, Mark Brown wrote: > > > > On Tue, Aug 27, 2019 at 09:06:14PM +0300, Vladimir Oltean wrote: > > > On Tue, 27 Aug 2019 at 21:05, Mark Brown wrote: > > > > On Mon, Aug 26, 2019 at 04:10:51PM +0300, Vladimir Oltean wrote: > > > > > > > I noticed you skipped applying this patch, and I'm not sure that Shawn > > > > > will review it/take it. > > > > > Do you have a better suggestion how I can achieve putting the DSPI > > > > > driver in poll mode for this board? A Kconfig option maybe? > > > > > > DT changes go through the relevant platform trees, not the > > > > subsystem trees, so it's not something I'd expect to apply. > > > > > But at least is it something that you expect to see done through a > > > device tree change? > > > > Well, it's not ideal - if it performs better all the time the > > driver should probably just do it unconditionally. If there's > > some threashold where it tends to perform better then the driver > > should check for that but IIRC it sounds like the interrupt just > > isn't at all helpful here. > > I can't seem to find any situation where it performs worse. Hence my > question on whether it's a better idea to condition this behavior on a > Kconfig option rather than a DT blob which may or may not be in sync. DT is a description of hardware not condition for software behavior, where module parameter is usually used for. Shawn