Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754545AbdFWXhd (ORCPT ); Fri, 23 Jun 2017 19:37:33 -0400 Received: from mail-pg0-f46.google.com ([74.125.83.46]:35894 "EHLO mail-pg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753946AbdFWXhb (ORCPT ); Fri, 23 Jun 2017 19:37:31 -0400 From: Jakub Kicinski To: "Luis R. Rodriguez" Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, oss-drivers@netronome.com, Jakub Kicinski Subject: [PATCH] firmware: wake all waiters Date: Fri, 23 Jun 2017 16:37:02 -0700 Message-Id: <20170623233702.20564-1-jakub.kicinski@netronome.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 816 Lines: 24 Multiple devices may be waiting for firmware with the same name. In that case we will make them all use the same struct firmware_buf. When wake up happens make sure it's propagated to all of them. Signed-off-by: Jakub Kicinski --- drivers/base/firmware_class.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/firmware_class.c b/drivers/base/firmware_class.c index ac350c518e0c..c23b58e64b33 100644 --- a/drivers/base/firmware_class.c +++ b/drivers/base/firmware_class.c @@ -148,7 +148,7 @@ static void __fw_state_set(struct fw_state *fw_st, WRITE_ONCE(fw_st->status, status); if (status == FW_STATUS_DONE || status == FW_STATUS_ABORTED) - swake_up(&fw_st->wq); + swake_up_all(&fw_st->wq); } #define fw_state_start(fw_st) \ -- 2.11.0