Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp12428733rwd; Fri, 23 Jun 2023 06:07:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5OyYZVDyEnx+RFjRxY1R/xE/tKxNV5t3Zyh6cYbt+KwEBcSClBtFlwXgT/Y2ZQmJAjdd4I X-Received: by 2002:a17:902:e809:b0:1b6:80f0:d969 with SMTP id u9-20020a170902e80900b001b680f0d969mr10022562plg.11.1687525659223; Fri, 23 Jun 2023 06:07:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687525659; cv=none; d=google.com; s=arc-20160816; b=vXa1ooZNQJHiKZdDOIZquvdun1VtPupzmnxAnO3DQIjG/GPS8XSE3kyTLSQ8Fo23QE vCf1TgNFTB06fcWxuZby7NKCnIu/mqv2iZs0U/Q5TxBN03QfozODLfZGzHbD87FPo2db NLTGlpbVZc9FOMizaRPEfZ1r5+3NvkYat3/vrVsLFAKtWlSLKnIzaJqxxRrdoEqdWl+M R50vD8v3hs+Nkj3mv8e7x9Si6L/ADrOJGKKl9Lwt7KpT71nnuNSYXd7/z1pa3BlvErcE R5pZmseVS+Z9OI/b/qOHfP6nlDYdGVkUkjEhHnIJAoBAdlS/NFupCW5gN/U/pJFRA+zJ FIcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature; bh=FKDAbliaF2xF8vJLxBxHwcZ9I04c8LkO+vRpe6cSHzc=; b=Rr11q1Ocy/WVR1oxf34Nf5l3wRW63OpmtT7xhD1G3HWvNxhFCcadZ2hYeucScY0FT/ zw++qaOtMhKdONJety9ShY0fWbKIu2ZOyAU3eE98tczYZt1Z1tn+YhfKNLrBifJGBiQe ++AzAz1tdoEtUEDsER4HXJKwxIbFbGFPA9AEOzViGvITPBDjq5U31LyO3noddflOBut5 Sjt+PEybdT8HIzEYCQ/lzUMaALuMZTgjt/a398WoEJm1aMs2QVbnS+MyYnauCvT9lfcR ayWavpNJC2jgfmYZF6X/LEGL3LhpfsqziKggXc3Jcdb6v5ee1eCufW6Rnc0ws4m2lTnw EyuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=j8Wqa0v9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k14-20020a170902c40e00b001b03cf17e5dsi10339261plk.12.2023.06.23.06.07.25; Fri, 23 Jun 2023 06:07:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=j8Wqa0v9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231637AbjFWMuK (ORCPT + 99 others); Fri, 23 Jun 2023 08:50:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231768AbjFWMtx (ORCPT ); Fri, 23 Jun 2023 08:49:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48E4B10C1; Fri, 23 Jun 2023 05:49:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CFC9961A41; Fri, 23 Jun 2023 12:49:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3191BC433C0; Fri, 23 Jun 2023 12:49:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687524591; bh=9jQs0S7PGplotxU57o2pvvL0Cr/c4F03tmay59rArwI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=j8Wqa0v9XlimtVUmIin2dvD0fnRgMA7b4U28B0NWLIDYi1qvR9Ktx3/8v1bgNf5Jh HXGZJIVO9MqsoeCUlVQBZWxz9SWcRaiySP/HwRetmN15uXQOb9Ky2YLq2OggS/c1Gi 1pO51CHvYn1hpFtK5Axn8lM8rsJlrINOm/fPDGowDJCoPORW0aDyoeIPo6yBrHYyJQ E+4jyW7yToQsA2gz8bEkPRf+MRoL9N/WHa2ClDP//nL1rltx+/wFc7V83nU9tF0ATe ZNtYzPE4oUmNiv/Q83eqM9P9SmtXG23njnA/JfHPq8lhd1sDQtJBy3wuE0+WLATwjb VYeKusnC6qG/Q== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1qCgEW-007keF-Ga; Fri, 23 Jun 2023 13:49:48 +0100 Date: Fri, 23 Jun 2023 13:49:47 +0100 Message-ID: <86mt0qbaxg.wl-maz@kernel.org> From: Marc Zyngier To: Anup Patel Cc: Saravana Kannan , Anup Patel , Palmer Dabbelt , Paul Walmsley , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Robin Murphy , Joerg Roedel , Will Deacon , Frank Rowand , Atish Patra , Andrew Jones , Conor Dooley , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, iommu@lists.linux.dev, Android Kernel Team Subject: Re: [PATCH v4 08/10] irqchip: Add RISC-V advanced PLIC driver In-Reply-To: References: <20230613153415.350528-1-apatel@ventanamicro.com> <20230613153415.350528-9-apatel@ventanamicro.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: apatel@ventanamicro.com, saravanak@google.com, anup@brainfault.org, palmer@dabbelt.com, paul.walmsley@sifive.com, tglx@linutronix.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, robin.murphy@arm.com, joro@8bytes.org, will@kernel.org, frowand.list@gmail.com, atishp@atishpatra.org, ajones@ventanamicro.com, conor@kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, iommu@lists.linux.dev, kernel-team@android.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [here, let me trim all of this nonsense...] On Fri, 23 Jun 2023 12:47:00 +0100, Anup Patel wrote: > > No. My previous email asking you to NOT use IRQCHIP_DECLARE() and > > instead use IRQCHIP_PLATFORM_DRIVER_BEGIN/END() macros. > > I tried IRQCHIP_PLATFORM_DRIVER_BEGIN/END() macros but these > macros are not suitable for APLIC driver because we need platform device > pointer in the APLIC probe() to create platform MSI device domain (refer, > platform_msi_create_device_domain()). Oh come on. How hard have you tried? Have you even looked at the other drivers in the tree to see how they solve this insurmountable problem with a *single* line of code? pdev = of_find_device_by_node(node); That's it. > Further, I tried setting the "suppress_bind_attrs" flag in "struct > platform_driver aplic_driver" just like the > IRQCHIP_PLATFORM_DRIVER_END() macro but this did not work. I'm not sure how relevant this is to the conversation. M. -- Without deviation from the norm, progress is not possible.