From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laurent Pinchart Date: Fri, 31 Jan 2014 01:17:55 +0000 Subject: Re: [PATCH 02/03] pinctrl: sh-pfc: r8a7790: Break out USB0 OVC/VBUS Message-Id: <1397857.qyLQY9XTlp@avalon> List-Id: References: <20140129230959.22655.55645.sendpatchset@w520> <20140129231019.22655.41456.sendpatchset@w520> In-Reply-To: <20140129231019.22655.41456.sendpatchset@w520> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-arm-kernel@lists.infradead.org Hi Magnus, Thank you for the patch. On Thursday 30 January 2014 08:10:19 Magnus Damm wrote: > From: Magnus Damm > > Create a new group for the USB0 OVC/VBUS pin by itself. This > allows us to monitor PWEN as GPIO on the Lager board. > > Signed-off-by: Magnus Damm > --- > > drivers/pinctrl/sh-pfc/pfc-r8a7790.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > > --- 0001/drivers/pinctrl/sh-pfc/pfc-r8a7790.c > +++ work/drivers/pinctrl/sh-pfc/pfc-r8a7790.c 2014-01-24 10:23:32.000000000 > +0900 @@ -3231,6 +3231,13 @@ static const unsigned int usb0_pins[] > static const unsigned int usb0_mux[] = { > USB0_PWEN_MARK, USB0_OVC_VBUS_MARK, > }; > +static const unsigned int usb0_ovc_vbus_pins[] = { > + /* OVC/VBUS */ > + RCAR_GP_PIN(5, 19), > +}; > +static const unsigned int usb0_ovc_vbus_mux[] = { > + USB0_OVC_VBUS_MARK, > +}; Another option would have been to split the existing usb0 group in usb0_pwen and usb0_ovc. I'm not sure which is better though, I'd just like to know if you had given it a thought. Regardless, what about naming the new group usb0_ovc instead of usb0_ovc_bus to keep names short ? > /* - USB1 > ------------------------------------------------------------------- */ > static const unsigned int usb1_pins[] = { > /* PWEN, OVC */ > @@ -3789,6 +3796,7 @@ static const struct sh_pfc_pin_group pin > SH_PFC_PIN_GROUP(tpu0_to2), > SH_PFC_PIN_GROUP(tpu0_to3), > SH_PFC_PIN_GROUP(usb0), > + SH_PFC_PIN_GROUP(usb0_ovc_vbus), > SH_PFC_PIN_GROUP(usb1), > SH_PFC_PIN_GROUP(usb2), > VIN_DATA_PIN_GROUP(vin0_data, 24), > @@ -4134,6 +4142,7 @@ static const char * const tpu0_groups[] > > static const char * const usb0_groups[] = { > "usb0", > + "usb0_ovc_vbus", > }; > > static const char * const usb1_groups[] = { -- Regards, Laurent Pinchart