Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755339AbbBPJZc (ORCPT ); Mon, 16 Feb 2015 04:25:32 -0500 Received: from mga09.intel.com ([134.134.136.24]:23443 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752104AbbBPJZa (ORCPT ); Mon, 16 Feb 2015 04:25:30 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,586,1418112000"; d="scan'208";a="455184058" Message-ID: <54E1B7CC.9080805@intel.com> Date: Mon, 16 Feb 2015 11:26:36 +0200 From: Mathias Nyman User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 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@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-usb@vger.kernel.org" , "linux-omap@vger.kernel.org" , Andy Green , Jassi Brar , Sneeker Yeh Subject: Re: [PATCH v3 1/5] xhci: add a quirk for device disconnection errata for Synopsis Designware USB3 core 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> In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1105 Lines: 35 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 linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/