Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3237847imu; Fri, 18 Jan 2019 07:08:10 -0800 (PST) X-Google-Smtp-Source: ALg8bN5XwFndO4sivL6y7tOYzNNsZc88LejFLcnbd7D4TT8lnIpTZaZOsst6oD70pS8I+WVqrb+R X-Received: by 2002:a17:902:5066:: with SMTP id f35mr19630906plh.78.1547824090890; Fri, 18 Jan 2019 07:08:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547824090; cv=none; d=google.com; s=arc-20160816; b=Z2RpIIqoKsR8binOTlrfHFo0IjXPEkx70+txfwJdi1aFDzKWdCx57P4vvbtRBucchp DxgAvA9VwbnUdqwQYSGz0xmhm+cdvp6queKhB2EILRpDIBfP/8+jhKPtCJaXyt3YVvpS 5tAhvqKqwSM5BnYBJ3LhvAOZNjWRvii1uows+ZEaEwsF0JhV7NVQLZp6NUkDaSGCb9nO kDgimKnLpEaD8VeVL72bRN3iDqAh2jgxKx+p/Fcaycy0U8pWeWFhnN3gNXhV+LNvcWAW XC//41zzSfhbr81o/3x9nrp9B+xss4BZd8fMKKoaOrwN+jhpiaGC2u/bP+NWopm+tq+1 371g== 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=awzCrnJ8e3Od79NTcmEKmLiqZ2h7Zp0/0FxPOgdBCQc=; b=qFkUjCPYBIFa8KqRS6DSuLivlOm/aOg97HC0ylfWiLqeoyvFpFl1I/YFImzMiCkKSf NgCJqpIb0UCAjuTWFmLTtrynu+sf7waj6d07NHEiQaSptbdT1i86Hr7Mfg5wwx++U9nz O+9DEdbOmQRYE43SxVvEnJ/fYz9oNRpCNxWXLGoUTlZScz1FLCCASz02Ek0cyLX7jdXL fudpVDcBa8d/7VumMPmHf+/FDUzveVDKmSqyvoO0Eb5S8yJoEp9e2fCwZTFhR6n1JQ2l Et/MUWAccSBHt5C/MNgYcbxhzZRUwQ8pKNmG7En3/CiAMHA8tQ0/KqgGMal17X+/BX9D DfoQ== 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 bg7si4536448plb.149.2019.01.18.07.07.52; Fri, 18 Jan 2019 07:08:10 -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 S1727702AbfARPEv (ORCPT + 99 others); Fri, 18 Jan 2019 10:04:51 -0500 Received: from iolanthe.rowland.org ([192.131.102.54]:44040 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1727415AbfARPEu (ORCPT ); Fri, 18 Jan 2019 10:04:50 -0500 Received: (qmail 2282 invoked by uid 2102); 18 Jan 2019 10:04:49 -0500 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 18 Jan 2019 10:04:49 -0500 Date: Fri, 18 Jan 2019 10:04:49 -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 v2 1/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 Fri, 18 Jan 2019, Ran Wang wrote: > Hi Alan, > > On January 18, 2019 00:08, Alan Stern wrote: > > > > On Thu, 17 Jan 2019, Ran Wang wrote: > > > > > arm/arm64's io.h doesn't define clrbits32() and clrsetbits_be32(), > > > which causing compile failure on some Layerscape Platforms (such as > > > LS1021A and LS2012A which also integrates FSL EHCI controller). So use > > > ioread32be()/iowrite32be() instead to make it workable on both powerpc > > > and arm. > > > > For patches 1/3 and 3/3: > > > > Acked-by: Alan Stern > > > > Have you tested these on the Layerscape platforms to make sure they work > > correctly? > > To be honest, the first goal of this patch set is to fix compile issue. > And I have verified it on LS1012AQDS, and encountered failure as below: > > [ 2.966755] ehci-fsl: Freescale EHCI Host controller driver > [ 2.973113] fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller > [ 2.979851] fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 3 > [ 2.987549] fsl-ehci fsl-ehci.0: irq 22, io mem 0x08600000 > [ 3.005769] fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 0.00 > [ 3.012122] hub 3-0:1.0: USB hub found > [ 3.016088] hub 3-0:1.0: config failed, hub doesn't have any ports! (err -19) > > However, actually the only board which I can find so far has known HW issue on > EHCI part, so I plan to find other platform to do complete verification when > possible. And will submit other fix if needed. Is that OK? > > BTW, for powerpc platform, I've tested on a T1042AD4RDB and USB worked fine with it. Okay, that's good. Alan Stern