From patchwork Wed Jul 9 11:30:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 4513551 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id F1C28BEEAA for ; Wed, 9 Jul 2014 11:30:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2802020218 for ; Wed, 9 Jul 2014 11:30:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 49978202E5 for ; Wed, 9 Jul 2014 11:30:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754412AbaGILaM (ORCPT ); Wed, 9 Jul 2014 07:30:12 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:11073 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754753AbaGILaK (ORCPT ); Wed, 9 Jul 2014 07:30:10 -0400 Received: from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151]) by relmlie1.idc.renesas.com with ESMTP; 09 Jul 2014 20:30:09 +0900 Received: from relmlac2.idc.renesas.com (relmlac2.idc.renesas.com [10.200.69.22]) by relmlir1.idc.renesas.com (Postfix) with ESMTP id 1CC604CDE1; Wed, 9 Jul 2014 20:30:09 +0900 (JST) Received: by relmlac2.idc.renesas.com (Postfix, from userid 0) id 0EE1A280A6; Wed, 9 Jul 2014 20:30:09 +0900 (JST) Received: from relmlac2.idc.renesas.com (localhost [127.0.0.1]) by relmlac2.idc.renesas.com (Postfix) with ESMTP id 02736280A0; Wed, 9 Jul 2014 20:30:09 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac2.idc.renesas.com with ESMTP id WAP24585; Wed, 9 Jul 2014 20:30:08 +0900 X-IronPort-AV: E=Sophos;i="5.01,630,1399993200"; d="scan'208";a="165145026" Received: from mail-hk1lp0119.outbound.protection.outlook.com (HELO APAC01-HK1-obe.outbound.protection.outlook.com) ([207.46.51.119]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 09 Jul 2014 20:30:08 +0900 Received: from [10.161.20.147] (211.11.155.147) by SIXPR06MB333.apcprd06.prod.outlook.com (10.141.120.15) with Microsoft SMTP Server (TLS) id 15.0.980.8; Wed, 9 Jul 2014 11:30:07 +0000 Message-ID: <53BD27BB.5050606@renesas.com> Date: Wed, 9 Jul 2014 20:30:03 +0900 From: Yoshihiro Shimoda User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: "linux-usb@vger.kernel.org" CC: Kuninori Morimoto , Felipe Balbi , SH-Linux Subject: [PATCH 1/2] usb: renesas_usbhs: fix usbhs_pipe_malloc() to re-enable a pipe. X-Originating-IP: [211.11.155.147] X-ClientProxiedBy: HKNPR06CA001.apcprd06.prod.outlook.com (10.242.116.41) To SIXPR06MB333.apcprd06.prod.outlook.com (10.141.120.15) X-Microsoft-Antispam: BCL:0;PCL:0;RULEID: X-Forefront-PRVS: 0267E514F9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(6049001)(6009001)(189002)(199002)(81542001)(80022001)(110136001)(83072002)(83322001)(2351001)(95666004)(81342001)(74502001)(77096002)(229853001)(107046002)(66066001)(65956001)(19580405001)(50466002)(19580395003)(92566001)(74662001)(85852003)(20776003)(80316001)(31966008)(36756003)(106356001)(105586002)(83506001)(23756003)(92726001)(42186005)(99396002)(101416001)(54356999)(21056001)(4396001)(77982001)(64706001)(33656002)(85306003)(64126003)(102836001)(87976001)(86362001)(76482001)(65816999)(50986999)(87266999)(46102001)(79102001)(47776003); DIR:OUT; SFP:; SCL:1; SRVR:SIXPR06MB333; H:[10.161.20.147]; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; LANG:en; X-OriginatorOrg: renesas.com Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes an issue that the driver cannot push a new data when a pipe is re-enabled after the pipe is queued. Signed-off-by: Yoshihiro Shimoda --- drivers/usb/renesas_usbhs/pipe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/renesas_usbhs/pipe.c b/drivers/usb/renesas_usbhs/pipe.c index 7926e1c..239b889 100644 --- a/drivers/usb/renesas_usbhs/pipe.c +++ b/drivers/usb/renesas_usbhs/pipe.c @@ -710,6 +710,7 @@ struct usbhs_pipe *usbhs_pipe_malloc(struct usbhs_priv *priv, usbhsp_pipe_select(pipe); usbhsp_pipe_cfg_set(pipe, 0xFFFF, pipecfg); usbhsp_pipe_buf_set(pipe, 0xFFFF, pipebuf); + usbhs_pipe_clear(pipe); usbhs_pipe_sequence_data0(pipe);