From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5CB3E2DC34C; Tue, 8 Jul 2025 16:45:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751993155; cv=none; b=cf3IfxsNpuTLaC/pDYHo9vIrfqchas2ncybshU8m/YgvDVwlnqfn2GD1JvySCVPRzpoqKMXllCSxIAc2B5fKHdle5IMuXyoJLKuIT5kl6uZbAIZzawDh+5ymNCTBi8TDyFQ7SGwwbb2SZEJ6xCVr8I2MTNEXkoJHzKtpSwdnLOA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751993155; c=relaxed/simple; bh=YMXQn5wA6wbpp7GquPekJGIZiLvJzy470MYvwVIRPqQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LdywDyTh/n1LNAaeRCDGqI4TH+ISJRHdYsAWp0KsmdddLoIv/T43M4Ve9xVRVzyfyE/fNE+KjrwTbs5x9Knn8NFavtcfAJE92sDH/o5CM86uJVT3rQDMU3YOy1woFjvESLmI1K5ZMGjeaJcAU8axB472xSz/Osb3nOQPkdRAPGg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SY2a+Al+; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="SY2a+Al+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84F4BC4CEED; Tue, 8 Jul 2025 16:45:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751993154; bh=YMXQn5wA6wbpp7GquPekJGIZiLvJzy470MYvwVIRPqQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SY2a+Al+Ad+0TotYKkOj6dYIdOKYeGzPemWtLLUMf9rYYTQuRJBNE1Q2kulznZ5B3 VW5Vdfb6SOeVooqtc6ZrxVwrVhxrM5SyTH09HpAnpUBlRty57W4TQ/IyQwz5t8hzT8 GMSejv89sTgNgOtHDtkfxgarPZUuwtGOZjEJ8+C8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, stable , Hongliang Yang , Fugang Duan , Peter Chen Subject: [PATCH 6.12 207/232] usb: cdnsp: do not disable slot for disabled slot Date: Tue, 8 Jul 2025 18:23:23 +0200 Message-ID: <20250708162246.854333003@linuxfoundation.org> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250708162241.426806072@linuxfoundation.org> References: <20250708162241.426806072@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org 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: Peter Chen commit 7e2c421ef88e9da9c39e01496b7f5b0b354b42bc upstream. It doesn't need to do it, and the related command event returns 'Slot Not Enabled Error' status. Fixes: 3d82904559f4 ("usb: cdnsp: cdns3 Add main part of Cadence USBSSP DRD Driver") Cc: stable Suggested-by: Hongliang Yang Reviewed-by: Fugang Duan Signed-off-by: Peter Chen Link: https://lore.kernel.org/r/20250619013413.35817-1-peter.chen@cixtech.com Signed-off-by: Greg Kroah-Hartman --- drivers/usb/cdns3/cdnsp-ring.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/drivers/usb/cdns3/cdnsp-ring.c +++ b/drivers/usb/cdns3/cdnsp-ring.c @@ -772,7 +772,9 @@ static int cdnsp_update_port_id(struct c } if (port_id != old_port) { - cdnsp_disable_slot(pdev); + if (pdev->slot_id) + cdnsp_disable_slot(pdev); + pdev->active_port = port; cdnsp_enable_slot(pdev); }