[PATCH] Bluetooth: use wait_event API instead of open-coding it

2018-04-19 Thread John Keeping
by schedule_timeout() is the same as the original timeout (HCI_INIT_TIMEOUT on a system with HZ=1000). Use wait_event_interruptible_timeout() instead of open-coding similar behaviour which is subject to the spurious failure described above. Signed-off-by: John Keeping <j...@metanate.com> --- I saw pr

Re: [PATCH] stmmac: Fix phy without MDIO subnode

2016-03-24 Thread John Keeping
iour. > > > > Fixes: 88f8b1bb41c6 ("stmmac: Fix 'eth0: No PHY found' regression") > > Signed-off-by: John Keeping <j...@metanate.com> > > --- > > drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 2 +- > > 1 file changed, 1 insertion(+), 1

[PATCH] stmmac: Fix phy without MDIO subnode

2016-03-24 Thread John Keeping
as correct that the phy_bus_name test is unhelpful since we allocate "plat" in the same function and never set phy_bus_name so let's just drop the test which restores the previous behaviour. Fixes: 88f8b1bb41c6 ("stmmac: Fix 'eth0: No PHY found' regression") Signed-off-by: John Keeping <j.