From owner-freebsd-arm@freebsd.org  Tue Feb  6 21:44:53 2018
Return-Path: <owner-freebsd-arm@freebsd.org>
Delivered-To: freebsd-arm@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2B80DF0990D
 for <freebsd-arm@mailman.ysv.freebsd.org>;
 Tue,  6 Feb 2018 21:44:53 +0000 (UTC)
 (envelope-from bugzilla-noreply@freebsd.org)
Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org
 [IPv6:2001:1900:2254:206a::19:3])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client CN "mxrelay.ysv.freebsd.org",
 Issuer "Let's Encrypt Authority X3" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id B7FC1836D8
 for <freebsd-arm@FreeBSD.org>; Tue,  6 Feb 2018 21:44:52 +0000 (UTC)
 (envelope-from bugzilla-noreply@freebsd.org)
Received: from kenobi.freebsd.org (kenobi.freebsd.org
 [IPv6:2001:1900:2254:206a::16:76])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 068A41A50F
 for <freebsd-arm@FreeBSD.org>; Tue,  6 Feb 2018 21:44:52 +0000 (UTC)
 (envelope-from bugzilla-noreply@freebsd.org)
Received: from kenobi.freebsd.org ([127.0.1.118])
 by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w16LipR9096195
 for <freebsd-arm@FreeBSD.org>; Tue, 6 Feb 2018 21:44:51 GMT
 (envelope-from bugzilla-noreply@freebsd.org)
Received: (from www@localhost)
 by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w16Lip5P096194
 for freebsd-arm@FreeBSD.org; Tue, 6 Feb 2018 21:44:51 GMT
 (envelope-from bugzilla-noreply@freebsd.org)
X-Authentication-Warning: kenobi.freebsd.org: www set sender to
 bugzilla-noreply@freebsd.org using -f
From: bugzilla-noreply@freebsd.org
To: freebsd-arm@FreeBSD.org
Subject: [Bug 225713] Zynq/Zedboard GPIO driver can reset USB port on some
 boards
Date: Tue, 06 Feb 2018 21:44:52 +0000
X-Bugzilla-Reason: AssignedTo
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: Base System
X-Bugzilla-Component: arm
X-Bugzilla-Version: CURRENT
X-Bugzilla-Keywords: 
X-Bugzilla-Severity: Affects Only Me
X-Bugzilla-Who: thoma555-bsd@yahoo.com
X-Bugzilla-Status: New
X-Bugzilla-Resolution: 
X-Bugzilla-Priority: ---
X-Bugzilla-Assigned-To: freebsd-arm@FreeBSD.org
X-Bugzilla-Flags: 
X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform
 op_sys bug_status bug_severity priority component assigned_to reporter
 attachments.created
Message-ID: <bug-225713-7@https.bugs.freebsd.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-BeenThere: freebsd-arm@freebsd.org
X-Mailman-Version: 2.1.25
Precedence: list
List-Id: "Porting FreeBSD to ARM processors." <freebsd-arm.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-arm>,
 <mailto:freebsd-arm-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-arm/>
List-Post: <mailto:freebsd-arm@freebsd.org>
List-Help: <mailto:freebsd-arm-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-arm>,
 <mailto:freebsd-arm-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 06 Feb 2018 21:44:53 -0000

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225713

            Bug ID: 225713
           Summary: Zynq/Zedboard GPIO driver can reset USB port on some
                    boards
           Product: Base System
           Version: CURRENT
          Hardware: arm
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: arm
          Assignee: freebsd-arm@FreeBSD.org
          Reporter: thoma555-bsd@yahoo.com

Created attachment 190368
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D190368&action=
=3Dedit
patch for sys/arm/xilinx/zy7_gpio.c

The Zynq/Zedboard GPIO driver attempts to tri-state all GPIO pins on boot up
but the order in which I reset the hardware can cause the pins to be briefly
held low before being tri-stated.  This is a problem on boards that use GPIO
pins to reset devices.

In particular, the Zybo and ZC-706 boards use a GPIO pin as a USB PHY reset=
.=20
If U-boot enables the USB port before booting the kernel, the GPIO driver
attach causes a glitch on the USB PHY reset and the USB port loses power.  =
My
fix is to have the GPIO driver leave the pins in whatever configuration U-b=
oot
placed them.

--=20
You are receiving this mail because:
You are the assignee for the bug.=