Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1008749imu; Wed, 9 Jan 2019 09:59:19 -0800 (PST) X-Google-Smtp-Source: ALg8bN4h5syVXUHpKHzvz2f8EdeQE7GBdjekNrrtRKwzdQnxYAjxFjxApzuf8qe+CkFGzo0xyNf/ X-Received: by 2002:a17:902:15a8:: with SMTP id m37mr7066926pla.129.1547056759755; Wed, 09 Jan 2019 09:59:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547056759; cv=none; d=google.com; s=arc-20160816; b=CXnohX/JkE4i2I1DRZM1rJu4qKOv/A7OLlugmmQnQ/ypp3vF7aUuvuo3ZxOsw1qhKg dq0WKtomTft8uC8iBUEg7nUlBJ/GTDTsegjrPVQyJM2KRZ5qGgQpL3bSimw8dhxwUcAC 5KLRkBNLatQoHGiZVEr2y2Ha8yPTSnu6FKvCj9QxI1AnW78ZANrcRH0RUpl9opyn3y70 FVktd6VXjh9k/Pwp77ejMofuQEIFE2wt68MepmV5eORc7gJ1CIvIuAlIBcFM4jSTpAyM QKKXa/a79I7DnRRLPY3oVox6qXePHTIjV7Q/Uwv5BdKtwMIdW63JMJLKzXqJNT0wqNFF CN1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date; bh=YxeMDgbbdvHR0s4gH/XPwqttbO+oYiRQS0TiTn2PuIA=; b=xHCR6avbwcpbUkjXCTMw+habY6dr1Z+dyITlzFSr2CDxW3wCnxEf4TdAcY7SZyd+24 jEU7WEF3axnBKnBsuQY0K0x/w6qsK2CbdgGKr+N4OPKp8R20/xXdUjbGPauk1KpKktqD xvvD1JbAzISx6wVcYUf9a+tbdW5J/6NWZxhrSt5egkfmkgFMsT0tK4UueAD+yNnueuE7 O7mVpKXV+plvaS+fg3N0gYKFmqqGS9nM4aXbftr0F/OcXaCErulT17V2eajaeyIY44vv dk52op1f2RjfwcQc0cPxxMDUIaEB3y6IPHpWkEN7mI2ahHfwuXiikJlYZiJIpL9Ape1L TJwg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z5si8211238plh.133.2019.01.09.09.59.03; Wed, 09 Jan 2019 09:59:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732141AbfAIPOP (ORCPT + 99 others); Wed, 9 Jan 2019 10:14:15 -0500 Received: from iolanthe.rowland.org ([192.131.102.54]:43764 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1731728AbfAIPOP (ORCPT ); Wed, 9 Jan 2019 10:14:15 -0500 Received: (qmail 2161 invoked by uid 2102); 9 Jan 2019 10:14:14 -0500 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 9 Jan 2019 10:14:14 -0500 Date: Wed, 9 Jan 2019 10:14:14 -0500 (EST) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Ran Wang cc: Greg Kroah-Hartman , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 2/3] usb: ehci: fsl: Update register accessing for arm/arm64 platforms In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 9 Jan 2019, Ran Wang wrote: > > Why do you change this writel() into iowrite32be() but leave other instances > > of writel() unchanged? Was this a mistake? > > Yes, I didn't notice there are other writel() used in this file. > However, as I know, on both powerpc and arm SoC, EHCI FSL IP's memory mapped > register block is always Big-endian, so I'd like to replace all writel() with iowrite32be() > in this file. Is it necessary? > > Or I just replace them with ehci_writel() and select CONFIG_USB_EHCI_BIG_ENDIAN_MMIO? That should work okay. ehci_fsl_setup() sets ehci->big_endian_desc and ehci->big_endian_mmio according to the platform data, so you just have to make sure the platform data is initialized correctly. Alan Stern