From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933245AbbGUQoW (ORCPT ); Tue, 21 Jul 2015 12:44:22 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:53284 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755088AbbGUQoU (ORCPT ); Tue, 21 Jul 2015 12:44:20 -0400 Date: Tue, 21 Jul 2015 11:43:32 -0500 From: Felipe Balbi To: Robert Baldyga CC: , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v3 07/46] usb: dwc3: gadget: add ep capabilities support Message-ID: <20150721164331.GG25385@saruman.tx.rr.com> Reply-To: References: <1436941953-1327-1-git-send-email-r.baldyga@samsung.com> <1436941953-1327-8-git-send-email-r.baldyga@samsung.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qxfKREH7IwbezJ+T" Content-Disposition: inline In-Reply-To: <1436941953-1327-8-git-send-email-r.baldyga@samsung.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --qxfKREH7IwbezJ+T Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Wed, Jul 15, 2015 at 08:31:54AM +0200, Robert Baldyga wrote: > Convert endpoint configuration to new capabilities model. >=20 > Signed-off-by: Robert Baldyga > --- > drivers/usb/dwc3/gadget.c | 13 +++++++++++++ > 1 file changed, 13 insertions(+) >=20 > diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c > index 333a7c0..8d1f768 100644 > --- a/drivers/usb/dwc3/gadget.c > +++ b/drivers/usb/dwc3/gadget.c > @@ -1713,6 +1713,19 @@ static int dwc3_gadget_init_hw_endpoints(struct dw= c3 *dwc, > return ret; > } > =20 > + if (epnum =3D=3D 0) { > + dep->endpoint.caps.type_control =3D true; as the name says, this function deals with hw endpoints. This means ep1 is also control. --=20 balbi --qxfKREH7IwbezJ+T Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJVrnazAAoJEIaOsuA1yqREZlsP/iImgKnRRlxvEAeHgOlh9tWz kNZU4AE5LzmNQY66UVPZ9Mfycpu25vNZMU20SrwF/0NeCju0JoGbQAyVPoJVLwDV GJlzQZkWOgTwxzYTW7Jwy7guVwmu6nBz+cbVFeCihxT63l+4JBhsq7xl3Dee6MSY PgCm7TkKpZVmpZSgtJYbJ+dt8kqw/lR8HwF0QzZ2RnGlKgiklGRfJefrwFz7d4eD TM+hoLSRei+u6gq9umZ5D5oV+YIZURvGm+2WQ9cWVP1cFTreW6OqS3lDu2Ajd8LN uiQzVg03pHLD/G7m+Ab3dT1gfXHQhxIEQ7a+oX5nX3W9PbDTOI4rFBGE92fJ2FxV e5rmfidPAxixboXwdEwVcI9VDqXI+Ov0RJjKYrtfPgqX/IZUMdBB8sNUnr5jdhGg wSQoAKz3Rv4suXF+HaF9kAbUaDyUETvA8rm8EA6P17DJkRM0Hu5jDDaUe2/0pv1J Ciue6q59wHtg89PwWZad0NHzxJda6Q0RPFrJpkv+iwzk71kX+Wc+CGHFfrwiEBy9 MYNzwuVfhNgeFQmFOqc1xg0JEs6p0+zJ5XBmZAJnJxYt2CyHelkEuOZvHkfwwvja xIkMS1yt24pZf84IMn1V2yNS8XAlO+ZtXGPIS7/jZ9q+Sd1CrWO672uCct9Iasg5 KzlHFQbZwW5x3IPRhvQr =k33n -----END PGP SIGNATURE----- --qxfKREH7IwbezJ+T--