Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 00E45C282C2 for ; Sun, 10 Feb 2019 17:39:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C889D213F2 for ; Sun, 10 Feb 2019 17:39:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726000AbfBJRj1 (ORCPT ); Sun, 10 Feb 2019 12:39:27 -0500 Received: from mail-it1-f196.google.com ([209.85.166.196]:54866 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725966AbfBJRj0 (ORCPT ); Sun, 10 Feb 2019 12:39:26 -0500 Received: by mail-it1-f196.google.com with SMTP id i145so20787039ita.4 for ; Sun, 10 Feb 2019 09:39:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NRA/bkAAwC6GOEzZjwwKbH5aKfxNbKNg2I/6gBJDsF4=; b=TkTePs8A528naI/eJtZiQJB6CXslY9GEG+9IjUxcZ45L0rtcRNT+daxyW+y0FtIM5r UH7Nom/clb0X6QiFciTmjFHDssipHNNV8z54+H003+0HIKV7zQvhm5vuxYCccfazNv+N gpHJlFbanyCSJrxJ4UvSuCOjZVRJUgXaBgc4dpmt2Ebqjkdj4Qqpga/qVJugTOJdtnes Cf8Xj6GtPnDsVh8NFdftDgkZ/6qO7qkd2S+kWE3H9o0kI9caEgAYy2Bk4trhu0hBQt7B hVR0olNigMF2s7skrnkUt0VNeVkYh9aJxTU2bM90vIOpRtcngxSLgwbvdO0Z00tE08zB nm9A== X-Gm-Message-State: AHQUAuZPH51M3JKxhzFQci+M904SindlAyhnhM0c9ETGAPYAfp9tA4ct SJtSrekdnAmKBOouh1pjoaoIAwL16M/8+IV78NNPEA== X-Google-Smtp-Source: AHgI3IblsfQ0r4e6aTBoKN8KsUQU6ctnK51lmVieztpm8FKmdNJnW89dmzQqX7sw71Qiia6ZggJAGjJ+ou5KKtYpDY0= X-Received: by 2002:a6b:6e11:: with SMTP id d17mr6818805ioh.297.1549820365649; Sun, 10 Feb 2019 09:39:25 -0800 (PST) MIME-Version: 1.0 References: <2003727085.234456.1549714119945@email.ionos.de> <20190210092943.GA2913@redhat.com> <307601671.418864.1549816737996@email.ionos.de> In-Reply-To: From: Lorenzo Bianconi Date: Sun, 10 Feb 2019 18:39:14 +0100 Message-ID: Subject: Re: [BUG] mt76x0u: Probing issues on Raspberry Pi 3 B+ To: Stefan Wahren Cc: Stanislaw Gruszka , Felix Fietkau , Doug Anderson , Minas Harutyunyan , linux-wireless , linux-usb@vger.kernel.org Content-Type: multipart/mixed; boundary="0000000000005c784705818dac3b" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org --0000000000005c784705818dac3b Content-Type: text/plain; charset="UTF-8" > > sorry for all the confusion (i never tested the foundation kernel). I made my functional tests with arm/multi_v7_defconfig which doesn't need any patches to work. > > > > Here the current results for next-2019-02-08: > > > > arm/multi_v7_defconfig w/o any patches -> wlan0 online > > arm64/defconfig w/o any patches -> timeout during firmware upload > > arm64/defconfig w Lorenzo's series -> driver probe, but dhcp doesn't work (could be a problem in my arm64 rootfs) > > arm/multi_v7_defconfig w Stanislaw's patch -> NULL pointer dereference > > Hi Stefan, Could you please try the following patch? It should fix the NULL pointer dereference crash. Anyway in order to enable mt76x0u on rpi3 we will need the RFC series Regards, Lorenzo > > I am looking at this issue, it is not related to Stanislaw's patch, > there is a bug in the error code path. > Anyway we will need to avoid SG since dwc_otg controller does not support it > > Regards, > Lorenzo > > > I will test linux-4.19 and linux-5.0-rc5 to get a better picture ... > > > > > > > > Stanislaw --0000000000005c784705818dac3b Content-Type: text/x-patch; charset="US-ASCII"; name="0001-mt76-fix-NULL-pointer-dereference-in-mt76u_mcu_deini.patch" Content-Disposition: attachment; filename="0001-mt76-fix-NULL-pointer-dereference-in-mt76u_mcu_deini.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_jrz6zu2q0 RnJvbSAxODFhNjk2YWRlZWI3N2JjNGFjMDUxOTA3NjMyNDA3MzUyMzRmZGJiIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpNZXNzYWdlLUlkOiA8MTgxYTY5NmFkZWViNzdiYzRhYzA1MTkwNzYzMjQw NzM1MjM0ZmRiYi4xNTQ5ODIwMjgwLmdpdC5tZUBsb3JlbnpvYmlhbmNvbmkubmV0PgpJbi1SZXBs eS1UbzogPGNvdmVyLjE1NDk4MjAyODAuZ2l0Lm1lQGxvcmVuem9iaWFuY29uaS5uZXQ+ClJlZmVy ZW5jZXM6IDxjb3Zlci4xNTQ5ODIwMjgwLmdpdC5tZUBsb3JlbnpvYmlhbmNvbmkubmV0PgpGcm9t OiBMb3JlbnpvIEJpYW5jb25pIDxtZUBsb3JlbnpvYmlhbmNvbmkubmV0PgpEYXRlOiBTdW4sIDEw IEZlYiAyMDE5IDE4OjM3OjM4ICswMTAwClN1YmplY3Q6IFtQQVRDSF0gbXQ3NjogZml4IE5VTEwg cG9pbnRlciBkZXJlZmVyZW5jZSBpbiBtdDc2dV9tY3VfZGVpbml0CgpTaWduZWQtb2ZmLWJ5OiBM b3JlbnpvIEJpYW5jb25pIDxtZUBsb3JlbnpvYmlhbmNvbmkubmV0PgotLS0KIGRyaXZlcnMvbmV0 L3dpcmVsZXNzL21lZGlhdGVrL210NzY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