Deleted Added
full compact
uss820dci.c (187183) uss820dci.c (188409)
1/* $FreeBSD: head/sys/dev/usb2/controller/uss820dci.c 187183 2009-01-13 19:05:51Z thompsa $ */
1/* $FreeBSD: head/sys/dev/usb2/controller/uss820dci.c 188409 2009-02-09 21:47:39Z thompsa $ */
2/*-
3 * Copyright (c) 2008 Hans Petter Selasky <hselasky@freebsd.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright

--- 1320 unchanged lines hidden (view full) ---

1330 /* wait a little for things to stabilise */
1331 DELAY(100);
1332 }
1333
1334 /* do a pulldown */
1335 uss820dci_pull_down(sc);
1336
1337 /* wait 10ms for pulldown to stabilise */
2/*-
3 * Copyright (c) 2008 Hans Petter Selasky <hselasky@freebsd.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright

--- 1320 unchanged lines hidden (view full) ---

1330 /* wait a little for things to stabilise */
1331 DELAY(100);
1332 }
1333
1334 /* do a pulldown */
1335 uss820dci_pull_down(sc);
1336
1337 /* wait 10ms for pulldown to stabilise */
1338 usb2_pause_mtx(&sc->sc_bus.bus_mtx, 10);
1338 usb2_pause_mtx(&sc->sc_bus.bus_mtx, hz / 100);
1339
1340 /* check hardware revision */
1341 temp = USS820_READ_1(sc, USS820_REV);
1342
1343 if (temp < 0x13) {
1344 USB_BUS_UNLOCK(&sc->sc_bus);
1345 return (USB_ERR_INVAL);
1346 }

--- 1143 unchanged lines hidden ---
1339
1340 /* check hardware revision */
1341 temp = USS820_READ_1(sc, USS820_REV);
1342
1343 if (temp < 0x13) {
1344 USB_BUS_UNLOCK(&sc->sc_bus);
1345 return (USB_ERR_INVAL);
1346 }

--- 1143 unchanged lines hidden ---