Received: by 10.192.165.148 with SMTP id m20csp383731imm; Fri, 27 Apr 2018 00:05:14 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoAdsnb70bvuGTg94S7B1mH1yoitfu4pv7NIHFEkESi+/Ynb0CKdKmEKHUmrrrLJNgV13ER X-Received: by 2002:a17:902:10c:: with SMTP id 12-v6mr1223272plb.252.1524812713939; Fri, 27 Apr 2018 00:05:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524812713; cv=none; d=google.com; s=arc-20160816; b=ph3K2i2jsBNuVTHZekuUrAxHAaH8ilHiNSY+4npdmohCwqkZgpRbYRE6uv+Jx5q7j7 YaIqfQeZt2oXUIFPYP1dcYNr3ahMQy9fwRTiUCHecdW3QfM3h7yaUffLz94A2kRML+lE r0l2+t6LwH2I+5fBjHUFQoNC+BEHR1vNrtdI/zZ87SMAV9u5H5JX419+cOUZvJUksFIh tTuQx8Iq7TlHvxGEnFNnHfc/U+Z1SCesfVTPacFHNiLM/LtWsTynUDH7rTscb78d8AoC 1jVa9jUpGKRfXdSnREImnocP/P63AzbVLebmoi+XY7UwWpVs7f2BdOsb8089xB/tp05G VDXQ== 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:arc-authentication-results; bh=bkUdC9CDot6RDEFUCqssxb4sgOcXEmWW0hnFxWRpGVE=; b=a6vdnwVaYSDu7GQqes+dULJ1iK3JP012rDTJ+S0HUZTx7jYLlhxb0D4k0JKAIkfOrd /6Pwch5VQlR7KyFATbiNjAGoRjpIrpgl/WuevYICTTJIny/UD4l9isKAAWiZ6iCB7Suh g5W7j/Pqz+x949ZSCqq8zcWBFAB5FHgxjnnmTFEo7KzEZMwDAC3EAoQcRbomcNg2HbGl zQefHGVoXfzTJmz/FlH7PQuGef6TRVoO/4qMLXeAkShlZb0nbIdGV2OqTDWlxW6R90Bz arIh6jbDWBTw8t/MCvtUCzdSvr6cAG8W87WCdJPCibYAIu0X1T668MNn05sVddp7LvBO RVXQ== 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 v13-v6si651668pgr.676.2018.04.27.00.04.59; Fri, 27 Apr 2018 00:05:13 -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 S1757531AbeD0HDu (ORCPT + 99 others); Fri, 27 Apr 2018 03:03:50 -0400 Received: from mga01.intel.com ([192.55.52.88]:55504 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757373AbeD0HDs (ORCPT ); Fri, 27 Apr 2018 03:03:48 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Apr 2018 00:03:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,334,1520924400"; d="scan'208";a="223819743" Received: from vkoul-udesk7.iind.intel.com (HELO localhost) ([10.223.84.143]) by fmsmga006.fm.intel.com with ESMTP; 27 Apr 2018 00:03:46 -0700 Date: Fri, 27 Apr 2018 12:38:30 +0530 From: Vinod Koul To: Lars-Peter Clausen Cc: Moritz Fischer , linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, dan.j.williams@intel.com Subject: Re: [PATCH v2] dmaengine: axi-dmac: Request IRQ with IRQF_SHARED Message-ID: <20180427070830.GC6014@localhost> References: <20180426174000.12008-1-mdf@kernel.org> <20180427051115.GX6014@localhost> <748ffc14-de12-c11e-eb12-65c599fe5f4e@metafoo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <748ffc14-de12-c11e-eb12-65c599fe5f4e@metafoo.de> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 27, 2018 at 08:53:39AM +0200, Lars-Peter Clausen wrote: > On 04/27/2018 07:11 AM, Vinod Koul wrote: > > On Thu, Apr 26, 2018 at 10:40:00AM -0700, Moritz Fischer wrote: > >> Request IRQ with IRQF_SHARED flag. This works since the interrupt > >> handler already checks if there is an actual IRQ pending and returns > >> IRQ_NONE otherwise. > > > > hmmm what are we trying to fix here? Is your device on a shared line or not? > > IRQF_SHARED does not mean that the IRQ is on a shared line. It means that > the driver can handle it if the IRQ is on a shared line. Since the driver > can handle it setting the flag is a good idea since this enables usecases > where the line is shared. Yes that is correct indeed, but what is the motivation for the change. If you never expect this to be in shared environment why to do this? Sorry but "it works" is not a good enough reason for this change, to enable usecases where the line is shared is a good reason :) -- ~Vinod