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 0F4EA524C2; Thu, 30 Nov 2023 16:28:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="cMRbTIWg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91DD9C433C7; Thu, 30 Nov 2023 16:27:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1701361679; bh=3TOJfsLcmGjwUwYN6VPMRcm5gBkjCcW4WMQbb8pLg44=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cMRbTIWgerpxDFNhXpYEBBw4k4Ac5YyLu+eloOdUYMMvlnoV18Hz1Q7VvnJbyLJhm 85zehjEQ/8FWEUMF1xCUQ2tdQ/2H8Xa4d50QSFtyWf2t22aNCyNe/jdBWf1yUxpLK4 JqmlcF/MmdI+pOqnjnP7k61Ue4vNVKrMJWpzxcCw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Zubin Mithra , Ricardo Ribalda , Thinh Nguyen Subject: [PATCH 6.6 110/112] usb: dwc3: set the dma max_seg_size Date: Thu, 30 Nov 2023 16:22:37 +0000 Message-ID: <20231130162143.770432798@linuxfoundation.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231130162140.298098091@linuxfoundation.org> References: <20231130162140.298098091@linuxfoundation.org> User-Agent: quilt/0.67 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.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ricardo Ribalda commit 8bbae288a85abed6a1cf7d185d8b9dc2f5dcb12c upstream. Allow devices to have dma operations beyond 4K, and avoid warnings such as: DMA-API: dwc3 a600000.usb: mapping sg segment longer than device claims to support [len=86016] [max=65536] Cc: stable@vger.kernel.org Fixes: 72246da40f37 ("usb: Introduce DesignWare USB3 DRD Driver") Reported-by: Zubin Mithra Signed-off-by: Ricardo Ribalda Acked-by: Thinh Nguyen Link: https://lore.kernel.org/r/20231026-dwc3-v2-1-1d4fd5c3e067@chromium.org Signed-off-by: Greg Kroah-Hartman --- drivers/usb/dwc3/core.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -2006,6 +2006,8 @@ static int dwc3_probe(struct platform_de pm_runtime_put(dev); + dma_set_max_seg_size(dev, UINT_MAX); + return 0; err_exit_debugfs: