From patchwork Thu May 4 11:35:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 13231066 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 03E9AC77B7C for ; Thu, 4 May 2023 11:36:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=RzbHlvrTko3T4EMbEr0Y8NOr3wx/GWyT67qdqNTtLtk=; b=thx77B/83+0g2Y xJOpeonlIdWs3Oa9m98HrSd8rIRXNvmMEWsUW+gUzqUVT+Ni0eS6BZYGemM0bb2SBVySoz95gzd24 CSkvCE77AsbkjQZp25ST5Rw/1LMNqLw2lY/XrB+w9+Vot7qI7303zjb+7ME7K4vYxDr1WMw5OKgBP sEd/bNPwaLqoJ25ARfWDAUkZ+gp0R5QCbArTwpCX/B5cwjaDWnB2D00KUNnmLtCKCqlhqFAbXyE5W KGFjU2QTElyBkVISzmk2ljiYTGT7B10WYD9ZSEXgUk2ckVvR37SSPCrkQKxlpaVkKfG7A8Lty4Iog BFGbSFiTNFkBbWU7FyFw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1puXFB-007fgf-1i; Thu, 04 May 2023 11:35:29 +0000 Received: from madras.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e5ab]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1puXF4-007fcy-21; Thu, 04 May 2023 11:35:24 +0000 Received: from IcarusMOD.eternityproject.eu (unknown [IPv6:2001:b07:2ed:14ed:c5f8:7372:f042:90a2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id A117F66031D7; Thu, 4 May 2023 12:35:15 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1683200116; bh=1NMvcGiXphJ8FhyetkrltYkSY2U0NjU1T6zPshhG/DI=; h=From:To:Cc:Subject:Date:From; b=Cyu4RsQ5vbnTn1GOCVrF9dpVrpJ2iP4P5L2sHjYetT6uTK9OohIFOkKk+5TaAmTSw WKYfxpcLiZBqlOcuHG59K4ltBDH3yR/QrzROBvAyqIHOIYpZ5hDwbrBYjuBEWeioSx yAHlYQdbIuxFMBX/yt/HeaMWPfoYUOx94OEb24SVWCk26MhHnswfqzLeD6pVROYac8 65zOPsnSK1g6ZNo7YWEaUpXvfJ5VLvI+JdOkgg1fu+6YP6Pshss1/Z70R3MQX+TrBr 7p5GsAkgwckBnC51XzIRGXxA38Z2iZw7X/EKq0xM2XhSG3ubc5UDtGJ68q4t2QP9Zb tsQPqnPBY8VeA== From: AngeloGioacchino Del Regno To: ryder.lee@mediatek.com Cc: jianjun.wang@mediatek.com, lpieralisi@kernel.org, kw@linux.com, robh@kernel.org, bhelgaas@google.com, p.zabel@pengutronix.de, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, linux-pci@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 0/2] MediaTek PCIe Gen3: Suspend fixes Date: Thu, 4 May 2023 13:35:07 +0200 Message-Id: <20230504113509.184633-1-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230504_043522_813098_0C9A63BD X-CRM114-Status: UNSURE ( 5.87 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series fixes PM suspend/resume for MediaTek PCIe Gen3, seen on the MT8195 Tomato Chromebook, which would deadlock at resume. Tested on a MT8195 Tomato Chromebook. AngeloGioacchino Del Regno (2): PCI: mediatek-gen3: Stop acquiring spinlocks in {suspend,resume}_noirq PCI: mediatek-gen3: Assert MAC reset only if PHY reset also present drivers/pci/controller/pcie-mediatek-gen3.c | 33 +++++++++++---------- 1 file changed, 17 insertions(+), 16 deletions(-)