Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp341834rwb; Sat, 17 Sep 2022 06:16:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4rUvPp3idyVQwUgTME5nKDS2XLB+vX1O60zWNwVo92MZF0GuKHKA+pNtjlSb8ijSh0pdZT X-Received: by 2002:a05:6a00:1390:b0:540:b6b6:e978 with SMTP id t16-20020a056a00139000b00540b6b6e978mr9680245pfg.8.1663420595487; Sat, 17 Sep 2022 06:16:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663420595; cv=none; d=google.com; s=arc-20160816; b=jbEqIACCBM4sFhc9w1tyORsC8cORoMOfibJAv+7cpYd8+WmCTXIggkN3+TrCXhDYW5 7FBavYgR60RmGIA+lzAhM+MCOn5uCgzIqXtGxUtW1TanvimW7UXSLW1GBYm1riMdQqKn ifiKMOYN/c8bHrP2d3zbbBsTo6W+zNQOx8Iwv024deMS03ckYxaP1iCKlJjfKtdiV6Km oT6vtWzBn+o4/+06bbwvvaaXNdb12FbaHQSIOTobIV2PiY5LJ0TsQ11QpVSagQ4qDmp5 4XXqR5HBp4QxUNPBl2Z8RP7f2HavIZhcS0c26fHtNDl41hLJgKy7gTmEl+uwKRRrM8B/ Z4Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Hsspq2K0v+TZF/0qtdQbwqQSIw7XuGACW7Jn9ChHKEA=; b=rB53J2M2fTjJGxdVfd5J2MF2aXjx0zdA6OAWINEnQe1eHNYdyQRTpOBejq+yfMnOJN mp+SYJQVYl3Wz4RxP6+tR0EnzoqBNzjkWf0QdyPaV4IlDHgsmQeEYs/NMWYnDtZS3jHR Mz7Xim+0E/fVsVu86v0AEmKngp1ZcpPiY3VPVylhxfQ8JtsvbCbZ0UsMqP5RZPWv7UGD qW4fvnxooMAIFl+ltyQMqaz0/nT33S6PuR5ozD0MAbc3zHPV63QaNQxKDZ+Zku3Ax5wM 0laSApfD3HNzki3o2G8U4CvCzQFuOVX6DpqCTPRqy4zGH6rFzsOrOubZok1FSlIEt2QY bVsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@wp.pl header.s=1024a header.b="nYBPN/4m"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wp.pl Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p18-20020a63f452000000b0042b2e4e8363si7826741pgk.286.2022.09.17.06.16.26; Sat, 17 Sep 2022 06:16:35 -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; dkim=pass (test mode) header.i=@wp.pl header.s=1024a header.b="nYBPN/4m"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wp.pl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229553AbiIQNLA (ORCPT + 64 others); Sat, 17 Sep 2022 09:11:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbiIQNK7 (ORCPT ); Sat, 17 Sep 2022 09:10:59 -0400 Received: from mx3.wp.pl (mx3.wp.pl [212.77.101.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F20812A258 for ; Sat, 17 Sep 2022 06:10:54 -0700 (PDT) Received: (wp-smtpd smtp.wp.pl 2058 invoked from network); 17 Sep 2022 15:10:52 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1663420252; bh=Hsspq2K0v+TZF/0qtdQbwqQSIw7XuGACW7Jn9ChHKEA=; h=From:To:Cc:Subject; b=nYBPN/4mj/EfSvovGakBMk0EmMWOdbAr+McHZIkWeCFgMcJeOJ8gNn6qmbvq2SANX HwXGfmj+t999vzE/GspC6qCblzbeVzqwU+4QOa6oSb3Umfu8lv4Dft6Z9VWyaa7Yhi 0lwOJzMvZ47qNX7znEMLcwVUI/VKRLbI4NW6Hy9A= Received: from 89-64-7-128.dynamic.chello.pl (HELO localhost) (stf_xl@wp.pl@[89.64.7.128]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 17 Sep 2022 15:10:52 +0200 Date: Sat, 17 Sep 2022 15:10:52 +0200 From: Stanislaw Gruszka To: Daniel Golle Cc: linux-wireless@vger.kernel.org, Helmut Schaa , Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Johannes Berg Subject: Re: [PATCH RESEND 01/15] rt2x00: define RF5592 in init_eeprom routine Message-ID: <20220917131052.GL17901@wp.pl> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-WP-MailID: 5f3f5e42c3a33ac0f0be4c553f8f19fe X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000000 [4TME] X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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 On Sat, Sep 17, 2022 at 12:04:21AM +0100, Daniel Golle wrote: > 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 Please add your's signed-off-by and fix the changelog. Patch fixes incorrect rf value encoded in eeprom, not a crash. IIRC crash itself was caused by incorrect rt2x00->eeprom_file pointer, happend when rt2800_init_eeprom() returned error. And should be alredy fixed in openwrt tree.