From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathias Nyman Subject: Re: [PATCH v3 1/5] xhci: add a quirk for device disconnection errata for Synopsis Designware USB3 core Date: Mon, 16 Feb 2015 11:26:36 +0200 Message-ID: <54E1B7CC.9080805@intel.com> References: <1422173608-24355-1-git-send-email-Sneeker.Yeh@tw.fujitsu.com> <1422173608-24355-2-git-send-email-Sneeker.Yeh@tw.fujitsu.com> <54DCAF88.4010607@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Sneeker Yeh Cc: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Felipe Balbi , Greg Kroah-Hartman , Grant Likely , Huang Rui , Kishon Vijay Abraham I , "devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Andy Green , Jassi Brar , Sneeker Yeh List-Id: devicetree@vger.kernel.org On 15.02.2015 16:29, Sneeker Yeh wrote: > hi Mathias: > > thanks for reviewing these patch, > and sorry for replying lately~ > >>> + status = readl(port_array[dev_port_num - 1]); >>> + >>> + /* write 1 to clear */ >>> + if (!(status & PORT_CONNECT) && (status & PORT_CSC)) >>> + writel(status & PORT_CSC, port_array[0]); >> >> Shouldn't this be writel(...,port_array[dev_port_num - 1]) ? > > yes, thanks for correcting this, > and I also would like to add xhci_port_state_to_neutral() you mentioned. > what would you think if I modify it like this? > > + /* write 1 to clear */ > + if (!(status & PORT_CONNECT) && (status & PORT_CSC)) { > + status = xhci_port_state_to_neutral(status); > + writel(status | PORT_CSC, port_array[dev_port_num - 1]); > + } > Looks good to me -Mathias -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html