From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752645AbbJCM6v (ORCPT ); Sat, 3 Oct 2015 08:58:51 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:36713 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752181AbbJCM6u (ORCPT ); Sat, 3 Oct 2015 08:58:50 -0400 Message-ID: <1443877127.4186.39.camel@gmail.com> Subject: Re: [PATCH v4 21/26] ARM: pxa: magician: Add support for PXA27x UDC From: Philipp Zabel To: Petr Cvek , robert.jarzmik@free.fr, daniel@zonque.org, haojian.zhuang@gmail.com, linux@arm.linux.org.uk Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Date: Sat, 03 Oct 2015 14:58:47 +0200 In-Reply-To: <5609B395.8040800@tul.cz> References: <5609B395.8040800@tul.cz> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.5-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Montag, den 28.09.2015, 23:39 +0200 schrieb Petr Cvek: > A PXA27x SoC supports USB device mode, this patch adds support for > that. > > Signed-off-by: Petr Cvek > --- > arch/arm/mach-pxa/magician.c | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) > > diff --git a/arch/arm/mach-pxa/magician.c b/arch/arm/mach > -pxa/magician.c > index 490d79f..331dfd1 100644 > --- a/arch/arm/mach-pxa/magician.c > +++ b/arch/arm/mach-pxa/magician.c > @@ -54,6 +54,10 @@ > > #include > > +#include > +#include > +#include > + > #include "devices.h" > #include "generic.h" > > @@ -582,6 +586,23 @@ static struct platform_device pasic3 = { > * PXA UDC > */ This comment should be part of this patch. > +static void magician_udc_command(int cmd) > +{ > + if (cmd == PXA2XX_UDC_CMD_CONNECT) > + UP2OCR |= UP2OCR_DPPUE | UP2OCR_DPPUBE; > + else if (cmd == PXA2XX_UDC_CMD_DISCONNECT) > + UP2OCR &= ~(UP2OCR_DPPUE | UP2OCR_DPPUBE); > +} > + > +static struct pxa2xx_udc_mach_info magician_udc_info __initdata = { > + .udc_command = magician_udc_command, > + .gpio_pullup = GPIO27_MAGICIAN_USBC_PUEN, > +}; > + > +/* > + * USB device VUSB detection > + */ > + Move this comment to the earlier comment fixup patch. Otherwise, Acked-by: Philipp Zabel regards Philipp