Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp854060ybk; Wed, 20 May 2020 13:47:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGwQisA9kpmRBX1E1VX6iF/94F1KY/CJI8Ve90PNnhI4W3Or5mRs/BwVCZ6dqbadFIBizB X-Received: by 2002:a17:906:4dc3:: with SMTP id f3mr788835ejw.323.1590007659247; Wed, 20 May 2020 13:47:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590007659; cv=none; d=google.com; s=arc-20160816; b=gE55KolWUbeoj6Vhy3I70DPQVFP9mIJ7lW4cECyiL1sxjNMQlXc+Jo78q9KXbG2UHo GJU4CT+JvE4SE8VG0/ReEijfCWyu0zk7zF11NAQjZVUM+OZ5+TGg58w9Uhz0dlSvK/AH GSt7G5MXw7Asydd7FG7owPL4NucYBYjwSVor0YWQVPnQzQgyU36S5ALdHfOyCXEM76Tr QRHJfmr/OC8WJfGqyq/PcMGDMAF8x/rXVshRZldgovz+d8uthq7Y4jScq2q4PLr0a0+s 1SfJEyjuobW6nOgE9L3FAUMOSy23Dlk+ctgSW8/K5BThUA0zUH/G+gOtV+pMnLL2H8vy HUBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=PJPc6Xkos1JJWBSfHLuEWUb/ztU6JUGFozPRth5oI/s=; b=SG8CaVHINEnqpARwfbU5dUGFkNiq1zeisaBLWyTps2r7oLTy8b0aqerlROlTGxVOLt hf3z5k6DNoPQlEdNX1jwBrd+6bA4oc7NBr+UBh6ieBJLWJDulJs9Y5ehjmdf7AuaKQnx LiwFxluX6bJ3Y9Z9yAvBGlfzVlNYV8Afy+QMx/oVYZWi1MXWI5OW0Jrwkg+DcVuJPvIx nPUKTsZ+Y1twn1JM62XcfJ5CBUhWfS+ejj3VD7Rs4xk+7ohmj0p7d/2ccesShIVaWOkZ x/C0kKDScle3slYWrsZK0vkZchUZU0Cf5mZZbbUQbQi3HpFBHCHWaHgIN+WMvHVj2IR4 dvTg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h15si2212956edj.37.2020.05.20.13.47.16; Wed, 20 May 2020 13:47:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728031AbgETUp4 (ORCPT + 99 others); Wed, 20 May 2020 16:45:56 -0400 Received: from mail-il1-f194.google.com ([209.85.166.194]:34794 "EHLO mail-il1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727067AbgETUpz (ORCPT ); Wed, 20 May 2020 16:45:55 -0400 Received: by mail-il1-f194.google.com with SMTP id 4so4761179ilg.1; Wed, 20 May 2020 13:45:54 -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; bh=PJPc6Xkos1JJWBSfHLuEWUb/ztU6JUGFozPRth5oI/s=; b=Qr6ImyGiMEYnMyB2AqmJClyKZVkfBVFm8SUmBFevqUGnXC3+WHZzGEUazL/htFV8m5 OMbLPdWjFxJIFOoz6s9YzemCplhQvtWvazysxw0zZMThKE4WF7z7QU024EhP1goOI4Lv mwO1nB6iCd+JTly9E938UcdBMs+1n+ESr+Q+2/4wlYpRQAL0L667rw8cHK1H+SpXMWAR jVjXu4C/W1sXNYeD3JH4HQj1LXULVAo58kdDlM3pm8yaLlcfs8yWlccU1riEd262HZVB beQGGNHeaeyqOHWHw+S+jlvMRwfGOu7+QQub/zlIN//nm/xhI2pkXNr2kyREZrEyBW6L UIVQ== X-Gm-Message-State: AOAM533FLUgAEEtcritQ+eyqC4zueewVdclzfk9Y2wmiMXCPW2s9LY3M Wh0g+HUxAaho/xvRIBZYyQ== X-Received: by 2002:a92:8946:: with SMTP id n67mr5278356ild.215.1590007554470; Wed, 20 May 2020 13:45:54 -0700 (PDT) Received: from xps15 ([64.188.179.252]) by smtp.gmail.com with ESMTPSA id r8sm1531353iob.15.2020.05.20.13.45.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 May 2020 13:45:54 -0700 (PDT) Received: (nullmailer pid 535579 invoked by uid 1000); Wed, 20 May 2020 20:45:52 -0000 Date: Wed, 20 May 2020 14:45:52 -0600 From: Rob Herring To: Xiaowei Bao Cc: gustavo.pimentel@synopsys.com, linuxppc-dev@lists.ozlabs.org, kishon@ti.com, amurray@thegoodpenguin.co.uk, shawnguo@kernel.org, linux-kernel@vger.kernel.org, leoyang.li@nxp.com, bhelgaas@google.com, lorenzo.pieralisi@arm.com, devicetree@vger.kernel.org, roy.zang@nxp.com, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, robh+dt@kernel.org, Zhiqiang.Hou@nxp.com, jingoohan1@gmail.com, andrew.murray@arm.com, mingkai.hu@nxp.com, Minghuan.Lian@nxp.com Subject: Re: [PATCH v6 07/11] PCI: layerscape: Modify the way of getting capability with different PEX Message-ID: <20200520204552.GA535450@bogus> References: <20200314033038.24844-1-xiaowei.bao@nxp.com> <20200314033038.24844-8-xiaowei.bao@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200314033038.24844-8-xiaowei.bao@nxp.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 14 Mar 2020 11:30:34 +0800, Xiaowei Bao wrote: > The different PCIe controller in one board may be have different > capability of MSI or MSIX, so change the way of getting the MSI > capability, make it more flexible. > > Signed-off-by: Xiaowei Bao > --- > v2: > - Remove the repeated assignment code. > v3: > - Use ep_func msi_cap and msix_cap to decide the msi_capable and > msix_capable of pci_epc_features struct. > v4: > - No change. > v5: > - No change. > v6: > - No change. > > drivers/pci/controller/dwc/pci-layerscape-ep.c | 31 +++++++++++++++++++------- > 1 file changed, 23 insertions(+), 8 deletions(-) > Reviewed-by: Rob Herring