Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932154AbbGGOF1 (ORCPT ); Tue, 7 Jul 2015 10:05:27 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:39465 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757608AbbGGOFN (ORCPT ); Tue, 7 Jul 2015 10:05:13 -0400 X-AuditID: cbfee61a-f79516d000006302-75-559bdc97adcf From: Robert Baldyga To: gregkh@linuxfoundation.org, balbi@ti.com Cc: nicolas.ferre@atmel.com, vinc94@gmail.com, hamohammed.sa@gmail.com, tapaswenipathak@gmail.com, roberta.dobrescu@gmail.com, hgujulan@visteon.com, chris@rorvick.com, mina86@mina86.com, andrzej.p@samsung.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, m.szyprowski@samsung.com, Robert Baldyga Subject: [PATCH 3/5] usb: isp1760: udc: add missing usb_ep_set_maxpacket_limit() Date: Tue, 07 Jul 2015 16:02:51 +0200 Message-id: <1436277773-14274-4-git-send-email-r.baldyga@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1436277773-14274-1-git-send-email-r.baldyga@samsung.com> References: <1436277773-14274-1-git-send-email-r.baldyga@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrPLMWRmVeSWpSXmKPExsVy+t9jQd3pd2aHGry/bGgx62U7i8XB+/UW O+fuY7XYc+YXu0Xz4vVsFnemTWKyeDRzMovFpsfXWC0u75rDZrFoWSuzxdojd9ktFhxvYbX4 drmZ3eLB4Z3sFi0nHrFZ9J3axGyx5v5HJgdBjwW/trJ43Nt3mMVj56y77B77565h99i8pN5j 3Z9XTB67T7N69G1Zxehx/MZ2Jo/Pm+Q8dmy/yB7AHcVlk5Kak1mWWqRvl8CV8eT5GdaCVewV 865JNjA2s3UxcnJICJhItK1vZYawxSQu3FsPFOfiEBKYziix+dVtZgjnJ6PE1PYDYFVsAjoS W75PYASxRYDsdX93gHUwC0xnlni1YRpLFyMHh7BAgMScVSwgNSwCqhK7Ll1kArF5BVwlfm1p gtomJ3Hy2GRWEJtTwE1i7tTZjCCtQkA1Kzc7TmDkXcDIsIpRNLUguaA4KT3XUK84Mbe4NC9d Lzk/dxMjONifSe1gXNlgcYhRgINRiYf3hsTsUCHWxLLiytxDjBIczEoivG9OAoV4UxIrq1KL 8uOLSnNSiw8xSnOwKInznsz3CRUSSE8sSc1OTS1ILYLJMnFwSjUw7hZbUMncPqVExn4b3/Z5 jBdalG/MC72+wf+AgmpVYakX98lTop4mBQ8m6zsFMM1PXcas6J7wKuPOVJ0p32R2FAYrVb7N WXxSyy4nUYfDlp9n0b52WbVX23TdS+ek9O7PvOZ0ZNfzG7ov4nP/9u0IE7+i4u5g21bz8Nzq /Z4+6rztK26dd9FQYinOSDTUYi4qTgQAvdLIGXICAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1154 Lines: 34 Should use usb_ep_set_maxpacket_limit instead of setting maxpacket value manually. Signed-off-by: Robert Baldyga --- drivers/usb/isp1760/isp1760-udc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/isp1760/isp1760-udc.c b/drivers/usb/isp1760/isp1760-udc.c index 18ebf5b1..3699962 100644 --- a/drivers/usb/isp1760/isp1760-udc.c +++ b/drivers/usb/isp1760/isp1760-udc.c @@ -1382,11 +1382,11 @@ static void isp1760_udc_init_eps(struct isp1760_udc *udc) * This fits in the 8kB FIFO without double-buffering. */ if (ep_num == 0) { - ep->ep.maxpacket = 64; + usb_ep_set_maxpacket_limit(&ep->ep, 64); ep->maxpacket = 64; udc->gadget.ep0 = &ep->ep; } else { - ep->ep.maxpacket = 512; + usb_ep_set_maxpacket_limit(&ep->ep, 512); ep->maxpacket = 0; list_add_tail(&ep->ep.ep_list, &udc->gadget.ep_list); } -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/