Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp288981ybm; Tue, 26 May 2020 17:09:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYSeIBAw7KbYhDyBoq7tAUJYgC72yeZCSuvjnI8L4MQ713cTWoVti2QvCKTuCI7WmCw3hU X-Received: by 2002:a17:906:7a4f:: with SMTP id i15mr3420106ejo.71.1590538196329; Tue, 26 May 2020 17:09:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590538196; cv=none; d=google.com; s=arc-20160816; b=J3gZ98TE30OEV59+3Mj07FkM0PBFrRGpWxdoxsPehH7FCpmBX35jyvbS0UwDhWuhUi jxcoLCxcM9KBbKO/UKcHTTPGfRrow+ZuxglJdmiFOi6IFtMI6dtQudTsMQs8d8YEDRU5 8c8dYsifayf1LIMvtcWxni35ueqcL4VVCOSTIirfrq4ESJ9KpPeddsEZlPinLJsOZXXT 0xXTWkG+nfSxp/qzDm2hDEpxfVWCWRzf9Czp1rDQRzQotmJXng2ZbF+oC+/9gCZTpUUE TZpE+uAFKe6its3YJ83VyghYF0XUgtNPsNwinhvIRAQV+huyv2tFya4pio1M56nnouMG pYIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=yS1DoO/K1G+meTRAQqLkUWF4N4+Wqw/IwFwkXLkuTd8=; b=xsqhBtKUGNC6JhTcWibYgfrFKKnlI19T3957731DzkYLSyZumO6CogIoNYhRowCYOI q1pMtYDfaT4P/sL95SthME5onV7ge+XqOzpLYMMgIeCuTrPLJs/Fu8U1ZDUdPyfMQ8RO GWgGrh+zF0FoMwCSRUkhmfYy93jYUWwRdpw10hjw2V5pt3jWR/GDp6eajHjtFT13ypqw u6k0aMYH+pHVzwkm2cQQE/HiaFo+s/z0VbCuwvmJebPvmDSSB5mdFigXkCFPPNfRUJum f4iCu1RHBnM2J6bXT1Czn2pYliQsHqBwqt+4JTAdDH0G9ps1d2qoiIW4ExBqlUJ35Q8X kuig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=HKVR2q9J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k13si718863ejr.459.2020.05.26.17.09.32; Tue, 26 May 2020 17:09:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=HKVR2q9J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389910AbgEZUOA (ORCPT + 99 others); Tue, 26 May 2020 16:14:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389641AbgEZUN7 (ORCPT ); Tue, 26 May 2020 16:13:59 -0400 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30B3FC03E96D for ; Tue, 26 May 2020 13:13:59 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id h21so25219961ejq.5 for ; Tue, 26 May 2020 13:13:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=yS1DoO/K1G+meTRAQqLkUWF4N4+Wqw/IwFwkXLkuTd8=; b=HKVR2q9JAXogkKSM9GCjIMO45dD/mqr+8Qm4/bhisxoqsjyY1VCl3gTKI+zI2MR+g6 zNeE+aaTEDjb1GAWD0JxMAtB1o9ZlT4+edenoQNwE/NxJScGPJHWzyQpnU+PKPaUddic b8g7RoKAEL4Qwt3xUnps/M8ts30bRF1Qo4n8YjzgtHa48pSQO+Q0berSafuUNJEPIylJ VYYLnbVcy+Rj+0tkyzOyVbyb9woutUyic3Gd7f7bYhoOiz3+I6zFquEz3rEAPewBTjXs RhFoGU7VfdQIfL9sf7VDWNqt85P/xt2tc8B8Cv6EYADszYvM0wt2AL+YaobhMHEH+1lY fpMw== 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:content-transfer-encoding; bh=yS1DoO/K1G+meTRAQqLkUWF4N4+Wqw/IwFwkXLkuTd8=; b=ZJ7lBSc0Eel6BuSr1QzTxpMhDRxuDHDGuvsOLH0EAFW6zMgc8dvdhrRgpDD0L8icw7 A3isJ/EO408BeHNxYY07yPoXVzuNko+2lnPF4IiWDlTt6ec+kJgusr8eKWMZs3ZAAIwQ hwieLgFcHldGqhKdnINOBcpEw1VEJ6UrAIgqvgbscEzDt4BUSM+BwWC/32STq7g/hG3h +erGj+15I7wZ5vvkGguzjjRik8bitj/3v5rvwaZPJMNREOxEIxUY6gpiATW+MOeNPyRD 5R1g8FBd+/+Dns0FxRLUr/dCq5FK3o1u8pr5y3IuGHY93yxOFP95x3/oN/18bLO4bPkp 3uDg== X-Gm-Message-State: AOAM530sL73qysXwchKa8oTLFgH50lnuOGNQCXK0/BkcWoSACNxC07uS uBZCErQcW08N1l5gIr4YWeOaydKWHTqsH5bF2mcci3+H X-Received: by 2002:a17:906:abce:: with SMTP id kq14mr2513446ejb.187.1590524037659; Tue, 26 May 2020 13:13:57 -0700 (PDT) MIME-Version: 1.0 References: <22af498b-44a0-ced3-86f3-114427a73910@o2online.de> <5de6db87-a71f-d14c-390d-b0caeab5d650@o2online.de> <813dfc08-f13a-dcac-0bd9-821d188bba08@o2online.de> <8cbbf90c-54ba-8fa3-3386-022c9c997a20@o2online.de> In-Reply-To: From: Martin Blumenstingl Date: Tue, 26 May 2020 22:13:46 +0200 Message-ID: Subject: Re: RTL8723BS driver doesn't work for,me but I can help testing To: Tobias Baumann <017623705678@o2online.de> Cc: hdegoede@redhat.com, Larry.Finger@lwfinger.net, gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tobias, On Thu, May 21, 2020 at 1:17 PM Tobias Baumann <017623705678@o2online.de> w= rote: [...] >>> with my patch and oleg RC5 hotstart(shutdown now) do not work with my >>> box ( wlan goes back to sleep mode always) >> >> I'm not sure what you mean here. >> if you run "shutdown now" then the system does not shut down and only >> wifi goes to sleep mode? > > i meant that after a reboot with "shutdown now" my box restart but the w= ifi chip is back in sleep mode , while the wifi chip was online befor the = restart . I don't know how sleep mode is controlled (some GPIO or through SDIO communication) so I can't comment on that [...] > i read also the AP6330 and BCM4330 Datasheet for both of them is a star= t order inside the datashet ( i think that RTL8723BS should have same timmi= ng) . the time between 32k clock and WLAN_dis should be more than minimum 2= clock cycle (1/32kHZ * 2cycle =3D 0.06ms ) > > also that AP6330 has most identical pinout as RTL8723BS ( i did not get = the pinout of BCM4330 because datasheet only has information to the chip an= d not the small extra pcb where the chip is mount) I don't have any additional comments on this one > on Android 4.4 my box told me that GPIOAO_6 ist chip enable and GPIOX_11 = ist wlan enable > > mybe a clue is that in the HArdkernel S805 Datasheet the GPIOAO_6 is also= a 32k clock output (site 42 table 10 Func1 maybe (but i also found some = Dts file from old S805 RTL8723bs box they use only GPIOX_11 and powerPin2 w= as comment out ) do you have an oscilloscope or does your multimeter support frequency measurements (based on what I understand it would only have to be capable of measuring 32kHz)? then you can prove or refute this :-) > i have another question , do we use the same wifi.c file for the meson8m2= boxes as for endless mini ? i have taken a closer look at the file and the= two delay information you are mention are not in the wifi. c is neither a= function nor an instance, it just takes two fixed values "mdelay(200)" lin= e 156 , furthermore we ignore the output level of wifi_power_gpio2 and auto= matically set it to "1" line 378 , so it is important which of the two pins= is passed to the header file first (translate with DEEPL) Endless Mini has the CHIP_EN signal hard-wired to 3.3V This is the .dts from the Endless Mini: https://github.com/endlessm/linux-meson/blob/d628bf1242928927a41f7482ba5ef7= 295e01a9ff/arch/arm/boot/dts/meson8b-ec100.dts [...] > You are right the chip has only wifi wake host and that should be GPIOX_2= 1 as input ; maybe on your box the pin is alway high on the board ( direk= t an 3.3V verdrahtet) on the Endless Mini GPIOX_21 is also WIFI_WAKE_HOST I haven't tested any reboot / shutdown / etc. cycles with RTL8723BS there yet because I typically use the sdio controller to access the internal SD card (and at the time of writing the MMC subsystem in Linux doesn't support two different cards with one MMC controller). So only because of your email I did a quick test on the Endless Mini. Best regards, Martin