Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1991012imu; Fri, 14 Dec 2018 04:10:24 -0800 (PST) X-Google-Smtp-Source: AFSGD/WvRP9PQf7j7APmDQPGNzU9BpLW5tVd4KJPYEdFDZv5m7MSCXMZzMlIQNHGRcMiEDPPcEk+ X-Received: by 2002:a17:902:d697:: with SMTP id v23mr2572518ply.261.1544789424789; Fri, 14 Dec 2018 04:10:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544789424; cv=none; d=google.com; s=arc-20160816; b=lkOP8ARfYt3q0D9031J989rA6Aqk6KP2gc4Tep5vLj9OzaLn62jKR+0LABdf+/bWrE iOWvjuMp6EY7i4OyVsrYFf0MMgFuya7j8MFUyVdltTKg13NISvJfXzmrEzVHVFGBLZ0L 31kcq2LWYQ0gAh8pNeBRp7HJpBV2TYpWhNNoWtALjTbCq7SCEVmCKqfdsHXWZBK6YKXw ioo9QBrnsDeGjJLT3fk7bSi9PVsmtIms5mRrVOtxvF9a/ESv5knNigAEOi3b4aFmZbar KsjQPgzVhQLW9lH/pGZzLt6UMJHewm6HuDj0TmCk/k5j/zUlOWPlxdtBo3QH5xTi6RTF oIZw== 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=KK+5JGXmpTJhc9veiPqNxBQBV+Ve8ejIa5mzo8MAaQw=; b=YT2Ge0YY1tPtm7maGxmyevvKlJvW1/omM7mlLGyy/QC0luMoUB6IoWU1jgRcU2DzgY 7/wTiFkwuj1/U2+rJS+ddv1rVAI3OblPHbTHRAhr39Euv82QBKb9UgX087vcN/9+rs7J YPX95+4i9hc33lELue6LhzBlHgmuKGs0KcOczprtID1eI0BFrLBvIyVcPKP0xni6QpIU VWuO2u6JyP8/Jm/w60UjZ97uka0behtuizEeyM2R5stEo0f12XUJhEqLtnY5Fb7V+w51 taPaDJrr5okthDubFcBJJ0sjNtlro6P/PIIzELQXmm4WhZfgVLSPu8t9S68PPt/wDGmK SkHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jodhiOwN; 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 d8si3893457pgh.505.2018.12.14.04.10.06; Fri, 14 Dec 2018 04:10:24 -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=jodhiOwN; 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 S1731437AbeLNMJV (ORCPT + 99 others); Fri, 14 Dec 2018 07:09:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:54984 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731093AbeLNMJR (ORCPT ); Fri, 14 Dec 2018 07:09:17 -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 6F6BC214C4; Fri, 14 Dec 2018 12:09:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544789356; bh=/S3ssEe52RpyDnGd1tiPJ09QRa5Ip+owtH1d2bGhIgQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jodhiOwNjr7KIeszENgn6+SeV7d7unqLC7gKwXy9HDbO2ECZL546U2wssJH6DJBU7 seFRK3e/RyfG7nXWOAfsgO5PicBcbczRGs6EAn2071g+cpe69VH9GeXYgGFB3zRFiL J/w8bznEWq9k2rngEI5A+vG6VBLedierG3YXTPPo= 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.14 51/89] USB: omap_udc: fix rejection of out transfers when DMA is used Date: Fri, 14 Dec 2018 13:00:04 +0100 Message-Id: <20181214115732.199524433@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181214115729.658859279@linuxfoundation.org> References: <20181214115729.658859279@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.14-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 c8facc8aa87e..ee0b87a0773c 100644 --- a/drivers/usb/gadget/udc/omap_udc.c +++ b/drivers/usb/gadget/udc/omap_udc.c @@ -2661,6 +2661,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