FreeBSD Bugzilla – Attachment 190368 Details for
Bug 225713
Zynq/Zedboard GPIO driver can reset USB port on some boards
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch for sys/arm/xilinx/zy7_gpio.c
patch.gpio_fix.txt (text/plain), 941 bytes, created by
Thomas Skibo
on 2018-02-06 21:44:52 UTC
(
hide
)
Description:
patch for sys/arm/xilinx/zy7_gpio.c
Filename:
MIME Type:
Creator:
Thomas Skibo
Created:
2018-02-06 21:44:52 UTC
Size:
941 bytes
patch
obsolete
>Index: sys/arm/xilinx/zy7_gpio.c >=================================================================== >--- sys/arm/xilinx/zy7_gpio.c (revision 328646) >+++ sys/arm/xilinx/zy7_gpio.c (working copy) >@@ -298,24 +298,6 @@ > return (0); > } > >-static void >-zy7_gpio_hw_reset(struct zy7_gpio_softc *sc) >-{ >- int i; >- >- for (i = 0; i < NUMBANKS; i++) { >- WR4(sc, ZY7_GPIO_DATA(i), 0); >- WR4(sc, ZY7_GPIO_DIRM(i), 0); >- WR4(sc, ZY7_GPIO_OEN(i), 0); >- WR4(sc, ZY7_GPIO_INT_DIS(i), 0xffffffff); >- WR4(sc, ZY7_GPIO_INT_POLARITY(i), 0); >- WR4(sc, ZY7_GPIO_INT_TYPE(i), >- i == 1 ? 0x003fffff : 0xffffffff); >- WR4(sc, ZY7_GPIO_INT_ANY(i), 0); >- WR4(sc, ZY7_GPIO_INT_STAT(i), 0xffffffff); >- } >-} >- > static int zy7_gpio_detach(device_t dev); > > static int >@@ -338,9 +320,6 @@ > return (ENOMEM); > } > >- /* Completely reset. */ >- zy7_gpio_hw_reset(sc); >- > sc->busdev = gpiobus_attach_bus(dev); > if (sc->busdev == NULL) { > zy7_gpio_detach(dev);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 225713
: 190368