Message ID | 20230628-mtk-usb-v2-1-c8c34eb9f229@chromium.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 86B2AC001B0 for <linux-mediatek@archiver.kernel.org>; Wed, 19 Jul 2023 13:01:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:Message-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=ZUn3qzGm6xqqej4OZuBEBV3n0Emxu1ym1jKr3YxBxt4=; b=AN+r8VA4g6sjW6odJN1hjtjR3E zVgS3Twm7lR8oVdKK+8WWbIWlAX4gP/tAPzqzN2XUsBZrHg+J1WK0xidVhNOYZaB0mrheyZlWGXMI MiQvv4R2kb47vEHD5SIOoNyjQUcL3B1Vzon2zBrVZdQ3TNNKLFaNfCUus5/4T0H3v5wl1jJN240K5 WfWRNdHXUqWRaKDBscxSC4mDr3xTnOJhCuAyWiGLDbExciSv7JLvxxfjrHKuYDy8AhAQIMStMu4pE +NHMoMENbnhoKi3pFkMM2T9UTn17OfzIG9zAEpmkS7tQnGPOBqCOO91zBlp64OqDD/ybAXF8M+vHi 4hb+k7VQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qM6np-007UlH-14; Wed, 19 Jul 2023 13:01:13 +0000 Received: from mail-qv1-xf29.google.com ([2607:f8b0:4864:20::f29]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qM6nl-007UiI-2c for linux-mediatek@lists.infradead.org; Wed, 19 Jul 2023 13:01:12 +0000 Received: by mail-qv1-xf29.google.com with SMTP id 6a1803df08f44-635e54e22d6so45994006d6.2 for <linux-mediatek@lists.infradead.org>; Wed, 19 Jul 2023 06:01:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689771667; x=1692363667; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=ZUn3qzGm6xqqej4OZuBEBV3n0Emxu1ym1jKr3YxBxt4=; b=hU8V/od2QY8c+fSMdHe85MqiGDgF7cVBfeGLOrDxOOR1mstuMVkcCrZG8llbYpVQ32 nBwQuITTlkeOLqkM0YcXxVwKcYCXWTmkBVgOEw5CpcaarUG73z9ehOUm/99k3+C7B18q N/1jpOjF3F8cJgBH+Ydcuz/Z3yWAF5htgVBVc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689771667; x=1692363667; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZUn3qzGm6xqqej4OZuBEBV3n0Emxu1ym1jKr3YxBxt4=; b=LoRc1l4ojJYLSGFKptwatMN1E0VVJ4TXIZsomIlu43bSG/fwavcjvNNZefrZPbJzkg QwOW+pqRrvcUqEutaZKEzHAlhSKhnJcdWylmqXReOX9kPdQmIOm4rnB0bqzbYcFWgTQi BSQKJgRL94G59k0lQQPqbyYOeB1VvL3OQbYIscrEmBqKDo3VFjB+fniC0MUfjnEynWlw A3TrLTCTD5nJ8iy1e7tcu0BFnQdId/8RbNL36uggFT8uJeaTFZZgku2X8iA4ma/6VOnp 3+0XZZkdbz1NWqKcn5Q+41hkEEeIrnL1TKhIXM9fWBtoqhL/IHqh6xnA6RMmKA4m8xDN ySkg== X-Gm-Message-State: ABy/qLYnQ8Ill9lDgH3K/bDXB2G+bmJTTnyDB/n9kCB/5OgP0GyzzCqI pOH/S4t239gmRSDAU65Ri7catg== X-Google-Smtp-Source: APBJJlFJ/uUoPyBlB6eF2HjrBIvLmfBkIFeJEBs7aqFiM09haYrQ7eLtRuzcLk4otJh+fisg3cOCDQ== X-Received: by 2002:a0c:e08b:0:b0:632:207d:b834 with SMTP id l11-20020a0ce08b000000b00632207db834mr2381913qvk.58.1689771665612; Wed, 19 Jul 2023 06:01:05 -0700 (PDT) Received: from denia.c.googlers.com (122.213.145.34.bc.googleusercontent.com. [34.145.213.122]) by smtp.gmail.com with ESMTPSA id l18-20020a0c9792000000b006379c3f7895sm1453255qvd.52.2023.07.19.06.01.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 06:01:05 -0700 (PDT) From: Ricardo Ribalda <ribalda@chromium.org> Date: Wed, 19 Jul 2023 13:01:04 +0000 Subject: [PATCH v2] usb: xhci-mtk: set the dma max_seg_size MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230628-mtk-usb-v2-1-c8c34eb9f229@chromium.org> X-B4-Tracking: v=1; b=H4sIAI/et2QC/2WNQQ6CMBBFr0Jm7ZhSBIWV9zAsOqXQRmjNFIiGc HcrW5fv5ef9DaJhZyI02QZsVhdd8AnkKQNtlR8Mui4xSCELUckbTvMTl0hIvRBl3VcX6q6Q1qS iQWLltU17v4xjki82vXsf+Ueb2Lo4B/4cb2v+s//hNcccC12SNKroKqrv2nKY3DKdAw/Q7vv+B XzkU/a2AAAA To: Chunfeng Yun <chunfeng.yun@mediatek.com>, Mathias Nyman <mathias.nyman@intel.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Matthias Brugger <matthias.bgg@gmail.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Cc: linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Zubin Mithra <zsm@chromium.org>, Ricardo Ribalda <ribalda@chromium.org>, Ricardo Ribalda Delgado <ribalda@chromium.org> X-Mailer: b4 0.12.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230719_060109_869172_3B4E5146 X-CRM114-Status: GOOD ( 11.16 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-mediatek.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mediatek>, <mailto:linux-mediatek-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-mediatek/> List-Post: <mailto:linux-mediatek@lists.infradead.org> List-Help: <mailto:linux-mediatek-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mediatek>, <mailto:linux-mediatek-request@lists.infradead.org?subject=subscribe> Sender: "Linux-mediatek" <linux-mediatek-bounces@lists.infradead.org> Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org |
Series |
[v2] usb: xhci-mtk: set the dma max_seg_size
|
expand
|
diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c index 51d9d4d4f6a5..bbdf1b0b7be1 100644 --- a/drivers/usb/host/xhci-mtk.c +++ b/drivers/usb/host/xhci-mtk.c @@ -586,6 +586,7 @@ static int xhci_mtk_probe(struct platform_device *pdev) } device_init_wakeup(dev, true); + dma_set_max_seg_size(dev, UINT_MAX); xhci = hcd_to_xhci(hcd); xhci->main_hcd = hcd;