From patchwork Tue Mar 4 17:32:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 25712 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f72.google.com (mail-oa0-f72.google.com [209.85.219.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E199520540 for ; Tue, 4 Mar 2014 17:34:53 +0000 (UTC) Received: by mail-oa0-f72.google.com with SMTP id g12sf27597217oah.3 for ; Tue, 04 Mar 2014 09:34:53 -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=4PD6aCemSEjlqcoc2kLjHSKF79fNbhL7lgkK4Ue6epM=; b=jD6KS86ZwSPmjiU8PejwKQ52UFAfE+GoTkPbgC2oqlhVKlT4OWXsfK6soN+FZ/ABTh Oe4fiz8zZUmQ+eJwJA6NMpF0gMOXjyAgJJuqZEEkefaqrxzAo2ro0LKjf723F/uqRZxm 2Q/edinmme5t+rxwvf600RlXXeP/grWqu6cRDXmrJWp9/YkiJ0+2HSpZ9+urjB9I2OWw 7coi2caOa4CigIvi0Zy4q47mEwGdhB8ByI7oBXi6GEXlst1NwaH6k4cQuxqkIoLiIA8m vv+HSeaogte0nbVV7UVkIN9QNx0yBzXRoddyNuw/LWmY4ukgfrOw9xUqWtXpd1pDngjB CdAw== X-Gm-Message-State: ALoCoQm0RC7Rg3YMwesQVLWUp3KrMflOb3UlCNPsEetJjlZQQvlIWvDWPlSPf3sZk+aUWmMAp/0B X-Received: by 10.182.66.73 with SMTP id d9mr417306obt.8.1393954493394; Tue, 04 Mar 2014 09:34:53 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.83.75 with SMTP id i69ls2579399qgd.66.gmail; Tue, 04 Mar 2014 09:34:53 -0800 (PST) X-Received: by 10.52.18.70 with SMTP id u6mr393466vdd.11.1393954493217; Tue, 04 Mar 2014 09:34:53 -0800 (PST) Received: from mail-ve0-f175.google.com (mail-ve0-f175.google.com [209.85.128.175]) by mx.google.com with ESMTPS id n17si6012569vcq.60.2014.03.04.09.34.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Mar 2014 09:34:53 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.175; Received: by mail-ve0-f175.google.com with SMTP id oz11so5171824veb.34 for ; Tue, 04 Mar 2014 09:34:53 -0800 (PST) X-Received: by 10.221.37.1 with SMTP id tc1mr509681vcb.32.1393954493135; Tue, 04 Mar 2014 09:34:53 -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 u1csp142979vcs; Tue, 4 Mar 2014 09:34:52 -0800 (PST) X-Received: by 10.68.185.1 with SMTP id ey1mr838301pbc.33.1393954492236; Tue, 04 Mar 2014 09:34:52 -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.51; Tue, 04 Mar 2014 09:34:51 -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 S1753356AbaCDRet (ORCPT + 3 others); Tue, 4 Mar 2014 12:34:49 -0500 Received: from bear.ext.ti.com ([192.94.94.41]:53081 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752531AbaCDRes (ORCPT ); Tue, 4 Mar 2014 12:34:48 -0500 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s24HYMYW013321; Tue, 4 Mar 2014 11:34:22 -0600 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s24HYMHW029361; Tue, 4 Mar 2014 11:34:22 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.174.1; Tue, 4 Mar 2014 11:34:21 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s24HYKvj031042; Tue, 4 Mar 2014 11:34:21 -0600 From: Felipe Balbi To: Linux USB Mailing List CC: , , , , , , , , , , Felipe Balbi Subject: [PATCH 4/4] usb: gadget: lpc32xx: switch over to endpoint feature flags Date: Tue, 4 Mar 2014 11:32:46 -0600 Message-ID: <1393954366-22987-4-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.128.175 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/gadget/lpc32xx_udc.c | 48 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/drivers/usb/gadget/lpc32xx_udc.c b/drivers/usb/gadget/lpc32xx_udc.c index 049ebab..842ddfc 100644 --- a/drivers/usb/gadget/lpc32xx_udc.c +++ b/drivers/usb/gadget/lpc32xx_udc.c @@ -2590,6 +2590,9 @@ static const struct lpc32xx_udc controller_template = { .ep = { .name = "ep0", .ops = &lpc32xx_ep_ops, + .has_dir_in = true, + .has_dir_out = true, + .has_control = true, }, .maxpacket = 64, .hwep_num_base = 0, @@ -2601,6 +2604,9 @@ static const struct lpc32xx_udc controller_template = { .ep = { .name = "ep1-int", .ops = &lpc32xx_ep_ops, + .has_dir_in = true, + .has_dir_out = true, + .has_interrupt = true, }, .maxpacket = 64, .hwep_num_base = 2, @@ -2612,6 +2618,9 @@ static const struct lpc32xx_udc controller_template = { .ep = { .name = "ep2-bulk", .ops = &lpc32xx_ep_ops, + .has_dir_in = true, + .has_dir_out = true, + .has_bulk = true, }, .maxpacket = 64, .hwep_num_base = 4, @@ -2623,6 +2632,9 @@ static const struct lpc32xx_udc controller_template = { .ep = { .name = "ep3-iso", .ops = &lpc32xx_ep_ops, + .has_dir_in = true, + .has_dir_out = true, + .has_isochronous = true, }, .maxpacket = 1023, .hwep_num_base = 6, @@ -2634,6 +2646,9 @@ static const struct lpc32xx_udc controller_template = { .ep = { .name = "ep4-int", .ops = &lpc32xx_ep_ops, + .has_dir_in = true, + .has_dir_out = true, + .has_interrupt = true, }, .maxpacket = 64, .hwep_num_base = 8, @@ -2645,6 +2660,9 @@ static const struct lpc32xx_udc controller_template = { .ep = { .name = "ep5-bulk", .ops = &lpc32xx_ep_ops, + .has_dir_in = true, + .has_dir_out = true, + .has_bulk = true, }, .maxpacket = 64, .hwep_num_base = 10, @@ -2656,6 +2674,9 @@ static const struct lpc32xx_udc controller_template = { .ep = { .name = "ep6-iso", .ops = &lpc32xx_ep_ops, + .has_dir_in = true, + .has_dir_out = true, + .has_isochronous = true, }, .maxpacket = 1023, .hwep_num_base = 12, @@ -2667,6 +2688,9 @@ static const struct lpc32xx_udc controller_template = { .ep = { .name = "ep7-int", .ops = &lpc32xx_ep_ops, + .has_dir_in = true, + .has_dir_out = true, + .has_interrupt = true, }, .maxpacket = 64, .hwep_num_base = 14, @@ -2678,6 +2702,9 @@ static const struct lpc32xx_udc controller_template = { .ep = { .name = "ep8-bulk", .ops = &lpc32xx_ep_ops, + .has_dir_in = true, + .has_dir_out = true, + .has_bulk = true, }, .maxpacket = 64, .hwep_num_base = 16, @@ -2689,6 +2716,9 @@ static const struct lpc32xx_udc controller_template = { .ep = { .name = "ep9-iso", .ops = &lpc32xx_ep_ops, + .has_dir_in = true, + .has_dir_out = true, + .has_isochronous = true, }, .maxpacket = 1023, .hwep_num_base = 18, @@ -2700,6 +2730,9 @@ static const struct lpc32xx_udc controller_template = { .ep = { .name = "ep10-int", .ops = &lpc32xx_ep_ops, + .has_dir_in = true, + .has_dir_out = true, + .has_interrupt = true, }, .maxpacket = 64, .hwep_num_base = 20, @@ -2711,6 +2744,9 @@ static const struct lpc32xx_udc controller_template = { .ep = { .name = "ep11-bulk", .ops = &lpc32xx_ep_ops, + .has_dir_in = true, + .has_dir_out = true, + .has_bulk = true, }, .maxpacket = 64, .hwep_num_base = 22, @@ -2722,6 +2758,9 @@ static const struct lpc32xx_udc controller_template = { .ep = { .name = "ep12-iso", .ops = &lpc32xx_ep_ops, + .has_dir_in = true, + .has_dir_out = true, + .has_isochronous = true, }, .maxpacket = 1023, .hwep_num_base = 24, @@ -2733,6 +2772,9 @@ static const struct lpc32xx_udc controller_template = { .ep = { .name = "ep13-int", .ops = &lpc32xx_ep_ops, + .has_dir_in = true, + .has_dir_out = true, + .has_interrupt = true, }, .maxpacket = 64, .hwep_num_base = 26, @@ -2744,6 +2786,9 @@ static const struct lpc32xx_udc controller_template = { .ep = { .name = "ep14-bulk", .ops = &lpc32xx_ep_ops, + .has_dir_in = true, + .has_dir_out = true, + .has_bulk = true, }, .maxpacket = 64, .hwep_num_base = 28, @@ -2755,6 +2800,9 @@ static const struct lpc32xx_udc controller_template = { .ep = { .name = "ep15-bulk", .ops = &lpc32xx_ep_ops, + .has_dir_in = true, + .has_dir_out = true, + .has_bulk = true, }, .maxpacket = 1023, .hwep_num_base = 30,