From mboxrd@z Thu Jan 1 00:00:00 1970 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=-5.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 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 DC703C3A59B for ; Mon, 19 Aug 2019 09:24:26 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ADD272087E for ; Mon, 19 Aug 2019 09:24:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="aRtxRQsD" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ADD272087E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ucw.cz Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=9f/3r4RYJ44zK2d+VQlCx1kL203BI1+Moo0jjP5Bwmw=; b=aRtxRQsDeGp1WCIgTr0vYda4U 7PR0o3LVNTnqc3B6wsKJVGy+OHWQ7HcAguD8R6WdOQYWt+47XCDNpKDIHJ+99YBxIftOFIKnPJ1Zi C5984zcdobmntgQOqUDgp0nGMurireycH5H3Ju2UAtIueBlnQ6OPefMvG+7te3PMmrkoPI5wrf6W5 JOzxAGz4Ol94js2khz9Fxoja5uzPOFsgrQhpJJYE4mNMiTm28RqrmDlfJ5+qi/gvUamM/54w2miDm TrQVn0nYvQr8cuc/9RW5nZc0nvORqD3Si7Ynum1oXJfUDApbpvyL+gKRhfBw993/Cj9Oank5o1M3k I/1/ck6mQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hzdtj-0006iY-Lc; Mon, 19 Aug 2019 09:24:19 +0000 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hzdtg-0006iC-0D for linux-arm-kernel@lists.infradead.org; Mon, 19 Aug 2019 09:24:17 +0000 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id B65278043B; Mon, 19 Aug 2019 11:24:01 +0200 (CEST) Date: Mon, 19 Aug 2019 11:24:14 +0200 From: Pavel Machek To: Michael Nazzareno Trimarchi Subject: Re: wifi on Motorola Droid 4 in 5.3-rc2 Message-ID: <20190819092414.GB21072@amd> References: <20190818104629.GA27360@amd> <20190818114332.GA32205@amd> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190819_022416_353571_D414F70D X-CRM114-Status: GOOD ( 16.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mpartap@gmx.net, Tony Lindgren , Merlijn Wajer , "open list:TI WILINK WIRELES..." , kernel list , Sebastian Reichel , nekit1000@gmail.com, Linux OMAP Mailing List , linux-arm-kernel Content-Type: multipart/mixed; boundary="===============8568476540708029932==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============8568476540708029932== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IiVenqGWf+H9Y6IX" Content-Disposition: inline --IiVenqGWf+H9Y6IX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > [ 13.653778] panel-dsi-cm 58004000.encoder:display: using lookup > > tables for GPIO lookup > > [ 13.661834] panel-dsi-cm 58004000.encoder:display: No GPIO consumer > > te found > > [ 14.756622] ------------[ cut here ]------------ > > [ 14.761352] WARNING: CPU: 0 PID: 20 at > > /data/fast/l/k/drivers/net/wireless/ti/wlcore/sdio.c:86 > > wl12xx_sdio_raw_read+0xa8/0x128 > > [ 14.772888] Modules linked in: > > [ 14.776062] CPU: 0 PID: 20 Comm: kworker/0:1 Tainted: G W > > 5.3.0-rc4-58571-gdbaece1 #85 > > [ 14.783630] Hardware name: Generic OMAP4 (Flattened Device Tree) > > [ 14.791381] Workqueue: events request_firmware_work_func >=20 > You have a timeout here. Can be that your reset sequence of the wifi > is not optimal because > is not responding? I tried delays and printks... WL12XX_REG_FUSE_BD_ADDR_1 read fails, and retrying does not really help. If you have idea how to debug/fix this, let me know... Best regards, Pavel diff --git a/drivers/net/wireless/ti/wl12xx/main.c b/drivers/net/wireless/t= i/wl12xx/main.c index 3c9c623..afb294a 100644 --- a/drivers/net/wireless/ti/wl12xx/main.c +++ b/drivers/net/wireless/ti/wl12xx/main.c @@ -1505,24 +1505,40 @@ static int wl12xx_get_fuse_mac(struct wl1271 *wl) { u32 mac1, mac2; int ret; - +=09 + mdelay(1); + printk("get_fuse_mac: %d\n", __LINE__); ret =3D wlcore_set_partition(wl, &wl->ptable[PART_DRPW]); if (ret < 0) goto out; =20 + mdelay(1); + printk("get_fuse_mac: %d\n", __LINE__); + ret =3D wlcore_read32(wl, WL12XX_REG_FUSE_BD_ADDR_1, &mac1); + if (ret < 0) { + printk("get_fuse_mac: X %d\n", __LINE__); + ret =3D wlcore_read32(wl, WL12XX_REG_FUSE_BD_ADDR_1, &mac1); + if (ret < 0) { + printk("get_fuse_mac: XX %d\n", __LINE__); ret =3D wlcore_read32(wl, WL12XX_REG_FUSE_BD_ADDR_1, &mac1); if (ret < 0) goto out; + } + } +=09 =20 + printk("get_fuse_mac: %d\n", __LINE__); ret =3D wlcore_read32(wl, WL12XX_REG_FUSE_BD_ADDR_2, &mac2); if (ret < 0) goto out; =20 + printk("get_fuse_mac: %d\n", __LINE__); /* these are the two parts of the BD_ADDR */ wl->fuse_oui_addr =3D ((mac2 & 0xffff) << 8) + ((mac1 & 0xff000000) >> 24); wl->fuse_nic_addr =3D mac1 & 0xffffff; =20 + printk("get_fuse_mac: %d\n", __LINE__); ret =3D wlcore_set_partition(wl, &wl->ptable[PART_DOWN]); =20 out: --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --IiVenqGWf+H9Y6IX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl1aar4ACgkQMOfwapXb+vJb9wCdEMS4069vsm0A0Ev1TelvVMac tEUAoMRMPsW6X4ytZQOHwh1J6znBX4KV =Zu6g -----END PGP SIGNATURE----- --IiVenqGWf+H9Y6IX-- --===============8568476540708029932== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============8568476540708029932==--