Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757770AbbGGOHs (ORCPT ); Tue, 7 Jul 2015 10:07:48 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:49851 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757633AbbGGOFT (ORCPT ); Tue, 7 Jul 2015 10:05:19 -0400 X-AuditID: cbfee61b-f79416d0000014c0-4b-559bdc9dccd5 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 4/5] staging: emxx_udc: add missing usb_ep_set_maxpacket_limit() Date: Tue, 07 Jul 2015 16:02:52 +0200 Message-id: <1436277773-14274-5-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+NgFnrALMWRmVeSWpSXmKPExsVy+t9jQd25d2aHGqxermQx62U7i8XB+/UW O+fuY7XYc+YXu0Xz4vVsFnemTWKyeDRzMovFpsfXWC0u75rDZrFoWSuzxdojd9ktFhxvYbX4 drmZ3eLB4Z3sFi0nHrFZ9J3axGyx5v5HJgdBjwW/trJ43Nt3mMVj56y77B77565h99i8pN5j 3Z9XTB67T7N69G1Zxehx/MZ2Jo/Pm+Q8dmy/yB7AHcVlk5Kak1mWWqRvl8CVMfn0D7aCR2wV Pz9/YWtgfMjaxcjJISFgIvFq4Vd2CFtM4sK99WxdjFwcQgLTGSW6/85hgnB+MkosOfaGDaSK TUBHYsv3CYwgtgiQve7vDrAOZoHpzBKvNkxjAUkICwRIrNiyASjBwcEioCqxbXkOSJhXwFVi zocXTBDb5CROHpsMdgWngJvE3KmzGUHKhYBqVm52nMDIu4CRYRWjaGpBckFxUnqukV5xYm5x aV66XnJ+7iZGcLg/k97BuKrB4hCjAAejEg/vTYnZoUKsiWXFlbmHGCU4mJVEeN+cBArxpiRW VqUW5ccXleakFh9ilOZgURLnPZnvEyokkJ5YkpqdmlqQWgSTZeLglGpgnJTSw3RKnfHV4a9z tRM11dzP2CzS2CEodM+55qbjvD0sKyxviCl58n7vUOSRPetpWZKj+l54OWvRz3UX15V+4WAz XdX9UDm1v8Kn9Fb0/Ng/J+5weRcYVi7wN2nKsdH5EriLzbTDXrx3isaSG+88Z7F2Tnuz8FnZ Zf288uol7zgPqzzX/3hZiaU4I9FQi7moOBEAYoPntXMCAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1086 Lines: 30 Should use usb_ep_set_maxpacket_limit instead of setting maxpacket value manually. Signed-off-by: Robert Baldyga --- drivers/staging/emxx_udc/emxx_udc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc.c index 4178d96..f50bf5d 100644 --- a/drivers/staging/emxx_udc/emxx_udc.c +++ b/drivers/staging/emxx_udc/emxx_udc.c @@ -3203,7 +3203,8 @@ static void __init nbu2ss_drv_ep_init(struct nbu2ss_udc *udc) ep->ep.name = gp_ep_name[i]; ep->ep.ops = &nbu2ss_ep_ops; - ep->ep.maxpacket = (i == 0 ? EP0_PACKETSIZE : EP_PACKETSIZE); + usb_ep_set_maxpacket_limit(&ep->ep, + (i == 0 ? EP0_PACKETSIZE : EP_PACKETSIZE)); list_add_tail(&ep->ep.ep_list, &udc->gadget.ep_list); INIT_LIST_HEAD(&ep->queue); -- 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/