From patchwork Sun Dec 30 11:38:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 10745075 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7348E6C2 for ; Sun, 30 Dec 2018 11:39:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 10AF127FE4 for ; Sun, 30 Dec 2018 11:39:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0401A28AAB; Sun, 30 Dec 2018 11:39:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A619527FE4 for ; Sun, 30 Dec 2018 11:39:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726227AbeL3Liq (ORCPT ); Sun, 30 Dec 2018 06:38:46 -0500 Received: from mout.web.de ([212.227.15.14]:56771 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725971AbeL3Liq (ORCPT ); Sun, 30 Dec 2018 06:38:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1546169894; bh=KXZfDwshm/FJGxu0rScN7SO1Em2NUsg9uBqnj5WMhyk=; h=X-UI-Sender-Class:To:Cc:From:Subject:Date; b=q1BmTV9cWOxHkdOqhEgsas5LnJppa6rsnWVp8Be6BGogavKbkT8Xy+GPdDd1i/KwK ERRJk8mvF5nCR3qWI5bGQKiD4f4O1Ay132Bj3T1oIvm8CRizJjxne58DeS8d8FUwDh uYpolZS5gVu9kDI4WjdPxa0TTc09KkMBXqeCqdoM= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from [192.168.1.10] ([95.157.57.47]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0M09z2-1hTBbV3YQG-00uEu1; Sun, 30 Dec 2018 12:38:13 +0100 To: Linux Kernel Mailing List , linux-arm-kernel , Wei Xu Cc: Ryan Grachek , John Stultz , linux-wireless@vger.kernel.org, "Reizer, Eyal" , Valentin Schneider From: Jan Kiszka Subject: [PATCH] arm64: dts: hikey: Give wifi some time after power-on Message-ID: <6ccac7db-3ab7-e396-90be-8681a8ee336b@web.de> Date: Sun, 30 Dec 2018 12:38:11 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 Content-Language: en-US X-Provags-ID: V03:K1:un60TQF6vezWeQPfwPpE6ncRDplfXim5XjEifJSImVhG+OOJZWm J/drw4EU+b0NwRVG2NKNd8l7VKFnycpQXraoZqJogIDhovZrB0JM5MYxbXfGMc/MIxhXv5b UEXhqYGVfngD5dnGVl69rXEpYLHR5lEV3Yv8aKqrzm1iCM78XZzIO01DeEvse0m65i5zyg/ DLJlDSTX2fosFaqQPsiLw== X-UI-Out-Filterresults: notjunk:1;V03:K0:l0OLpdLXsoE=:YFuKtvjd2x8LOTB2lDrwRi zITKbEjIDlDYgfyOnM1FpIclXjQuY/BwJ0or2pSPCMQUgG1R9rcuoEiIkK4ut+qx/EOpqDB8V 1uC/nhIrJ5nsqRD5cyuM/R6xl/Lv/J9fhIELlOFjTSpxdyw/VvAlcrtEAesHTQZdIAtneTCqJ ln77a1tL4qGEiRwXll7XTQUGa5S6buPLe4+aSoYaZE97NRKsXZlvvon8RKOYk4NrW/JbIwbPR iZx7ACW9UjKuoO86LTkFVaArVKyH1I9CDVkXnfyN2Crp8WJZdQrOZ8+zGf46TGTB3WSxnGgXS CTIp8GJM5dx1JV1+Iq6A1tn2hOAHWXHRJ9k6hiv6ZbHQdYqmi8AKHYYYqtnGyS96d0RANMTLp dqIIByfg9A5g8oUkKgquVJVDsNq4VlR23YQ05SNxVHGe9aHTYKmJoJygfnhyzXamAv0oLk3wF sfBhQXulAUHKmp7zngF9hbb0BGCeWlBnkVEMt41dmpgedSw0PPJ27KzpGQBmpK3Ph7IKcmKaQ Lke68sCiJrpMxanu07rju7PNhs+9i78I0Rd3/UJ7WoPbpnv3vAKx0y+a4gs+afS2SE2/YTYoZ fW+6rk1+WdZGlxE03lDw8BGvCzenQsA/+Sx/8LD7NrUn+19vmvLdjDRgNF54GObPRrnMWU8mz kJ1VgQVnqHDg45t9+q2HYhIyUZaAilgRzmi6mITX1xT2q8jF3ZMVcQXzmYQZyzK+N3dFssAgn XdD0GKWyCTV/V7IOfX5T+oCeA6JODL5TOVS9+DgrAotFTxs7ojhZYF9ZggprT4el0YyeMeELK 7p+9Tr0fx02RQ490l+Ntr1GAu3mx6bzYPLp7kbwcqN7XfWmFP0P71lZrnVU2sedsGImEc6LKy NUva2KEQ/n6B76pc7tTTOlbAqsc7WJU7TB54/Yze0qQUiwz2iZl0d4U640z3Yz Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jan Kiszka Somewhere along recent changes to power control of the wl1835, power-on became very unreliable on the hikey, failing like this: wl1271_sdio: probe of mmc2:0001:1 failed with error -16 wl1271_sdio: probe of mmc2:0001:2 failed with error -16 After playing with some dt parameters and comparing to other users of this chip, it turned out we need some power-on delay to make things stable again. In contrast to those other users which define 200 ms, the hikey is already very happy with 1 ms. Signed-off-by: Jan Kiszka --- Tested with 4.19 and linus/master. arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts index f4964bee6a1a..1e771bf201b9 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts +++ b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts @@ -118,6 +118,7 @@ reset-gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; clocks = <&pmic>; clock-names = "ext_clock"; + post-power-on-delay-ms = <1>; power-off-delay-us = <10>; };