]> git.dujemihanovic.xyz Git - u-boot.git/commit
marvell: comphy_a3700: fix bitmask
authorAndre Przywara <andre.przywara@arm.com>
Wed, 16 Nov 2016 00:50:10 +0000 (00:50 +0000)
committerTom Rini <trini@konsulko.com>
Sun, 4 Dec 2016 18:55:02 +0000 (13:55 -0500)
commit429033659d574bec966718de19eb732b99f3a9af
treeb518c2929f861e855ddc0dc91bc24feacd8f7fd6
parentb8d4fad3bcf606b286962cc0c2251ec6be7d7909
marvell: comphy_a3700: fix bitmask

Obviously the mask for the rx and tx select field cannot be right,
as it would overlap in one and exceed the 32-bit register in the other
case. From looking at the neighbouring bits it looks like the mask
should be really 4 bits wide instead of 8.

Pointed out by a GCC 6.2 (default) warning.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/phy/marvell/comphy_a3700.h