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=-2.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no 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 BB218C38A2A for ; Thu, 7 May 2020 14:00:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8F1862083B for ; Thu, 7 May 2020 14:00:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588860018; bh=5obdS31sMzy2WravwryFoBjEaM1odMtdjQvUC4fHdms=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=VO+zMFOd4WLX1T4J9ZINjyrMAge4V6lyEwi7M0jBxaogFXbPcacK6ve4+hSkqYZ66 uBJXc1n6rkf4fqpoL7QHso7g9ChtxtRzszyHV9uH4VPTaZyh4inBz0JyVJljy4Y+VQ ehCxqeWVM9C9TkMqmX+yNj4aLSu+SaK1C+m0MCTE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726470AbgEGOAS (ORCPT ); Thu, 7 May 2020 10:00:18 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:36649 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725947AbgEGOAR (ORCPT ); Thu, 7 May 2020 10:00:17 -0400 Received: by mail-oi1-f196.google.com with SMTP id x7so4329391oic.3; Thu, 07 May 2020 07:00:17 -0700 (PDT) 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:user-agent; bh=5obdS31sMzy2WravwryFoBjEaM1odMtdjQvUC4fHdms=; b=ExqIWMVZAOjojEW5hsissObp2SCh7jHDjDG24Iilnw7qY+g/oYElMsCpZNFPaBjBr3 RExwSLsFg0nTmV2SgdfU+qm+GJhRX63LmGJyF9LE40/HY3icHnZz+tDEXPSPeMTDZVGz CxbWSpauAVOP3HAK7aOoVPpaS5mudOCf2kzppjue2Di7749KV5KNwuCQa5KtttgBLI6m lHQsLhrVDwVc1sjj7nbLJeq6FH3p9i65nEJKDqoTPM/pTNvyadyLKWKwJjeLpCKUEsk5 QeyMrsGtCqIZf4NX8ofPoM9qST88aqNNMVfc/GKQ82FfBTiLbFQvi8jG6fSL+xKlbsHo XEPA== X-Gm-Message-State: AGi0Pua3huMNP5HAD1fTp6cUS9fd+lYHto143BOWJ4oY4K7vva7rhd+g UZ14RYgIR1jALZiOFFFJ4Q== X-Google-Smtp-Source: APiQypKzzBpzLKb19Oq6n42KnCLxq3n5Ag62OOoby5Ov/MPPD1ziCvGHjfHjs6PTZ8/5D6lB2YO3QA== X-Received: by 2002:aca:d6c1:: with SMTP id n184mr6603818oig.126.1588860016614; Thu, 07 May 2020 07:00:16 -0700 (PDT) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id 60sm1113676oth.38.2020.05.07.07.00.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2020 07:00:15 -0700 (PDT) Received: (nullmailer pid 22066 invoked by uid 1000); Thu, 07 May 2020 14:00:13 -0000 Date: Thu, 7 May 2020 09:00:13 -0500 From: Rob Herring To: Shawn Lin Cc: Heiko Stuebner , Lorenzo Pieralisi , Kishon Vijay Abraham I , Bjorn Helgaas , Jingoo Han , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, William Wu , Simon Xue , linux-rockchip@lists.infradead.org Subject: Re: [PATCH v2 3/6] PCI: dwc: Skip allocating own MSI domain if using external MSI domain Message-ID: <20200507140013.GA23957@bogus> References: <1581574091-240890-1-git-send-email-shawn.lin@rock-chips.com> <1581574091-240890-4-git-send-email-shawn.lin@rock-chips.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1581574091-240890-4-git-send-email-shawn.lin@rock-chips.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org On Thu, Feb 13, 2020 at 02:08:08PM +0800, Shawn Lin wrote: > On some platform, external MSI domain is using instead of the one > created by designware driver. For instance, if using GIC-V3-ITS > as a MSI domain, we only need set msi-map in the devicetree but > never need any bit in the designware driver to handle MSI stuff. > So skip allocating its own MSI domain for that case. A new field isn't needed. Just implement the msi_host_init() hook. Rob