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 50A7854F96; Thu, 30 Nov 2023 16:31:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="oABXmtTa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D15DBC433C8; Thu, 30 Nov 2023 16:31:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1701361890; bh=AJn0BsB/nxFf1ZIb/++AHZtcLUFdVO6SwtrJrQNbBsQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oABXmtTaGZLXf0OmeMbl37N4iP7XLtkNficbnvmyN6ueGogjtBauGcEMO8ceSelAO jEzTRN3BE019N/UWi1yxBT2YJwZD9hKmEvek93UyThEEVmVNeISZ/t2yirs9TT09oG U2eM9I8SbJJTDY51chQN3JFRGptBG8o/tXwDjbfk= 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.1 79/82] usb: dwc3: set the dma max_seg_size Date: Thu, 30 Nov 2023 16:22:50 +0000 Message-ID: <20231130162138.498390767@linuxfoundation.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231130162135.977485944@linuxfoundation.org> References: <20231130162135.977485944@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.1-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 @@ -2036,6 +2036,8 @@ static int dwc3_probe(struct platform_de pm_runtime_put(dev); + dma_set_max_seg_size(dev, UINT_MAX); + return 0; err5: