Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1250032rdb; Wed, 20 Sep 2023 04:12:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHjqZbIvFqAlCavdeLREJ7/Gm+HwPA9yzqst2CJDHYm3HeJ5oMcXKe4+DSmnn8TEwHRKYB0 X-Received: by 2002:a17:90b:896:b0:26d:5cd0:979f with SMTP id bj22-20020a17090b089600b0026d5cd0979fmr2223746pjb.43.1695208350457; Wed, 20 Sep 2023 04:12:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695208350; cv=none; d=google.com; s=arc-20160816; b=A1DvvMW0s4izdVTfpWqXP6tuBgJt37tC7cj0h8sxg5LxkNjMAINi3Az45a2Ew3nq3a 5cJ5J0MH5Xo+dH1G7rHnSSYMKACsDW4DRLO5mn2KkLCIfUT0BBYpunQuTGEgMjGzkzJ2 kj8fmOYHaljbJBnEqqwUJ4sQ6WtFTkGYqVzE7F0BCMVr0KI5sBb+wvFNPrPD7WELfE4T RbeZqfJrzcL+gnkt+hhz2hEpYwFsKR1TiVj2zGgiwgUxhMr5Ev7iaS0cJySny5oT47JD UT7XPKZS/ifVvTT/r75IbKevuqHLaCkdX72HO2qngKnBgVqlibw45u6BdaxjJV6jdpu/ eCgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=6q5eu8R+bJ9vSddeGnuymqFgSWOOmC7K7ROAa3mOVbQ=; fh=yxXK3nAeBcoAbbxgMpl2g08b07I+IvjZRGTnAVItXLc=; b=Ofer1HYQCZr+R6P2a7nBt8bWraVBeC9o2SxJBAzmNAeknuewTAjdlOjJqQSkYbA6Y7 96C8SzfJ8q7kqItW7KB7FTNaEIbQcm0aZeGUTszKm0P2QxUpvO475yjd3IPYW/1eZ2vN kGqzcH5vh/LJ79wk7FsTXqpnZ/Q6pO4DH41TVaYO0HPsqgTVyDWgovQVqbDvrZX6yRbU 6kkRe8bDhy/etg5in16XoT3N1iWMO/5FdFNzgeVRLBmqHq7z6B8+MzSqr1dIVI4hdLrn 1Y8Glfg2qrsYMcFuAayHxJpVw2ZJPGP0D/xX1xxn3ULBodZw9rRN4KCOvq8iDght9y0M 7L8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=d4DgQU++; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id fy17-20020a17090b021100b00274cd892b39si1324937pjb.132.2023.09.20.04.12.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 04:12:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=d4DgQU++; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 9ECEE806AFE7; Wed, 20 Sep 2023 01:52:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232813AbjITIwK (ORCPT + 99 others); Wed, 20 Sep 2023 04:52:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233406AbjITIwI (ORCPT ); Wed, 20 Sep 2023 04:52:08 -0400 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE43B94 for ; Wed, 20 Sep 2023 01:52:01 -0700 (PDT) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 38K7AkKY028950; Wed, 20 Sep 2023 03:51:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=PODMain02222019; bh=6q5eu8R+bJ9vSdd eGnuymqFgSWOOmC7K7ROAa3mOVbQ=; b=d4DgQU++j2N5E380+rJE4xnU2ocsKHy IOa1XBCqFrFBqL85C24a41dGDdYBoI3aQSG9ZUpi96wGU2sATUhamOMPCEgQScEk TG7crnWkfkcf3u2JyzsrMKvTCwnsk6ty7u//1qr7LzBao11STDC1nuq7OkNOc2WJ qF2nrXvmS2bsr1udbJcUISAS7jn6/OkKUdGy8kxzDkzzbD8OMQswAPUC0i59WEy0 X6hnRM/uq9krWIdBvIXs2bp3Onf4Hjz3T6S26IqyYr6DpK5euUtN4IVSbvzDBPec tPq9P754YKu4wmrtAKzEJFaCL6IEBxG6+iS1S4vqkce/ei4zVF/5n8w== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3t58shv5g9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Sep 2023 03:51:35 -0500 (CDT) Received: from ediex01.ad.cirrus.com (198.61.84.80) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.37; Wed, 20 Sep 2023 09:51:33 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.2.1118.37 via Frontend Transport; Wed, 20 Sep 2023 09:51:33 +0100 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 7AE0B11AA; Wed, 20 Sep 2023 08:51:33 +0000 (UTC) Date: Wed, 20 Sep 2023 08:51:33 +0000 From: Charles Keepax To: Vinod Koul CC: , , , , , Subject: Re: [PATCH] soundwire: bus: Make IRQ handling conditionally built Message-ID: <20230920085133.GE103419@ediswmail.ad.cirrus.com> References: <20230918161026.472405-1-ckeepax@opensource.cirrus.com> 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) X-Proofpoint-GUID: 0UdEfjuFUU1YZIucE2H-iVpmM5U_Zznq X-Proofpoint-ORIG-GUID: 0UdEfjuFUU1YZIucE2H-iVpmM5U_Zznq X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,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 pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 20 Sep 2023 01:52:13 -0700 (PDT) On Wed, Sep 20, 2023 at 09:05:13AM +0200, Vinod Koul wrote: > On 18-09-23, 17:10, Charles Keepax wrote: > > SoundWire has provisions for a simple callback for the IRQ handling so > > has no hard dependency on IRQ_DOMAIN, but the recent addition of IRQ > > handling was causing builds without IRQ_DOMAIN to fail. Resolve this by > > moving the IRQ handling into its own file and only add it to the build > > when IRQ_DOMAIN is included in the kernel. > > > > Fixes: 12a95123bfe1 ("soundwire: bus: Allow SoundWire peripherals to register IRQ handlers") > > Reported-by: kernel test robot > > Closes: https://lore.kernel.org/oe-kbuild-all/202309150522.MoKeF4jx-lkp@intel.com/ > > Signed-off-by: Charles Keepax > > --- > > drivers/soundwire/Makefile | 4 +++ > > drivers/soundwire/bus.c | 31 +++---------------- > > drivers/soundwire/bus_type.c | 11 +++---- > > drivers/soundwire/irq.c | 59 ++++++++++++++++++++++++++++++++++++ > > drivers/soundwire/irq.h | 43 ++++++++++++++++++++++++++ > > 5 files changed, 115 insertions(+), 33 deletions(-) > > create mode 100644 drivers/soundwire/irq.c > > create mode 100644 drivers/soundwire/irq.h > > > > diff --git a/drivers/soundwire/Makefile b/drivers/soundwire/Makefile > > index c3d3ab3262d3a..657f5888a77b0 100644 > > --- a/drivers/soundwire/Makefile > > +++ b/drivers/soundwire/Makefile > > @@ -15,6 +15,10 @@ ifdef CONFIG_DEBUG_FS > > soundwire-bus-y += debugfs.o > > endif > > > > +ifdef CONFIG_IRQ_DOMAIN > > +soundwire-bus-y += irq.o > > +endif > > Any reason why we cant use depends for this? > No reason we can't, but my thinking was really that SoundWire doesn't really have a dependency on IRQ_DOMAIN, as you can use the original callback mechanism. It seemed a shame to force it as a dependency, when the whole subsystem can function happily without it. That said, I am happy to switch to a simple dependency if you prefer? It would certainly be a much simpler change. Thanks, Charles