Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EC8884ABBDB; Thu, 17 Sep 2026 19:00:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789671613; cv=none; b=fyaL+froqAambZTpZgK+YhyBc279YSxpHAymoAvxS+piBXziOXD15fd5V8I9sgKcNQsZdLvuHUDItqNESJnRJayiffxR4gQoV8ZgukJvXMYAJad3Z2Kcf8bRpvdLTpT3+qXqA6GURWYSQ6vnMqY5iqdG31jHpsTcA8+yPlELOrM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789671613; c=relaxed/simple; bh=+nti+/phObLL4HTaikqASwKLqXAPNEc6Br4myV//5yM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=eu2VroN6bOad8OP/A8GiyEoSkm2SN+f0CjJAvj8TLcRhe02i0d27Z2oiPeeFk8xhbEGeG9b3Cm+Xf4j9LHruDLPQ2bVnk1AcYu0PyFUKD52E2Pmrd94ii0iLaDMcP6XziCV1jJi4lfCQNm4iffZznxIj8/4mNjYcjiWgyJ84cxM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JhkUMcqZ; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="JhkUMcqZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 510B71F000FF; Thu, 17 Sep 2026 19:00:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789671611; bh=Ti9BPjeetrl+xebrgeafiOEcIVpVXoxy0zhuaQRTymM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=JhkUMcqZgDZb6cOArNhv/5JvAl0jTsYcHfMKqF57PugnWH6Xl4X4zfSFxgc8hbJ6S PVyITGyHz4GimNQxgJUwhW04ktOoQnbREf1DPzuF541pYnvswUHtPtbQh29ksNVafX lu6sKK6/FbzxY5TmouOVqbqkO6tzK8WSBKYRnQHk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Terry Bowman , Alejandro Lucero , Dave Jiang , Jonathan Cameron , Dan Williams , Sasha Levin Subject: [PATCH 6.12 1006/1102] cxl/pci: Remove unnecessary CXL RCH handling helper functions Date: Thu, 17 Sep 2026 16:15:49 +0100 Message-ID: <20260917151605.999340520@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260917151539.408551884@linuxfoundation.org> References: <20260917151539.408551884@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Terry Bowman [ Upstream commit eb78ef4d6f0e51243c1ee117f801dbc503e886ab ] cxl_handle_rdport_cor_ras() and cxl_handle_rdport_ras() are specific to Restricted CXL Host (RCH) handling. Improve readability and maintainability by replacing these and instead using the common cxl_handle_cor_ras() and cxl_handle_ras() functions. Signed-off-by: Terry Bowman Reviewed-by: Alejandro Lucero Reviewed-by: Dave Jiang Reviewed-by: Jonathan Cameron Reviewed-by: Dan Williams Link: https://patch.msgid.link/20260114182055.46029-6-terry.bowman@amd.com Signed-off-by: Dan Williams Signed-off-by: Dave Jiang Stable-dep-of: 29458e62d082 ("cxl/ras: Fix cxl_rch_get_aer_info() out-of-bounds AER register read") Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/cxl/core/pci.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) --- a/drivers/cxl/core/pci.c +++ b/drivers/cxl/core/pci.c @@ -797,18 +797,6 @@ void cxl_dport_init_ras_reporting(struct } EXPORT_SYMBOL_NS_GPL(cxl_dport_init_ras_reporting, CXL); -static void cxl_handle_rdport_cor_ras(struct cxl_dev_state *cxlds, - struct cxl_dport *dport) -{ - return cxl_handle_cor_ras(cxlds, dport->regs.ras); -} - -static bool cxl_handle_rdport_ras(struct cxl_dev_state *cxlds, - struct cxl_dport *dport) -{ - return cxl_handle_ras(cxlds, dport->regs.ras); -} - /* * Copy the AER capability registers using 32 bit read accesses. * This is necessary because RCRB AER capability is MMIO mapped. Clear the @@ -878,9 +866,9 @@ static void cxl_handle_rdport_errors(str pci_print_aer(pdev, severity, &aer_regs); if (severity == AER_CORRECTABLE) - cxl_handle_rdport_cor_ras(cxlds, dport); + cxl_handle_cor_ras(cxlds, dport->regs.ras); else - cxl_handle_rdport_ras(cxlds, dport); + cxl_handle_ras(cxlds, dport->regs.ras); } #else