Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2023844imu; Fri, 14 Dec 2018 04:40:43 -0800 (PST) X-Google-Smtp-Source: AFSGD/WFeNNQnImjdJCFuak5NRPk+4GRS4+/YtBtjigqFce+IKRTLPBFTvR/nt9DhkVC67OYZEcu X-Received: by 2002:a63:6ecf:: with SMTP id j198mr2642676pgc.3.1544791243225; Fri, 14 Dec 2018 04:40:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544791243; cv=none; d=google.com; s=arc-20160816; b=L91r5+JVS4K5jfpEFD4xUqMTRhp7wmePbvHVXKEXa1Abn4v2/wXv/1WdO3gctTBBaj lkizqC6BhMTx/KIA7rKjgmm/UFi2mma2wUC039VhTDw7AhUtX0gBZurYdNSfR3uPLQLa i6bRRh7a+T8BiZJcKhoxaT20vPEFF+xmmOgl92bDRP/C1MLxpWf5pXLWJalE63uZ+eLQ dNi3yfS20DhfX25b5veZSNdZdYrrIDN3okAAUClQ53a59RFJw0i1HPx6TybzdC9cAXvR lNfr2j+tiFeV73KdNB1HT1xAOg9V4F0v2S9Z2ZzeQcwHOdyIEZIq1yZDUA/qNq7pHexb pabg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=dX5zl/LK6aErFKT4rfXn9Ur64nxaV93MmtQM5MhBJFE=; b=D8onq/ELN/exN40CjM/l+WAz8r0+8wAgwL9JYOuztBwIr8Ba68wxm8EDGa2TgFbd2u YJ5ECK9N9F3/5LEXX44/mXecLADFiqaOs424hw8V08oc3pyvLsR5Y4X99hCJ32Oa6BXU PTKoaHJimJzBeiDbspAuxKj1gzdysHrTwd4Gf/iSVBZtlt/1WWuH5lrm8lhDCgXmKi9k QWzi3gu4KV0K2uwuIOhc3nJGKaRT2ydmQJ3UB0Q/A5/VEBCUBclzSt7tXGGZtzz+ETbT zH2IYRAhfa/Fis8XUJaWkTtixCEUVe6GcRL6JlInQ3WMrwIKe+83IGeAiZx/ZPOMeGbJ 9e6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sx4Y6OQx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f124si4366654pfa.1.2018.12.14.04.40.28; Fri, 14 Dec 2018 04:40:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sx4Y6OQx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730323AbeLNMji (ORCPT + 99 others); Fri, 14 Dec 2018 07:39:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:49562 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730577AbeLNMEt (ORCPT ); Fri, 14 Dec 2018 07:04:49 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1A7B1214C4; Fri, 14 Dec 2018 12:04:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544789088; bh=m/xhKAo0rVFKvhVuT/kKQPArkV7uebYGGST+W+tYX0k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sx4Y6OQxwfOKvLOMrqJtdJ5tNqPcSji28cKwbSVRMNQri3jrXAEFKRN/Ef6oN80ZD IZ5mr6udH5N6loefEfiPiB5Cwqe8/FlJRp8Jboy5OCA8NNmR0bRTFyh/gqQR1Usqlh 8dnNgkEChR+lcjzEFlG6Q+4vsUQwpYlxqW3pP1TI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Aaro Koskinen , Felipe Balbi , Sasha Levin Subject: [PATCH 4.19 089/142] USB: omap_udc: fix rejection of out transfers when DMA is used Date: Fri, 14 Dec 2018 12:59:34 +0100 Message-Id: <20181214115750.613076910@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181214115747.053633987@linuxfoundation.org> References: <20181214115747.053633987@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 069caf5950dfa75d0526cd89c439ff9d9d3136d8 ] Commit 387f869d2579 ("usb: gadget: u_ether: conditionally align transfer size") started aligning transfer size only if requested, breaking omap_udc DMA mode. Set quirk_ep_out_aligned_size to restore the old behaviour. Fixes: 387f869d2579 ("usb: gadget: u_ether: conditionally align transfer size") Signed-off-by: Aaro Koskinen Signed-off-by: Felipe Balbi Signed-off-by: Sasha Levin --- drivers/usb/gadget/udc/omap_udc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/udc/omap_udc.c b/drivers/usb/gadget/udc/omap_udc.c index 9b23e04c8f02..fcf13ef33b31 100644 --- a/drivers/usb/gadget/udc/omap_udc.c +++ b/drivers/usb/gadget/udc/omap_udc.c @@ -2642,6 +2642,7 @@ omap_udc_setup(struct platform_device *odev, struct usb_phy *xceiv) udc->gadget.speed = USB_SPEED_UNKNOWN; udc->gadget.max_speed = USB_SPEED_FULL; udc->gadget.name = driver_name; + udc->gadget.quirk_ep_out_aligned_size = 1; udc->transceiver = xceiv; /* ep0 is special; put it right after the SETUP buffer */ -- 2.19.1