Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2647410imn; Tue, 2 Aug 2022 10:34:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR6FsjdZOgXL/js4iBlNkf1hNDIZTaYWt5POx66bkyJlNqOKsJBaFmYhTfETNDwYfZBiOkZt X-Received: by 2002:a17:906:9751:b0:730:a1c1:1c7 with SMTP id o17-20020a170906975100b00730a1c101c7mr3062499ejy.388.1659461672558; Tue, 02 Aug 2022 10:34:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659461672; cv=none; d=google.com; s=arc-20160816; b=xaHfwyFHV6UYxumENmWOvsAa4BF68XKwlt+IiwusnqAvqrDpEERerF5u7msHuvc6l+ EoeXquJ7JrC5h0nAGYfOLCZM28OODAuxTIbZP5L0+xZygXaEInj0TDrVdXASzHAMNOFR QCIuYTRYIvOULg9iixSO/jIXr/kRy7NdMgvu7wYmy2Jh5ghPYAkFaGyQ3eCDXfUVzOqn vF11mSRMaOaFW1iaUuh+D1zfV9TM5B/yJJjd4B52m8Pf79R8oEEOK9K8jEga58/9dsP/ h9i/uTA62nXFKZ5ip8acfuL4Kd8e8+SkNFofzALmnkqDqvTw489i+MQyAlrnx1w+dULM QisQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date; bh=r8ANEDX05XXAs0SmutUdteKnxKF8geMhIr45YKJIKjs=; b=Ys9tVIthPatQp0kyAjDpQKxDDtkcQmOej9/u1SDJJXMHWKaWZAK4MPBtN6RRn7cAHO FjCk2tryWO8W5rObITDksurceI+hQ5N8BSobxee7YZyCZv4I6qTH2lC2u8FV5xFN0yR1 n9q065yQ+jZxQ20SnU1KeJNNYE+8wSQJOXee3b3lOIrRMdrRKGB14hSxKL7SPikQ/nQo KY/+QQr4W9LzrMKbs3fGHWUyQe833ShJR5U+X8oXxCom8kXlsqG6IQCD48JFFAZYYPJ+ LMJ+ynjVWN02frh6pi6/Hjl+afYQGV7DlsOYx2N0U8ZAnjlvloVnARMlQ3O0vOdKpQbO KyIQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=short.pl Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xa11-20020a170906fd8b00b00722e3529906si3076278ejb.324.2022.08.02.10.34.08; Tue, 02 Aug 2022 10:34:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=short.pl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229755AbiHBRTD (ORCPT + 99 others); Tue, 2 Aug 2022 13:19:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233840AbiHBRTC (ORCPT ); Tue, 2 Aug 2022 13:19:02 -0400 Received: from mx01.ayax.eu (mx01.ayax.eu [188.137.98.110]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8FC239BBB for ; Tue, 2 Aug 2022 10:18:59 -0700 (PDT) Received: from [192.168.192.146] (port=52064 helo=nx64de-df6d00) by mx01.ayax.eu with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oIvXZ-0003VR-Qw; Tue, 02 Aug 2022 19:18:46 +0200 Date: Tue, 2 Aug 2022 19:18:44 +0200 From: Grzegorz Szymaszek To: Larry Finger Cc: Greg KH , Phillip Potter , Grzegorz Szymaszek , linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Subject: [PATCH] staging: r8188eu: add firmware dependency Message-ID: Mail-Followup-To: Grzegorz Szymaszek , Larry Finger , Greg KH , Phillip Potter , linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The old rtl8188eu module, removed in commit 55dfa29b43d2 ("staging: rtl8188eu: remove rtl8188eu driver from staging dir") (Linux kernel v5.15-rc1), required (through a MODULE_FIRMWARE call()) the rtlwifi/rtl8188eufw.bin firmware file, which the new r8188eu driver no longer requires. I have tested a few RTL8188EUS-based Wi-Fi cards and, while supported by both drivers, they do not work when using the new one and the firmware wasn't manually loaded. According to Larry Finger, the module maintainer, all such cards need the firmware and the driver should depend on it (see the linked mails). Add a proper MODULE_FIRMWARE() call, like it was done in the old driver. Thanks to Greg Kroah-Hartman and Larry Finger for quick responses to my questions. Link: https://answers.launchpad.net/ubuntu/+source/linux-meta-hwe-5.15/+question/702611 Link: https://lore.kernel.org/lkml/YukkBu3TNODO3or9@nx64de-df6d00/ Signed-off-by: Grzegorz Szymaszek --- drivers/staging/r8188eu/os_dep/os_intfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/r8188eu/os_dep/os_intfs.c b/drivers/staging/r8188eu/os_dep/os_intfs.c index 891c85b088ca..5bd3022e4b40 100644 --- a/drivers/staging/r8188eu/os_dep/os_intfs.c +++ b/drivers/staging/r8188eu/os_dep/os_intfs.c @@ -18,6 +18,7 @@ MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("Realtek Wireless Lan Driver"); MODULE_AUTHOR("Realtek Semiconductor Corp."); MODULE_VERSION(DRIVERVERSION); +MODULE_FIRMWARE("rtlwifi/rtl8188eufw.bin"); #define CONFIG_BR_EXT_BRNAME "br0" #define RTW_NOTCH_FILTER 0 /* 0:Disable, 1:Enable, */ -- 2.35.1