]> Pileus Git - ~andy/linux/commit
sfc: Only bind to EF10 functions with the LinkCtrl and Trusted flags
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 7 Oct 2013 19:10:11 +0000 (20:10 +0100)
committerBen Hutchings <bhutchings@solarflare.com>
Mon, 7 Oct 2013 19:11:19 +0000 (20:11 +0100)
commitecb1c9cc215cb5a4390b714d8b09de637f54fa3f
tree551c8808e59142af96e2161e819d3e77421974a1
parent568d7a001bd5612a280e1026cce7e6e2e16b7687
sfc: Only bind to EF10 functions with the LinkCtrl and Trusted flags

Although we do not yet enable multiple PFs per port, it is possible
that a board will be reconfigured to enable them while the driver has
not yet been updated to fully support this.

The most obvious problem is that multiple functions may try to set
conflicting link settings.  But we will also run into trouble if the
firmware doesn't consider us fully trusted.  So, abort probing unless
both the LinkCtrl and Trusted flags are set for this function.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/mcdi.c