git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
[sfrench/cifs-2.6.git]
/
drivers
/
net
/
dsa
/
ocelot
/
seville_vsc9953.c
diff --git
a/drivers/net/dsa/ocelot/seville_vsc9953.c
b/drivers/net/dsa/ocelot/seville_vsc9953.c
index 110070a600412e7474017e69f01098dfc6652f32..9e9fd19e1d00cb27563d40c47840ec068f67bb1e 100644
(file)
--- a/
drivers/net/dsa/ocelot/seville_vsc9953.c
+++ b/
drivers/net/dsa/ocelot/seville_vsc9953.c
@@
-911,6
+911,8
@@
static int vsc9953_prevalidate_phy_mode(struct ocelot *ocelot, int port,
*/
static u16 vsc9953_wm_enc(u16 value)
{
+ WARN_ON(value >= 16 * BIT(9));
+
if (value >= BIT(9))
return BIT(9) | (value / 16);