From patchwork Tue Mar 4 17:32:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 25710 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f199.google.com (mail-qc0-f199.google.com [209.85.216.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3DF5620540 for ; Tue, 4 Mar 2014 17:34:50 +0000 (UTC) Received: by mail-qc0-f199.google.com with SMTP id e16sf14342750qcx.6 for ; Tue, 04 Mar 2014 09:34:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=opagpbHQ6hYqQc16mEvCRmwTAz/LRG7ZMyynVv5bU7E=; b=BKXI6Ef5mk/UI0Sy98cuOMCfPhKpw0OJBfZdWuAF0Ct8rcTht4zjgLTPSUDyYY2Hzs A4Ctqt+Kgp8MxeeWK397zhixW1yhss2akQEYpnYu2wNTSihGiSbjBmbZoVSvgqS9SyLF 0ATjGwlejIVjzIuoPj32S9q8rStq0H+NyANGrWz78Y7w3HZAiX6fmdL2RppN+0WNs6ic sEsPObwuT1ZWPO0ii3Pwaf1opiT+UdINjn6d3YlsjWzk2sJeBWWCq30xZ+ZnCST5pWId sUYP/XjuhcwjVsBK6/GpREnifWBEm7awUsmteNSXlV1OafTquT65JKLM+iILElo1z/X4 8XHQ== X-Gm-Message-State: ALoCoQkj0vQfSxcOAi869zJHyyVUB+77WL+TIfbBIc0eVRQC8Z4xvmupAUKYDW/vyScYV6d2sBm1 X-Received: by 10.58.136.35 with SMTP id px3mr370758veb.31.1393954489932; Tue, 04 Mar 2014 09:34:49 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.36.200 with SMTP id p66ls2575168qgp.74.gmail; Tue, 04 Mar 2014 09:34:49 -0800 (PST) X-Received: by 10.52.141.105 with SMTP id rn9mr421869vdb.44.1393954489804; Tue, 04 Mar 2014 09:34:49 -0800 (PST) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id dr8si6047057vcb.13.2014.03.04.09.34.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Mar 2014 09:34:49 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.177; Received: by mail-vc0-f177.google.com with SMTP id if11so4532039vcb.8 for ; Tue, 04 Mar 2014 09:34:49 -0800 (PST) X-Received: by 10.52.250.236 with SMTP id zf12mr382441vdc.9.1393954489717; Tue, 04 Mar 2014 09:34:49 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.130.193 with SMTP id u1csp142976vcs; Tue, 4 Mar 2014 09:34:49 -0800 (PST) X-Received: by 10.68.242.33 with SMTP id wn1mr895291pbc.154.1393954488866; Tue, 04 Mar 2014 09:34:48 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id se8si14920278pbb.336.2014.03.04.09.34.48; Tue, 04 Mar 2014 09:34:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752255AbaCDReq (ORCPT + 3 others); Tue, 4 Mar 2014 12:34:46 -0500 Received: from comal.ext.ti.com ([198.47.26.152]:39605 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751282AbaCDReq (ORCPT ); Tue, 4 Mar 2014 12:34:46 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id s24HYJoM004117; Tue, 4 Mar 2014 11:34:19 -0600 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s24HYJvp006293; Tue, 4 Mar 2014 11:34:19 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.174.1; Tue, 4 Mar 2014 11:34:19 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s24HYIDr010213; Tue, 4 Mar 2014 11:34:19 -0600 From: Felipe Balbi To: Linux USB Mailing List CC: , , , , , , , , , , Felipe Balbi Subject: [PATCH 2/4] usb: renesas: switch over to endpoint feature flags Date: Tue, 4 Mar 2014 11:32:44 -0600 Message-ID: <1393954366-22987-2-git-send-email-balbi@ti.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1393954366-22987-1-git-send-email-balbi@ti.com> References: <1393954366-22987-1-git-send-email-balbi@ti.com> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: balbi@ti.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , switch over to endpoint feature flags so we can drop naming conventions. Signed-off-by: Felipe Balbi --- drivers/usb/renesas_usbhs/mod_gadget.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/renesas_usbhs/mod_gadget.c b/drivers/usb/renesas_usbhs/mod_gadget.c index 458f376..e798d7a 100644 --- a/drivers/usb/renesas_usbhs/mod_gadget.c +++ b/drivers/usb/renesas_usbhs/mod_gadget.c @@ -982,15 +982,26 @@ int usbhs_mod_gadget_probe(struct usbhs_priv *priv) uep->ep.name = uep->ep_name; uep->ep.ops = &usbhsg_ep_ops; + INIT_LIST_HEAD(&uep->ep.ep_list); /* init DCP */ if (usbhsg_is_dcp(uep)) { + uep->ep.has_dir_in = true; + uep->ep.has_dir_out = true; + uep->ep.has_control = true; + gpriv->gadget.ep0 = &uep->ep; usb_ep_set_maxpacket_limit(&uep->ep, 64); } /* init normal pipe */ else { + uep->ep.has_dir_in = true; + uep->ep.has_dir_out = true; + uep->ep.has_bulk = true; + uep->ep.has_interrupt = true; + uep->ep.has_isochronous = true; + usb_ep_set_maxpacket_limit(&uep->ep, 512); list_add_tail(&uep->ep.ep_list, &gpriv->gadget.ep_list); }