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 7C50A10EF; Thu, 30 Nov 2023 16:34:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="1JOqwQa4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07D35C433C8; Thu, 30 Nov 2023 16:34:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1701362047; bh=wXbXpoAEi8Br9V0Vc94b8NAIjxIF6Ew3aVdYB8o+Nbo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1JOqwQa4f1PLMQ/eK2oEXMeIgBVQ4PSgvnRvd6sNEJHQzkMhEiKy6UDMzpOLIRz3X 6lj+dMAPw7fqC5ws90Wr3jUbv6WeXg2UhRGnquGJniSaiBofdjbmctiiDAy78ciCsi 8JjeIyd3Ryui1xS6JIDXqUicWA9SNdI9aXuqFrgc= 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 5.15 66/69] usb: dwc3: set the dma max_seg_size Date: Thu, 30 Nov 2023 16:23:03 +0000 Message-ID: <20231130162135.234165329@linuxfoundation.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231130162133.035359406@linuxfoundation.org> References: <20231130162133.035359406@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 5.15-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 @@ -1701,6 +1701,8 @@ static int dwc3_probe(struct platform_de pm_runtime_put(dev); + dma_set_max_seg_size(dev, UINT_MAX); + return 0; err5: