Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4955031imm; Fri, 18 May 2018 13:41:54 -0700 (PDT) X-Google-Smtp-Source: AB8JxZogCqx7h0aY0fOpCVKBCLVevnTz+BiWyhuWaOhzkdWe8kz1+bD+QB2Dw4Mb031X+SqEskaL X-Received: by 2002:a17:902:d24:: with SMTP id 33-v6mr3029735plu.22.1526676114689; Fri, 18 May 2018 13:41:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526676114; cv=none; d=google.com; s=arc-20160816; b=qQ5DPBm/16hL3Bl8ZkMhpzICV7e9beJxraG78wCPHlWiFnJ5Zm8t5xh2lIu4Z1zM16 2t+yWr7yA9WLxYyXepABZuRlHfiCm+RulVh0STMNKqabFTdOxQWoBnP8UbWJMwloEXQv 1BBlc9qPtZah8BYSbb19JOWGZOsc8pwRPztsMmc1p2ti1k1NEEo/QGjBhIsK3xBGuGRo RgWCvrASy/t+JpNC16e1abb8JmLvxfXfZ2W3xG+9i37glVswVGK6+ZX0aWfNOw867Anl baa28RciuLvaHfyz85W7ar5y3Q5n5kOzZKrwzL/ns8qFb2nunLZgc1f8ZjIWBwlSaK/4 Hj2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=8xbFP2ZZEW/Vqj5seA29x2HODlMQoJE8mdwdvj7SEVM=; b=hcFVzkskB5lLemGMoN4zDt+ONuag4UolsaULoODUyVoUCJSgFIAGW7NT5bzwLzjsRe N7OGcswcbNHKsI4e6s9Is2MeI5yqnM0q29yyqa/TfgBEOHHVAEX6CuCbiijdWNwuAA5Q HIRn93NeNaHCYbob9AcTWSR0WbtFeCRTcBKjYbnjrP8T1pewQReNwrsXJEX+O1giok+M BTiTlldSZnNbVV+iYnUVslQs2ASr4uYIY3dFcHzz+0P1Y2f3M3K8vKQ706iELQl3BC1O CDCaVURfbBiLVSqxe0kTMHDaOnrdEWHwhfOGxKlfQeqPZOPFIfVUDi4eBSVmlcJktnLd oo/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Jl6JvcPI; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b37-v6si8079475plb.377.2018.05.18.13.41.39; Fri, 18 May 2018 13:41:54 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Jl6JvcPI; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751969AbeERUl2 (ORCPT + 99 others); Fri, 18 May 2018 16:41:28 -0400 Received: from mail-qt0-f194.google.com ([209.85.216.194]:41645 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751280AbeERUl0 (ORCPT ); Fri, 18 May 2018 16:41:26 -0400 Received: by mail-qt0-f194.google.com with SMTP id g13-v6so11983174qth.8; Fri, 18 May 2018 13:41:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=8xbFP2ZZEW/Vqj5seA29x2HODlMQoJE8mdwdvj7SEVM=; b=Jl6JvcPIn79/PHiD56EFFdl0ZblL9TJGqdfNQwLpPd2knkJzjS4OXkJMh7FcpNCUD7 t54gF/fIKKwyMfBq54cJJWzcDEwNOj+3SGFFW1Os/sQIrF74UddsjlDw55EkkhI+2tzE cZJg7lI2mT2Qt/NOpvnhwoTqjALBGvPnEVOnGPI336UXxen83SYIVS3TcmWkXeEN6/fP uI+CufYbnEkEVDA4bqiKY5sVINTTupRBt/imJujjI6z/wMh7Tbv3ZL0GgBEKAUD7N48L EHgzqcR0Wptn4C9oGCNpfcqqgQN6RHZQtFDCEOtUiZMnMD8FpbyBdYlox29kAYshFbPF +v/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=8xbFP2ZZEW/Vqj5seA29x2HODlMQoJE8mdwdvj7SEVM=; b=AVYppeUQdwz66r9pip3ZGUN1rNqqvgqM+mjQPwfJOAZTVf767p0ms/mrE1JLdJfwM5 j+aVpBlxXs1QX0vUqKIRP2azkgAgI+huh3gpx295aSagnRuQApe5RIjOGBpy9tc/5RRh drUlZJyL7aIP3Mp9JAdq8nV0dehrFx4QG1hgcYtpBpGr8pKtHfdZihwdCXIcJ8hWCkly PLTbAr44hEVemV6rC0+QzQx6pvJONkTs5HJTARCjrb/z8L48heBVQ+f+sH5CxClYaQ6c 7EKJhnFwsUpwh7WFvuJ8Xy6/TAK6iCyl8G8DhQ/wlv/fbS4ouTMD7OUvNrO7ampJnE+2 GC0w== X-Gm-Message-State: ALKqPwfshnaTk8IvgN3xC5xz5xCCKfi4pkPX1/S/zK0Nczxw9c3cCro1 RLUVfURgBqy7d4ZDfKFDfCfLfOUYAK7jOAl5STo= X-Received: by 2002:aed:2c43:: with SMTP id f61-v6mr10719667qtd.105.1526676085778; Fri, 18 May 2018 13:41:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.152.150 with HTTP; Fri, 18 May 2018 13:41:25 -0700 (PDT) In-Reply-To: <20180517174619.GA4056@e107981-ln.cambridge.arm.com> References: <20180516012159.44081-1-songxiaowei@hisilicon.com> <20180516012159.44081-2-songxiaowei@hisilicon.com> <20180517174619.GA4056@e107981-ln.cambridge.arm.com> From: Andy Shevchenko Date: Fri, 18 May 2018 23:41:25 +0300 Message-ID: Subject: Re: [PATCH v4] PCI: kirin: Add MSI support To: Lorenzo Pieralisi Cc: Xiaowei Song , Wangbinghui , Bjorn Helgaas , "xuwei (O)" , Rob Herring , linux-pci@vger.kernel.org, Linux Kernel Mailing List , Dmitry Shmidt , Guodong Xu , Suzhuangluan , Kongfei , Yao Chen Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 17, 2018 at 8:46 PM, Lorenzo Pieralisi wrote: > On Wed, May 16, 2018 at 09:21:59AM +0800, Xiaowei Song wrote: >> +static void kirin_pcie_msi_init(struct pcie_port *pp) >> +{ >> + dw_pcie_msi_init(pp); >> +} >> + >> +static void kirin_pcie_enable_interrupts(struct pcie_port *pp) >> +{ >> + if (IS_ENABLED(CONFIG_PCI_MSI)) >> + kirin_pcie_msi_init(pp); >> +} > > Why do you need two functons ? It's probably misreading of my suggestion which is more clearly can look like if (!IS_ENABLED(CONFIG_PCI_MSI)) return; dw_pcie_msi_init(pp); -- With Best Regards, Andy Shevchenko