Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp103214rwn; Fri, 16 Sep 2022 16:16:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ntTBbyEy1bHO1+/lPLHHQym0bvNKdxpVBO52uCFJQhYTf7TN0AS5YEKSy6ZpcWeAM7YuF X-Received: by 2002:a63:e118:0:b0:438:7603:8d6e with SMTP id z24-20020a63e118000000b0043876038d6emr6628403pgh.72.1663370212954; Fri, 16 Sep 2022 16:16:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663370212; cv=none; d=google.com; s=arc-20160816; b=OkMBYtSEIRZktzK2nWJUxt1upO4nt+2jNFZzna7Voi3RLFc1WRM6CdUN6L3wwydeFz 1Zv8sZFR5gu2ei4ufqV9C7x5HRiFrU6qilhA65w8O5C+xzLE++BBH8zV8DJJnKY/a4IQ y3878WzqP/kvc3ap/AQvbsVm2TAB2kERFnIVvQDKIE6EFEwwgtCNJItBldrt+zpAT7L2 lMD381RhXwUDz0GRrzdvSmyZSs5bTzFAVjyyM89JPCdWZfC7kHBxN+Ay2Z++29ID34aM g5eWm4PT1JYNqZcMgEoII5Z9GQJYxGHskWndKSm2nRfir1N9JH6WRmFeTIJIDh8i02r5 vV2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-disposition :mime-version:message-id:subject:cc:to:from:date; bh=b3r5J0FbT+dMyph1u8mrpyxsa+I5+VVXpA4TXC03ECQ=; b=gLoPD7/7Ip0PjwQo2TzPwUx4/y07DO3Tvp3H+CMyIHcvT4RKNczx4CeXeyFU3SBAG2 qvzz6gDCwxONf9AGp/lszKgG6foEthTHIqPjQt9/lT+D4g270ybP6oSsaU9wjE7whtnb 1B+UpJr85TnSMAuCx9xkfHmmu1omUZBUE9/npZ1kpKnOagT9HJN1Eq738jj13P6AJ2e3 1GOui59hXnAt2axMrdthaVAxNezwJwGI4fgYnscvmnliBS6egGlsf9dxKOwKlH5/tCmc isMcnkox2rvfT/KUbCzN628kz8fpTznhmx75gwokhiUufLcIr7JERM9c8gYm+4SGkC90 v8tg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j13-20020a170903024d00b0017145b821d2si12656872plh.477.2022.09.16.16.16.43; Fri, 16 Sep 2022 16:16:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229849AbiIPXPy (ORCPT + 64 others); Fri, 16 Sep 2022 19:15:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229869AbiIPXPv (ORCPT ); Fri, 16 Sep 2022 19:15:51 -0400 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91D7382D09 for ; Fri, 16 Sep 2022 16:15:46 -0700 (PDT) Received: from local by fudo.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1oZKNm-0006z8-3B; Sat, 17 Sep 2022 01:04:27 +0200 Date: Sat, 17 Sep 2022 00:04:21 +0100 From: Daniel Golle To: linux-wireless@vger.kernel.org, Stanislaw Gruszka , Helmut Schaa Cc: Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Johannes Berg Subject: [PATCH RESEND 01/15] rt2x00: define RF5592 in init_eeprom routine Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, 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-wireless@vger.kernel.org From: Tomislav Požega This patch fixes following crash on Linksys EA2750 during 5GHz wifi init: [ 7.955153] rt2800pci 0000:01:00.0: card - bus=0x1, slot = 0x0 irq=4 [ 7.962259] rt2800pci 0000:01:00.0: loaded eeprom from mtd device "Factory" [ 7.969435] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5592, rev 0222 detected [ 7.977348] ieee80211 phy0: rt2800_init_eeprom: Error - Invalid RF chipset 0x0000 detected [ 7.985793] ieee80211 phy0: rt2x00lib_probe_dev: Error - Failed to allocate device [ 7.993569] CPU 0 Unable to handle kernel paging request at virtual address 00000024, epc == 800c8f54, ra == 80249ff8 [ 8.004408] Oops[#1]: Signed-off-by: Tomislav Požega --- drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c index 18102fbe36d6cc..cc9c5554fdc9ca 100644 --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c @@ -9435,6 +9435,8 @@ static int rt2800_init_eeprom(struct rt2x00_dev *rt2x00dev) rf = RF3853; else if (rt2x00_rt(rt2x00dev, RT5350)) rf = RF5350; + else if (rt2x00_rt(rt2x00dev, RT5592)) + rf = RF5592; else rf = rt2x00_get_field16(eeprom, EEPROM_NIC_CONF0_RF_TYPE); -- 2.37.3