diff options
| author | Trent Piepho <[email protected]> | 2019-05-10 17:49:08 +0000 |
|---|---|---|
| committer | Joe Hershberger <[email protected]> | 2019-07-15 13:32:25 -0500 |
| commit | 2529dea8931849c2bf8ee32963ee846e8e06e390 (patch) | |
| tree | d7aeb83923dc04f2892cc7d9eb7e29a9607d3e3d /include/linux/bitmap.h | |
| parent | c2df9b49ce295ad8ecbeccb7f1d22c9d83e1c0cd (diff) | |
net: phy: ti: Fix clock output DT property
The code block reading the DT property for the clock output control was
before the phy's DT node pointer was set, so it could never work. Move
it after the node pointer is set.
Also store the unsigned 32-bit property into an unsigned value, not a
signed value, as the former will cause a problem if value overflows.
For instance, if one were to add 0xffffffff as a code to mean the clock
output should be turned off.
Cc: Joe Hershberger <[email protected]>
Cc: Janine Hagemann <[email protected]>
Cc: Grygorii Strashko <[email protected]>
Signed-off-by: Trent Piepho <[email protected]>
Reviewed-by: Grygorii Strashko <[email protected]>
Acked-by: Joe Hershberger <[email protected]>
Diffstat (limited to 'include/linux/bitmap.h')
0 files changed, 0 insertions, 0 deletions
