From patchwork Tue Mar 4 17:32:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 25711 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f70.google.com (mail-qa0-f70.google.com [209.85.216.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5699520540 for ; Tue, 4 Mar 2014 17:34:52 +0000 (UTC) Received: by mail-qa0-f70.google.com with SMTP id hw13sf14274702qab.5 for ; Tue, 04 Mar 2014 09:34:52 -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 :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=r1BJ5EKXNYvHYDDJOqWuHy+IT59ONjGWCodHni0CBqI=; b=iqwVVv7SSJ1/pBqZ1sI4O3E7QrsnAgdvg2pLkE805EaeSC5FvSxwa+2v2m8ibnU5xt VGgNA1j1MTZQHXRy9c9/+2pUDXXR54OGZpkhJbWkLVUWOj8to3bl1fcmqf2ws0siR18Y xintiUTr6a5DU5EA6tIx4TAhlvVxDooz7NeZ1jpeGn3+qtsPg4wU/eywMUcPq1n7jF6u HArP3hyZMzV4gTWRceW5csY9e45rGl7FJ8xziRWovy7l1+Krg2DyZLv0Haot6PvhCmcV zPK2gVM+5whds2G3Wd0TDiLrBBy6tV0ouhayCbf1qyJt6zSwhW7Qak6X0o9BRfAXSmT6 zc7A== X-Gm-Message-State: ALoCoQnAEE/e/7AbzaHDEZALjTANe5LBjUk0rOO+skdMEUvrDfl592OeDFJVFjm62xsVDOGo6DiO X-Received: by 10.224.66.196 with SMTP id o4mr431496qai.2.1393954492076; Tue, 04 Mar 2014 09:34:52 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.80.149 with SMTP id c21ls2690422qgd.52.gmail; Tue, 04 Mar 2014 09:34:51 -0800 (PST) X-Received: by 10.221.29.196 with SMTP id rz4mr540844vcb.8.1393954491916; Tue, 04 Mar 2014 09:34:51 -0800 (PST) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id sq4si4759901vdc.106.2014.03.04.09.34.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Mar 2014 09:34:51 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.173 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.173; Received: by mail-vc0-f173.google.com with SMTP id ld13so4616233vcb.4 for ; Tue, 04 Mar 2014 09:34:51 -0800 (PST) X-Received: by 10.220.109.1 with SMTP id h1mr534114vcp.20.1393954491824; Tue, 04 Mar 2014 09:34:51 -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 u1csp142977vcs; Tue, 4 Mar 2014 09:34:51 -0800 (PST) X-Received: by 10.66.122.201 with SMTP id lu9mr1012837pab.40.1393954490729; Tue, 04 Mar 2014 09:34:50 -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.50; Tue, 04 Mar 2014 09:34:50 -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 S1752989AbaCDRes (ORCPT + 3 others); Tue, 4 Mar 2014 12:34:48 -0500 Received: from comal.ext.ti.com ([198.47.26.152]:39606 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751282AbaCDRer (ORCPT ); Tue, 4 Mar 2014 12:34:47 -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 s24HYJDl004114; Tue, 4 Mar 2014 11:34:19 -0600 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s24HYIm4006290; Tue, 4 Mar 2014 11:34:19 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Tue, 4 Mar 2014 11:34:18 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s24HYHEh026562; Tue, 4 Mar 2014 11:34:18 -0600 From: Felipe Balbi To: Linux USB Mailing List CC: , , , , , , , , , , Felipe Balbi Subject: [PATCH 1/4] usb: chipidea: switch over to endpoint feature flags Date: Tue, 4 Mar 2014 11:32:43 -0600 Message-ID: <1393954366-22987-1-git-send-email-balbi@ti.com> X-Mailer: git-send-email 1.9.0 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.173 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/chipidea/udc.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c index 80de2f8..e80dc82 100644 --- a/drivers/usb/chipidea/udc.c +++ b/drivers/usb/chipidea/udc.c @@ -1576,6 +1576,13 @@ static int init_eps(struct ci_hdrc *ci) hwep->ep.name = hwep->name; hwep->ep.ops = &usb_ep_ops; + + hwep->ep.has_bulk = true; + hwep->ep.has_interrupt = true; + hwep->ep.has_isochronous = true; + hwep->ep.has_dir_in = (j == TX); + hwep->ep.has_dir_out = (j == RX); + /* * for ep0: maxP defined in desc, for other * eps, maxP is set by epautoconfig() called