Message ID | 1533265966-5766-1-git-send-email-yoshihiro.shimoda.uh@renesas.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-usb-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B45A6157D for <patchwork-linux-usb@patchwork.kernel.org>; Fri, 3 Aug 2018 03:14:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9D4E82C08D for <patchwork-linux-usb@patchwork.kernel.org>; Fri, 3 Aug 2018 03:14:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 90D952C08F; Fri, 3 Aug 2018 03:14:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7A9AB2C08E for <patchwork-linux-usb@patchwork.kernel.org>; Fri, 3 Aug 2018 03:14:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727581AbeHCFIS (ORCPT <rfc822;patchwork-linux-usb@patchwork.kernel.org>); Fri, 3 Aug 2018 01:08:18 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:6065 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726898AbeHCFIR (ORCPT <rfc822;linux-usb@vger.kernel.org>); Fri, 3 Aug 2018 01:08:17 -0400 Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie3.idc.renesas.com with ESMTP; 03 Aug 2018 12:14:05 +0900 Received: from relmlii2.idc.renesas.com (relmlii2.idc.renesas.com [10.200.68.66]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id 84A58808B7; Fri, 3 Aug 2018 12:14:05 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.51,437,1526310000"; d="scan'208";a="288698566" Received: from mail-os2jpn01lp0146.outbound.protection.outlook.com (HELO JPN01-OS2-obe.outbound.protection.outlook.com) ([23.103.139.146]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 03 Aug 2018 12:14:05 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jcH3P0Q3tj5EshD7MX6pw7DqHi9qiFxXS+B49JTPcd8=; b=PqZb3U5eb6/YAtISus5I3N61XVXGeMS/8DJmsJyrLuctYWrPWD2YlwtT/X/mVliEZCk2MPN03KK2H3EWQiiirpvLsycXFY0haLL8h4rlzgaBOxa1VQiLQrji8GkuxMGoYlqJSpod/Z3KVU0ytggtFwElDACQeHInrdYIRrPc/bA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=<>; Received: from localhost.localdomain (211.11.155.144) by OSBPR01MB2293.jpnprd01.prod.outlook.com (2603:1096:603:26::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1017.15; Fri, 3 Aug 2018 03:14:03 +0000 From: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> To: balbi@kernel.org Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-renesas-soc@vger.kernel.org, stable@vger.kernel.org, Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Subject: [PATCH] usb: gadget: udc: renesas_usb3: fix maxpacket size of ep0 Date: Fri, 3 Aug 2018 12:12:46 +0900 Message-Id: <1533265966-5766-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: KAWPR01CA0063.jpnprd01.prod.outlook.com (2603:1096:402:b::23) To OSBPR01MB2293.jpnprd01.prod.outlook.com (2603:1096:603:26::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3c68733a-f472-40eb-117c-08d5f8ef2a86 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(8559020)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:OSBPR01MB2293; X-Microsoft-Exchange-Diagnostics: 1;OSBPR01MB2293;3:JCCxYZ3Jrt/Vswcv0vf2xutJX/9jffgyeVaIsjTXISnlFEDfOc1Urda6aESt/tLzpyEnqzhkmIhgnbtTdhGJ0n/bjCnQS2THPKCQKmW0vSo+e7iHegCE8EbgTGe4s4yukWqOqkgOlMSUT6ZzfqhaiXuvkg3JemBlweYY1VOx1eYz2z3fzbhoIPP8KtSp+WY/HbfWkKYwg/fsMP/ld2aNBpKYN3Upq6Aud6nk+UaNBWOrciKLEQqLuygVo9btwn00;25:Ny8f/aeH7eWT0H9Vl1ntXX1dSYH4cAkXj+og1pMczN7xNBftm3Sgu0zWx3oRRvmxHzTut8GHxqPKr+dI8picLaMyx/TIOsKFpxj4Fpp6xHzuJ62Ni41eNAuVCjJFfK784/YoXVcACnMwPf/2jmEo/kKfPfVW17WstDEr22EytmL7otYHpfazSbv3Ms7lK8xbfxi93a3/7d9IjKh5zHJUSm6VOHJDhidbysk8KFzz6wyC0egUBi2MIYyYXuKfQZ54FCvsPPEqY2tkVU4KypHwjHHl2OlF+8nuWnoh3dkNwD56JLn58VpVUuicXy5yB7BQmKjLPWEhH4+rOw5+NWI01A==;31:nuvOJE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NDxgGWadloNVnuvpMbYtSfFNwGl91wRajJD92bYZwAImkKKk/ X-Microsoft-Antispam-PRVS: <OSBPR01MB22931D6BDD10E424C46B0044B8230@OSBPR01MB2293.jpnprd01.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(9452136761055); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3231311)(944501410)(52105095)(3002001)(93006095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061750153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011)(7699016);SRVR:OSBPR01MB2293;BCL:0;PCL:0;RULEID:;SRVR:OSBPR01MB2293; X-Forefront-PRVS: 0753EA505A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6069001)(39860400002)(136003)(366004)(396003)(346002)(376002)(189003)(199004)(81166006)(1857600001)(8936002)(6916009)(6666003)(2906002)(6512007)(5660300001)(3846002)(6116002)(50466002)(48376002)(36756003)(68736007)(97736004)(81156014)(2616005)(14444005)(476003)(486006)(42882007)(53936002)(50226002)(956004)(47776003)(66066001)(25786009)(78352004)(498600001)(107886003)(16526019)(386003)(16586007)(4326008)(6506007)(316002)(305945005)(7736002)(105586002)(2351001)(6486002)(2361001)(8676002)(106356001)(26005)(52116002)(51416003)(3720700003);DIR:OUT;SFP:1102;SCL:1;SRVR:OSBPR01MB2293;H:localhost.localdomain;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:0;A:0; Received-SPF: None (protection.outlook.com: localhost.localdomain does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: 1;OSBPR01MB2293;23:5i5BSL7U/3wdWmKFVudFszAvgZBsZE6J2vmy5Mj7XqjsXPgICcHHxvWBzzEoQTxan4HjOxVCgveOpYaDmoxTJcjTS1M6THThnSdSg0kHYtqWAjZhpb2Fp7aNUBgLKz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NFMCOrabXSUYCVdz7pGnT3NX3UghpoGvDj1akqVy9ouyeFYEzbM=;7:99o2Rp8AqvUD2iqot+xocicpf1TJDsP5D8HviHbidh8ct4tBIZIn78Wx9/oa44xsmy06rF32V3mp+eybIaMUZbTKA7HlcFBn4pUEeakSziS++NjGZIOMmpWf9LvGXiVnl57OnKuf3Y3qeX6Zsai2qilYjS+IiBZWGhGkzALyEzlYdQTMPR/0Pfc9HAOqrjVm6cbmXbacJNI60Ff8jScKYkRpip/1mskwpPZKTikw0p3DtE2zieCXO5RHeJoB9jPP SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;OSBPR01MB2293;20:PWSg6r6e6iec40wciywij+BXC3ptkw79z0fWHRk5PyOPjL9mA1pKiXCNQ+VFxFdEXTYi0FeiFjYf8DzwfnJH8MQ0fpzHfztZih6lYX4f/TYfg3DhsRdQbViGSM6ByFe8Q3+T70s17ivUxc3V23eUeeQatd1XxB8myfJTjx2F6eM= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Aug 2018 03:14:03.5794 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3c68733a-f472-40eb-117c-08d5f8ef2a86 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSBPR01MB2293 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: <linux-usb.vger.kernel.org> X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
usb: gadget: udc: renesas_usb3: fix maxpacket size of ep0
|
expand
|
diff --git a/drivers/usb/gadget/udc/renesas_usb3.c b/drivers/usb/gadget/udc/renesas_usb3.c index 7cf98c7..5b5f1c8 100644 --- a/drivers/usb/gadget/udc/renesas_usb3.c +++ b/drivers/usb/gadget/udc/renesas_usb3.c @@ -787,12 +787,15 @@ static void usb3_irq_epc_int_1_speed(struct renesas_usb3 *usb3) switch (speed) { case USB_STA_SPEED_SS: usb3->gadget.speed = USB_SPEED_SUPER; + usb3->gadget.ep0->maxpacket = USB3_EP0_SS_MAX_PACKET_SIZE; break; case USB_STA_SPEED_HS: usb3->gadget.speed = USB_SPEED_HIGH; + usb3->gadget.ep0->maxpacket = USB3_EP0_HSFS_MAX_PACKET_SIZE; break; case USB_STA_SPEED_FS: usb3->gadget.speed = USB_SPEED_FULL; + usb3->gadget.ep0->maxpacket = USB3_EP0_HSFS_MAX_PACKET_SIZE; break; default: usb3->gadget.speed = USB_SPEED_UNKNOWN; @@ -2451,7 +2454,7 @@ static int renesas_usb3_init_ep(struct renesas_usb3 *usb3, struct device *dev, /* for control pipe */ usb3->gadget.ep0 = &usb3_ep->ep; usb_ep_set_maxpacket_limit(&usb3_ep->ep, - USB3_EP0_HSFS_MAX_PACKET_SIZE); + USB3_EP0_SS_MAX_PACKET_SIZE); usb3_ep->ep.caps.type_control = true; usb3_ep->ep.caps.dir_in = true; usb3_ep->ep.caps.dir_out = true;