Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp518245ybe; Wed, 11 Sep 2019 00:02:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqxboQyNDaNegWFylWULixv5ZE/phVYGXicGDIqsVKBCiA+xBqPZSCAxp4F7Ivz/UW/Jko3I X-Received: by 2002:a17:906:a851:: with SMTP id dx17mr28712347ejb.116.1568185353117; Wed, 11 Sep 2019 00:02:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568185353; cv=none; d=google.com; s=arc-20160816; b=LeUdyvjACIyJ4efgfOrx+2y+3MJh3peogqPQBoK1Kk9T8Cko+EB+GqJYnCgVq15bbl 8ulbVcuKSuqr2eGHc9fTwjkmILtECapJdXZOi0Wmxu3WBc0CfunvVf8u+SYo31mwCVpP yTfwb3X1wiZtk/PkZby+CFVxHmbZe/Ln/xvqUfAx4bzzGnnyBspCZRTlhlZR9e/ijPkL /IBKkw6Du87YdCuERsqD9o5kFEuqSsUNI9HTnnwYOlQDVDYIzu6/Jm4azqyVcV9g/yKm 6MmML3jpL08uFCMSsQpBvUJHetP0i6LSjkSClPaB/lXldeUtbNAvhM22+EZk1LryxjB2 SRhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=9dr69d7D9AZxG4ptlvv1ouodNVo3Kf2fAKXXlCgtDP4=; b=VUf+zUKLQIsMSfCc1G//la9Lv8rscYOEJN/wUCnuBmczGSX/Iz8COkHkF41uuOTJ6F j7+H4qDEgmrL48TlhXummDW1aUGRKZnj3EQLEu0NojeAIikbbvdSylzfWLfmpGMpLdXM JWZIwqlvZuHjxwJ6mEwsUlHhBCKGIyPR67JkINW8BcwVBbm4pVkfQ9fLZ9k5c7gRpnUJ Vi1/4D47/xKVGdWbP0JGJ01dqffLsNLPGIDv3evqrU19RspZvLECEqhdLqaLc1elZ+bI hNMH8lKBzFZjUCv/NsZINe1MLrwn7+8Pr9qRu4Ui/QBcVBUdaZzHdLZoxb41sE5e3tKv Q7lA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k25si10781147ejv.115.2019.09.11.00.02.06; Wed, 11 Sep 2019 00:02:33 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726842AbfIKHAR (ORCPT + 99 others); Wed, 11 Sep 2019 03:00:17 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:37937 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbfIKHAR (ORCPT ); Wed, 11 Sep 2019 03:00:17 -0400 Received: by mail-ot1-f67.google.com with SMTP id h17so17717188otn.5; Wed, 11 Sep 2019 00:00:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9dr69d7D9AZxG4ptlvv1ouodNVo3Kf2fAKXXlCgtDP4=; b=BHbwToTOy7gV+Sqb0XdCfOWHFyMJhmRslvW20JdZHukCG9CZIbRgbKr+froKoeNk/q O9QzPQKRgFMNPb6QanP9hz2se6oqURScWVOIsHh6sJ6HKupeLggZvXqdW6VhEhDi4ugW 79tOCiZpgJPz5TZFlYGVv1//3YgpPu6+CVDX5Lz0fuXQREu2Dg1eSHZ99jl6NuoNSdUH CewR+rngrkWwPZ8+EHQZPhqsmkfEg6IGZ29wsaKqWoHPbDUfDs6ED2DyHwEyf7R2AHDL 1MB5cOUZoWjUJn/HaYeN16p/ye54shNwdcU4P8D7xFY3Tnl2lKterZcrOVBoRci7vmud tGAA== X-Gm-Message-State: APjAAAXaukwcNuOE8SU3EttZwyJ+XdscYWOC9iz25+R9CuILV5facJ7e 5ykAMaH0Be7h/vlbp1ZtoBSdGbaivnmp9+mP+vE2BQ== X-Received: by 2002:a9d:32a1:: with SMTP id u30mr24883499otb.107.1568185215069; Wed, 11 Sep 2019 00:00:15 -0700 (PDT) MIME-Version: 1.0 References: <20190822211514.19288-1-olteanv@gmail.com> <20190822211514.19288-6-olteanv@gmail.com> <20190827180502.GF23391@sirena.co.uk> <20190827181318.GG23391@sirena.co.uk> <20190911063350.GB17142@dragon> In-Reply-To: <20190911063350.GB17142@dragon> From: Geert Uytterhoeven Date: Wed, 11 Sep 2019 09:00:03 +0200 Message-ID: Subject: Re: [PATCH v2 5/5] ARM: dts: ls1021a-tsn: Use the DSPI controller in poll mode To: Shawn Guo Cc: Vladimir Oltean , Mark Brown , linux-spi , lkml , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , netdev , Rob Herring Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 11, 2019 at 8:34 AM Shawn Guo wrote: > 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. +1 DT says the interrupt line is wired. The driver should know if it should make use of the interrupt, or not. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds