if_rk_dwc: Fix delays handling
authormanu <manu@FreeBSD.org>
Wed, 20 Jun 2018 14:45:26 +0000 (14:45 +0000)
committermanu <manu@FreeBSD.org>
Wed, 20 Jun 2018 14:45:26 +0000 (14:45 +0000)
commit31dbcedad5db07db61f4f3c16381fde19128cfb3
tree456ea288e259d65541c9c2f5d34f8fbf5e822c3d
parent8cdb928f9cef337a3da5a24357b325774e12b9cf
if_rk_dwc: Fix delays handling

The property are named {t,r}x_delay and not {t,r}-delay.
The upper bits of the register are a mask of which bits is allowed
to be written, set it otherwise we write nothing.
OF_getencprop returns <0 = for an error.

Pointy Hat: myself
Reported by: jmcneill (delay and mask bits)
sys/arm64/rockchip/if_dwc_rk.c