[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160506222008.GA2073@lunn.ch>
Date: Sat, 7 May 2016 00:20:08 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Vivien Didelot <vivien.didelot@...oirfairelinux.com>
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel@...oirfairelinux.com,
"David S. Miller" <davem@...emloft.net>,
Florian Fainelli <f.fainelli@...il.com>
Subject: Re: [PATCH net-next 04/21] net: dsa: mv88e6xxx: factorize EEPROM
access
> @@ -2596,6 +2797,9 @@ int mv88e6xxx_setup_common(struct mv88e6xxx_priv_state *ps)
>
> INIT_WORK(&ps->bridge_work, mv88e6xxx_bridge_work);
>
> + if (mv88e6xxx_has(ps, MV88E6XXX_FLAG_EEPROM))
> + mutex_init(&ps->eeprom_mutex);
> +
This seems to be the only place MV88E6XXX_FLAG_EEPROM is checked. It
seems like mv88e6xxx_get_eeprom() and and mv88e6xxx_set_eeprom()
should also check this.
Andrew
Powered by blists - more mailing lists