Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3721674pxb; Mon, 24 Jan 2022 16:18:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxqhuUfRZegl0G2bhVBT4OCSMvQp4r3oxLeAwDZIUPpTjiuMdzBi8/8vGaIKptX9qfJ4ARS X-Received: by 2002:a63:f250:: with SMTP id d16mr13429221pgk.494.1643069935916; Mon, 24 Jan 2022 16:18:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643069935; cv=none; d=google.com; s=arc-20160816; b=MXHnMBoWOw5UhOebA4Xz0TntXnudKiHz6RQ0nu28pRiHW8kaoVjB08J9jJuVjX8amc 58iiIzrp3XzrSSQ8TBislaUfQ2a2GR6suD4hiRdwZUTnynvxDwnFvo8UUTlV1W2WYsRC PDxSCiHkD02xz69gB8wphOB+AkxgcRhalyQSQyD8iAvlSdJgXzrVA7t6zgPiC02hyzw8 7OZvPiiMfFFxxQ60zBxm7cqFt7GebuV7U7Gyokkh8dblhTzWO3UygsrnmWeiOz6oLZRg PysinFh+serKv9uR4zX/vZDVx9w3dwJe/uVLEErq2uduoq9AAK/C2WDza7uB8cRzdB7K 8MfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Al4e//dQYmO2fptTOQ66TS1+8m453xdbX2G0gKAl2mk=; b=TQ9pWB7mcWQCBHmlZbkubFAbnEBipC6j+qQ++RxjwT0Sz6DlTUhxklRUJ3zx4XWz9G fCjy0SKDAwThAIh43SFLunnKnv2IYi+Aq0vr0BDfCzR0DWZY5iFVHIQny22z1g2TzT/D P0OqCxre7y7B6B4e+BdJhIJut98pw4er/Taa2XYfqzWDPY9whzAgFR5/uW7n01utwuYJ hkwb2TAF7AnE481v92r1bN7VdlNacMo6e3z5i7WcUO6FwFZ9ObUtne+s+TCdLjHE2rYg DRrDmCv039yzRXPAY0icowOiSD5Qes9TtvjcjY2ai3+XQyZkT37EWUqFopJkoMek2AHF tiYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UrjYebrh; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o5si2663087plk.247.2022.01.24.16.18.43; Mon, 24 Jan 2022 16:18:55 -0800 (PST) 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UrjYebrh; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2373459AbiAYANz (ORCPT + 99 others); Mon, 24 Jan 2022 19:13:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1587648AbiAXX2Q (ORCPT ); Mon, 24 Jan 2022 18:28:16 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFB32C0A8877; Mon, 24 Jan 2022 13:33:16 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6DCD061305; Mon, 24 Jan 2022 21:33:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E4B6C340E4; Mon, 24 Jan 2022 21:33:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643059995; bh=yJKKoZqoeZsU/xnmPZ+NZhMnAgPh1Vr7l6l0WGRJ2cI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UrjYebrhZ/JIqN67oM6sWsi7TrcuQRgB/A1Zy54d2+CZkoW/kQZ8EzqAnjoYTfV5P 74kz1De7m0rESCJzU6hzLZCSotz7Y7e9o7cmK1LopjjS1RiVQhRnVVoHB3ggJDRsi+ hXdy3TpfDIVZEWSxc5DDAruCdi4+bC2MH5DPDWLg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Pali=20Roh=C3=A1r?= , Lorenzo Pieralisi , Sasha Levin Subject: [PATCH 5.16 0805/1039] PCI: mvebu: Fix support for PCI_EXP_DEVCTL on emulated bridge Date: Mon, 24 Jan 2022 19:43:14 +0100 Message-Id: <20220124184152.374674254@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Pali Rohár [ Upstream commit ecae073e393e65ee7be7ebf3fdd5258ab99f1636 ] Comment in Armada 370 functional specification is misleading. PCI_EXP_DEVCTL_*RE bits are supported and configures receiving of error interrupts. Link: https://lore.kernel.org/r/20211125124605.25915-14-pali@kernel.org Fixes: 1f08673eef12 ("PCI: mvebu: Convert to PCI emulated bridge config space") Signed-off-by: Pali Rohár Signed-off-by: Lorenzo Pieralisi Signed-off-by: Sasha Levin --- drivers/pci/controller/pci-mvebu.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/pci/controller/pci-mvebu.c b/drivers/pci/controller/pci-mvebu.c index aaf6a226f6dba..0052e83c95de9 100644 --- a/drivers/pci/controller/pci-mvebu.c +++ b/drivers/pci/controller/pci-mvebu.c @@ -498,9 +498,7 @@ mvebu_pci_bridge_emul_pcie_conf_read(struct pci_bridge_emul *bridge, break; case PCI_EXP_DEVCTL: - *value = mvebu_readl(port, PCIE_CAP_PCIEXP + PCI_EXP_DEVCTL) & - ~(PCI_EXP_DEVCTL_URRE | PCI_EXP_DEVCTL_FERE | - PCI_EXP_DEVCTL_NFERE | PCI_EXP_DEVCTL_CERE); + *value = mvebu_readl(port, PCIE_CAP_PCIEXP + PCI_EXP_DEVCTL); break; case PCI_EXP_LNKCAP: @@ -590,13 +588,6 @@ mvebu_pci_bridge_emul_pcie_conf_write(struct pci_bridge_emul *bridge, switch (reg) { case PCI_EXP_DEVCTL: - /* - * Armada370 data says these bits must always - * be zero when in root complex mode. - */ - new &= ~(PCI_EXP_DEVCTL_URRE | PCI_EXP_DEVCTL_FERE | - PCI_EXP_DEVCTL_NFERE | PCI_EXP_DEVCTL_CERE); - mvebu_writel(port, new, PCIE_CAP_PCIEXP + PCI_EXP_DEVCTL); break; -- 2.34.1