From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 246EFC433E2 for ; Sat, 12 Sep 2020 23:22:29 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CA38021531 for ; Sat, 12 Sep 2020 23:22:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="fO3NTbds"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="pW8a2zZ7" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CA38021531 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=MTd08acHpnQx0TKXF9Zp5s3p8mFVMrSFjxE0T2Wvtf8=; b=fO3NTbds5cGpV8eh2YqxQGrhP Kkws/axBr+V39WAkhUJckPzBmb1/WNQHzTqmpCzP8twVGCpQ4YKFBAPomCcI4YyGRS42E1gbYC7p5 92IeWBjXoGXftpzlo/CCNeA7CDOswaHeJKUx5l8TRG8jj2sGLIE3wErjxK3r5VolZJww1fkfLhIuO cV2qUkGJNlJEYxhnxcDChRtO04iiCrpXQ4VyABridVAXXTHpqFvIz+cb3S7PfLc+shv+NuzvgMQen onGwRI8vje+VKx16sGMsZXl13Afp0dpfT9Uhb7/JnLy/feQY3hGuUOFlSn/b1l+F3puYG5wKSht2z 3G2d15B+A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kHEpY-0004HJ-Fn; Sat, 12 Sep 2020 23:21:16 +0000 Received: from mail-oi1-x244.google.com ([2607:f8b0:4864:20::244]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kHEpW-0004Gt-9D for linux-arm-kernel@lists.infradead.org; Sat, 12 Sep 2020 23:21:15 +0000 Received: by mail-oi1-x244.google.com with SMTP id d189so13482264oig.12 for ; Sat, 12 Sep 2020 16:21:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=/dMaaDBanDfYWzJHUtA1zu6QC3dcL1hIJu0fjtyjUYk=; b=pW8a2zZ7S2E+NpS33bjr+N9ScS0sROEfh+yK/EZ1WcdV6xkmmEshW0+IlNi2NpsTps 22NtzGYYqJGjdtjf8azrlzkkvI6m3PKicwoxYxMIcrVmMjXKQ7jMNoJeNtMlDKAGdCaY CgHzvTtTXaXD3DEcZViXEkbKrev/qJjhW0dM50Bhs3bG3hbZzzxV4Nu/MeCqvqyDkt0x X1PzGu9WDGla5NdV1vcB9p5PYh2yO+a6Npu2ww9eB9Cnew9IBpPIBro4dBNnVcNpESzA +aQlR7OsYpKDvXsRzEpkyyKcVjikPOowLGuLqXrT17zdoTaupZta4Ytqy1zullJOUPVb aYIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=/dMaaDBanDfYWzJHUtA1zu6QC3dcL1hIJu0fjtyjUYk=; b=czuXpB+KIkDBqdQOJ9pD5fDZmqA0SOffncqNwN+mfFwx4t94GhAJi35mE89AmXN3Tz XUKgxUBTovGipW4ow6/Ecp1uB/zNiHsoIFbphOFqqBsWRnq5d9uZMponNbT/ycHZ/zbL ywenCsYonXCcQ1pPGkgq7wuYq7823Di5LogoqvBCWU1XzricPLTIPP3bPXUkuYacRKhs FA66Dd0KUsAU/dvvo1s/jytZCAQhPMnSjqlyX4oH//7XFRmUqZofDw6OYSldJn7GKItm Vhkz0anjTi8Shpbvg8a9T3hIeS7j5u2CNSLbmh3E9h1UPElShRK872hjkvyNLV7WLhHV mxng== X-Gm-Message-State: AOAM531cYm/Z4b+A8yoEuvuhh1SsVmnGUPocw2QK30aYW4wv+JIgToHt cWse4LSTiUBAfEgpudom27X7FA== X-Google-Smtp-Source: ABdhPJwFEbDp90twCYghn5oLUkLCFVun6uZCt6miEtgAklE+YknNQn1Yr84/GZogs9w3ATYtK2Llbg== X-Received: by 2002:aca:af94:: with SMTP id y142mr4617393oie.89.1599952872450; Sat, 12 Sep 2020 16:21:12 -0700 (PDT) Received: from yoga ([2605:6000:e5cb:c100:8898:14ff:fe6d:34e]) by smtp.gmail.com with ESMTPSA id h10sm1028981otq.32.2020.09.12.16.21.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Sep 2020 16:21:11 -0700 (PDT) Date: Sat, 12 Sep 2020 18:21:09 -0500 From: Bjorn Andersson To: Marc Zyngier Subject: Re: [PATCH 3/6] irqchip: Introduce IRQCHIP_HYBRID_DRIVER_{BEGIN, END} macros Message-ID: <20200912232109.GG3715@yoga> References: <20200912125148.1271481-1-maz@kernel.org> <20200912125148.1271481-4-maz@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200912125148.1271481-4-maz@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200912_192114_338328_71B51E4C X-CRM114-Status: GOOD ( 21.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Jason Cooper , Saravana Kannan , kernel-team@android.com, Hanks Chen , linux-kernel@vger.kernel.org, Rob Herring , Matthias Brugger , Andy Gross , John Stultz , Enric Balletbo i Serra , Frank Wunderlich , Frank Rowand , Thomas Gleixner , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sat 12 Sep 07:51 CDT 2020, Marc Zyngier wrote: > Although we are trying to move to a world where a large number > of irqchip drivers can safely be built as platform drivers > the reality is that most endpoint drivers are not ready for that, > and will fail to probe as they expect their interrupt controller > to be up and running. > > A halfway house solution is to let the driver indicate that if > it is built-in (i.e. not a module), then it must use the earily > probe mechanism, IRQCHIP_DECLARE() style. Otherwise, it is a > normal module implemenenting a platform driver, and we can > fallback to the existing code. > > Hopefully we'll one day be able to drop this code altogether, > but that's not for tomorrow. > Reviewed-by: Bjorn Andersson > Signed-off-by: Marc Zyngier > --- > include/linux/irqchip.h | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/include/linux/irqchip.h b/include/linux/irqchip.h > index f8f25e9f8200..31fc9d00101f 100644 > --- a/include/linux/irqchip.h > +++ b/include/linux/irqchip.h > @@ -50,6 +50,18 @@ static struct platform_driver drv_name##_driver = { \ > }; \ > builtin_platform_driver(drv_name##_driver) > > +#ifdef MODULE > +#define IRQCHIP_HYBRID_DRIVER_BEGIN(drv) \ > + IRQCHIP_PLATFORM_DRIVER_BEGIN(drv) > +#define IRQCHIP_HYBRID_DRIVER_END(drv) \ > + IRQCHIP_PLATFORM_DRIVER_END(drv) > +#else > +#define IRQCHIP_HYBRID_DRIVER_BEGIN(drv) \ > + _OF_DECLARE_ARRAY_START(irqchip, drv) > +#define IRQCHIP_HYBRID_DRIVER_END(drv) \ > + _OF_DECLARE_ARRAY_END; > +#endif > + > /* > * This macro must be used by the different irqchip drivers to declare > * the association between their version and their initialization function. > -- > 2.28.0 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel