From: Sergei Shtylyov Subject: Re: [PATCH 1/2] usb: musb: musb_cppi41: Fix the address of teardown and autoreq registers Date: Tue, 15 Aug 2017 13:12:06 +0300 Message-ID: <6e5b0e12-d298-b698-bc06-d9c3ae8fb5c3@cogentembedded.com> References: <20170813120423.16371-1-abailon@baylibre.com> <20170813120423.16371-2-abailon@baylibre.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20170813120423.16371-2-abailon-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> Content-Language: en-US Sender: linux-usb-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Alexandre Bailon , b-liu-l0cyMroinI0@public.gmane.org Cc: linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, nsekhar-l0cyMroinI0@public.gmane.org, ptitiano-rdvid1DuHRBWk0Htik3J/w@public.gmane.org, linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-omap@vger.kernel.org Hello! On 8/13/2017 3:04 PM, Alexandre Bailon wrote: > The DA8xx and DSPS platforms don't use the same address for few registers. > On Da8xx, this is causing some issues (e.g. teardown that doesn't work). > Configure the address of the register during the init and use them instead > of constants. > > Reported-by: nsekhar-l0cyMroinI0@public.gmane.org > Signed-off-by: Alexandre Bailon > --- > drivers/usb/musb/musb_cppi41.c | 23 +++++++++++++++++++---- > 1 file changed, 19 insertions(+), 4 deletions(-) > > diff --git a/drivers/usb/musb/musb_cppi41.c b/drivers/usb/musb/musb_cppi41.c > index ba255280a624..dbff0e0a4ff5 100644 > --- a/drivers/usb/musb/musb_cppi41.c > +++ b/drivers/usb/musb/musb_cppi41.c > @@ -26,6 +26,9 @@ > > #define MUSB_DMA_NUM_CHANNELS 15 > > +#define DA8XX_USB_AUTOREQ_REG 0x14 > +#define DA8XX_USB_TEARDOWN_REG 0x1c Why these _REG suffixes suddenly? [...] Other than that looks sane. Need my ACK? WBR, Sergei -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html