Skip to contentSkip to conversation

libertas/sdio: make sure card enters power-off when firmware is loaded.

PATCH New NeilBrown 1 participant 1 message Oct 24, 2013 Networking drivers (wireless)

lore
Share & tools
lore

NeilBrown

author
#0 lore raw

PATCH 1/1 libertas/sdio: make sure card enters power-off when firmware is loaded.

Since firmware loading became async it is possible that if_sdio_finish_power_of is called with only one remaining runtime_pm reference, so it isn't safe to call pm_runtime_put_noidle. We must call pm_runtime_put().

drivers/net/wireless/libertas/if_sdio.c +1 -1
index 4557833..a39318b 100644
@@ -853,7 +853,7 @@ static void if_sdio_finish_power_on(struct if_sdio_card *card)
 			card->started = true;
 			/* Tell PM core that we don't need the card to be
 			 * powered now */
-			pm_runtime_put_noidle(&func->dev);
+			pm_runtime_put(&func->dev);
 		}
 	}