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 CF76317AA6 for ; Wed, 9 Aug 2023 11:29:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52707C433C7; Wed, 9 Aug 2023 11:29:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1691580558; bh=bZIvzwKkigPDcqHQP0OXwQXeor4gMnFmhG/xzXua6Z0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yoBX9glu4oyOKefUa6h+pXu5p4l3njkhQEvyPrGARH1tgY3u5fkAaShwyVDGC/FF0 c752Ci866I0SKUrlO/JEIYt9QxBwZEy6s0Ld2sdCFuOENGb9ISAKz+rdbOKcHRzTiL gSLUSQLusW60AHXIDE3ITpltVXZQzSb84uHIj04Y= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, stable , Zubin Mithra , Ricardo Ribalda Subject: [PATCH 5.4 067/154] usb: xhci-mtk: set the dma max_seg_size Date: Wed, 9 Aug 2023 12:41:38 +0200 Message-ID: <20230809103639.207237511@linuxfoundation.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230809103636.887175326@linuxfoundation.org> References: <20230809103636.887175326@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Ricardo Ribalda commit 9fd10829a9eb482e192a845675ecc5480e0bfa10 upstream. Allow devices to have dma operations beyond 64K, and avoid warnings such as: DMA-API: xhci-mtk 11200000.usb: mapping sg segment longer than device claims to support [len=98304] [max=65536] Fixes: 0cbd4b34cda9 ("xhci: mediatek: support MTK xHCI host controller") Cc: stable Tested-by: Zubin Mithra Reported-by: Zubin Mithra Signed-off-by: Ricardo Ribalda Link: https://lore.kernel.org/r/20230628-mtk-usb-v2-1-c8c34eb9f229@chromium.org Signed-off-by: Greg Kroah-Hartman --- drivers/usb/host/xhci-mtk.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/usb/host/xhci-mtk.c +++ b/drivers/usb/host/xhci-mtk.c @@ -540,6 +540,7 @@ static int xhci_mtk_probe(struct platfor } device_init_wakeup(dev, true); + dma_set_max_seg_size(dev, UINT_MAX); xhci = hcd_to_xhci(hcd); xhci->main_hcd = hcd;