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=-4.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED 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 9821EC433DF for ; Wed, 20 May 2020 20:45:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6738F207D8 for ; Wed, 20 May 2020 20:45:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590007556; bh=zvxbyrP8+WoJQ2qZ46YLZs+ZtsxrsgPnFMFf3VFGuG4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=dpIRYyI6jkD0+hNs+JkFjsnw50AcVKfL9lKkBmes627VnHt6r2PiIl0Er0zR/y8l7 AEGDcnu+tkIV8ygWd1bTRZnVgYLOH3qoXStmdFdPDgyatZPm/hYVGunavF6uqNajVY ZiZjDalD/B/oqF0p1mkLacEw4K1OJh1Jt/e799VY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726827AbgETUpz (ORCPT ); Wed, 20 May 2020 16:45:55 -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-Google-Smtp-Source: ABdhPJzA/vi82RIXoD3jiTdlM1ikMFygzPsAvXo0y2Xvb7bHzqzrE2GznTbs47Fup0foDkFLalmioA== 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-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@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 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=-4.0 required=3.0 tests=MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 CBED4C433DF for ; Wed, 20 May 2020 20:48:52 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (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 6E99020823 for ; Wed, 20 May 2020 20:48:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6E99020823 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49S4bk01FGzDqZq for ; Thu, 21 May 2020 06:48:50 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=209.85.166.196; helo=mail-il1-f196.google.com; envelope-from=robherring2@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=fail (p=none dis=none) header.from=kernel.org Received: from mail-il1-f196.google.com (mail-il1-f196.google.com [209.85.166.196]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 49S4XN4FhrzDqXJ for ; Thu, 21 May 2020 06:45:56 +1000 (AEST) Received: by mail-il1-f196.google.com with SMTP id j3so4692735ilk.11 for ; Wed, 20 May 2020 13:45:56 -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=hQ+onAzG6ipUvGhxz4jO50wni/swRheDiRpBS5BD+Q8T7FjxyoPBZkv5OmCVAlq6Lf 4yKJdD2kOkbFP1X3TOkYS7/MWExZJu2j4xsBmGBrvsK7JrO06kNFkb0Ae4h6bAeYq/0T fReZePSCTiqMe6QGQed2Q7gqb+VW0ILq7O1AZTHZO4fprZO+nJVUz5MmRcnOc55RhPil mZFs+ekS+nfBj+vPJ8Rd18vqikchY4SVCDUv24rPP6K18WM+n7azNWqhosJ/JiT2jpyT sG55q4D7FdaS2DGBlUUqDmshCscHZGFwPXhT3jsMKXu8uSOXqfrM+kN0OnL4nglL7xz7 bKTA== X-Gm-Message-State: AOAM531oGXygzKosbzIsP3oelAOsp12t/rCC9/KfGBSAdklf7j91H8q/ +kRtvFi8wAzdJjj0V7hyiw== X-Google-Smtp-Source: ABdhPJzA/vi82RIXoD3jiTdlM1ikMFygzPsAvXo0y2Xvb7bHzqzrE2GznTbs47Fup0foDkFLalmioA== 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 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> X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, andrew.murray@arm.com, lorenzo.pieralisi@arm.com, roy.zang@nxp.com, gustavo.pimentel@synopsys.com, Zhiqiang.Hou@nxp.com, linux-kernel@vger.kernel.org, kishon@ti.com, Minghuan.Lian@nxp.com, jingoohan1@gmail.com, robh+dt@kernel.org, mingkai.hu@nxp.com, linux-pci@vger.kernel.org, bhelgaas@google.com, shawnguo@kernel.org, leoyang.li@nxp.com, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, amurray@thegoodpenguin.co.uk Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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 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=-4.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 C5585C433E2 for ; Wed, 20 May 2020 20:45:59 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 963C820823 for ; Wed, 20 May 2020 20:45:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="gXjPbotq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 963C820823 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-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=bombadil.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=mhcvj7ArHroLVVko5+4ub7W7jRw0IrdHUk2qYsg86QQ=; b=gXjPbotqVrE49J Rx0mDGcxIOuIv1fhBKOojx30egxpes104rQsfXl860+HaCrrxbsOvZvctwae19sBtZD3oOcVpqUoC DQLQYG5+YcwMUgzEuwhHUHjpWyC38HKZZTNETU8hajcxbtz0HLjplaPI6kiyICUJH5lWzOl8iAXbF DLbwqJgQ7YnvBHfuOPjxmTu5PPuc0zbRyJHzKVt6tTx+kDA+pNhGLrgrjewTEzT4paMJxwnp6oXRx c/2AQyWo9cTrmjh3zzKGPunsCAzIvce8Nv+3XSqdIdzFOZ3YHzPXhRICRAmq58zIROQyV97RVlY3u YSQMvBp/p7doONsPZNnA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jbVbC-0000PS-2H; Wed, 20 May 2020 20:45:58 +0000 Received: from mail-il1-f193.google.com ([209.85.166.193]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jbVb9-0000NX-GB for linux-arm-kernel@lists.infradead.org; Wed, 20 May 2020 20:45:56 +0000 Received: by mail-il1-f193.google.com with SMTP id c20so4751496ilk.6 for ; Wed, 20 May 2020 13:45:55 -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=c2QHA09DYiuZcbuC/rp79loEgJU23CGjUO8XNt69Jfa4CFWrdTHrhrlBMmLTIcf4P9 vy7Dx2u0iNh+4/uVhgay0StvjrsXyw76ybXxtib06MTQ+soxGedbFnT8ES63CLWFtlvE rwLHVpQkS33tiSVsTjkjh3cc7//G4GPDaUf0IASwe/m2ZiFipSfyIbPEinJ+9S3u3DYm JeLZ7yH/3W2qVyQ6uPZZAUwXTJWo/Dl7Sl3zZ/3sFPaTmKz2/wEVbgoTWJ+JP+aK2Njj YCfNcFaR6syZo4CiYRhk9kJMcRAseOKIsMeKcDBIjl9vWZ4zkyuCQqTDaDd5ZKG2WVDN INhA== X-Gm-Message-State: AOAM530xZjgt6GtQq9JHf+O9VgOkNv39ef3UbnQFk3vTGROwv4S8lqSD IqAyx7/vGztOf86wECgwjg== X-Google-Smtp-Source: ABdhPJzA/vi82RIXoD3jiTdlM1ikMFygzPsAvXo0y2Xvb7bHzqzrE2GznTbs47Fup0foDkFLalmioA== 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 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-Disposition: inline In-Reply-To: <20200314033038.24844-8-xiaowei.bao@nxp.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200520_134555_537225_B526B5B5 X-CRM114-Status: GOOD ( 10.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, andrew.murray@arm.com, lorenzo.pieralisi@arm.com, roy.zang@nxp.com, gustavo.pimentel@synopsys.com, Zhiqiang.Hou@nxp.com, linux-kernel@vger.kernel.org, kishon@ti.com, Minghuan.Lian@nxp.com, jingoohan1@gmail.com, robh+dt@kernel.org, mingkai.hu@nxp.com, linux-pci@vger.kernel.org, bhelgaas@google.com, shawnguo@kernel.org, leoyang.li@nxp.com, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, amurray@thegoodpenguin.co.uk Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel