Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3368552lqp; Tue, 26 Mar 2024 07:27:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU65qMhrbk2fBvdmWF0ne52BSMX9sszXoC8EngupxO4qvqwlzWvdotn4sDIcHgoNz+tTj/ypT0blZjIMZzi55CPZLo3bKUOrRBdTWQ9jA== X-Google-Smtp-Source: AGHT+IEClrSGke53p/WJ95pV0GqLB4fKIUPimvD/1+v/bGhkFBDYzSnFhslIBh9LN4X4WqHW+Wwo X-Received: by 2002:a17:902:ec87:b0:1e0:e11:c626 with SMTP id x7-20020a170902ec8700b001e00e11c626mr14448128plg.47.1711463236816; Tue, 26 Mar 2024 07:27:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711463236; cv=pass; d=google.com; s=arc-20160816; b=Ri0WQ8gj7iLqVn+6xIfYTmpXOaLXqgoKuchf64JbBcI2uNwKP3qxPvkSLwzkY0TsuH KfTxQxi+kydC0wB5PYA1SvX4xajQzy2G1WXfiaDXnZTcUjg/vyxh7EWGNk2G27uJ9giR uVcgsW3rf53Mxh7Xu1rwEyRG1FxsB5+bmQIlS+g9UHCWtpbzOFoo50FjSOxQ4gbvEuZu B7gOfY2/MgtnZfiSI/Xddgyepu68+P7i7W7tBwjC8BY3m4T0Y1HJ0ulTcO3qCrOxQewx wc7/IU7GxSicGPmwMHZrrzPPltin3dIVVguEGackshk5+hZVxif5gTlA72+KbWDoEzPd ayOA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=5WlEltbtsC/qC59Bc8P175TSd5LTY6D+FLI0/UyRfBQ=; fh=B68hz87J5EiQeCp7o4d+mP5JXX+V/yZDCmUt89Ft6lA=; b=022G8kNCGcPn7sw3FPB2W7lm9t1VdGsjCXN+h4s8S5jlH4uA4iRllQZvP3/kV1Vwaf VQMS7Aj/gyxUB0nLxcCuPRiTt8U4XKAcXw6wtMV48QclfxpdbSPQ9gs4J5vfeX4kbwY6 CzN0Q8YjpFKGlrE/cMxsfog3ZPGWH3YllMYItQA0YAonqudFJS6qV2ZWcLIMn94+v3+C JhD0Jz8f1lGgLsGvO4AJEzEuX76bYjYJJvie3eQGuQPkr1v/BUPwEItwo3zfM/Wzo3Av R1VhOok5CKaekaZcIxWsg+Atp/IgArJJh5SWEUXMQH1+KJwugik9huJ4kQkcwNWsq1Er aHPQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="FhvD/Eqp"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-119169-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119169-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id i17-20020a170902cf1100b001e0d08e543bsi3074581plg.524.2024.03.26.07.27.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 07:27:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-119169-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="FhvD/Eqp"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-119169-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119169-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 67CB0B23074 for ; Tue, 26 Mar 2024 14:23:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 41C6912D77B; Tue, 26 Mar 2024 14:23:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FhvD/Eqp" Received: from mail-qv1-f53.google.com (mail-qv1-f53.google.com [209.85.219.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 33767535AB; Tue, 26 Mar 2024 14:23:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711463024; cv=none; b=S+KKEsBgxVZPOUPyC33rZOgOVIM5e2D6GQaigSTMOonGgQeVPaCaJhJyrRo04bojzeIjWeJ3+zx2a58RhRfvv6BAjc7+HTes1np19L8JhM6PU+GKuo+EdXWsAlkD4XWoijQN4aStCzpianvJnViU2AwJ+OpzS8twsFHMtdss4kE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711463024; c=relaxed/simple; bh=nfADaqXf2mRows+WqcUk8dPuz3pddfwkSwgruDyBZBE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=qGqF76tGSNy+uPSeeZxxezGKRI1d5N355UDgkBUIUeVnwbm11Ee7/76f6laK3IJra1QpN5QWpfUcEJgvtynrHOH2e7tgzDRC/n82XKDIGOiF3Ny2G3CKyU77BOkrG5P5DJj+xEKPSrNB/MyXxF54QrtJcwh0t9uodC/QoiywKHI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=FhvD/Eqp; arc=none smtp.client-ip=209.85.219.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qv1-f53.google.com with SMTP id 6a1803df08f44-69670267e87so23947746d6.3; Tue, 26 Mar 2024 07:23:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711463021; x=1712067821; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=5WlEltbtsC/qC59Bc8P175TSd5LTY6D+FLI0/UyRfBQ=; b=FhvD/EqpwcEgRfK0qCsY+A3SeGWJMD+MxF2ro9aaCZvbrTfbl+3MdHDpPYMgnMM6EO kQT/BreDhGVGlx0DX27sDjMEV3bjNKTqFL0YGxpNegfIR2SHGgCAjSgUnT6YFe8yfh36 o4Ivw5tWnweLddCQW2LqY3o/Ssr80qok6KlYClAp5e4fjSJx53+Sr9tEX0S+yoVfxA37 HvYW0y0Urdq/TvAbAT/SS7MaG2MVMtDsKJlNQxhWPJUN9s28DBJZx2KttACpXvoweEUv O1qdOZEjwM6I9QoFhOCObPaI0X2YpUjNTKtOST1QCZO/gfcPektKCqlvER3AxhdGboDE 9m/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711463021; x=1712067821; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5WlEltbtsC/qC59Bc8P175TSd5LTY6D+FLI0/UyRfBQ=; b=dKzC/wjV0oOIYvGIYJi9tilqWYNuMFe6zOVad7Te345Hr/1aE5fTIN/1PJAgxi9r8S ULcl7cFuCjfMlxyrQtX+IhPn1iOn2zdgbzCV2LuhRIzTDi8vzwOCPALfyg8vVmbK8xj+ 3mZrnQFUO+hMdFOPyYZfDHd/k2DEcIJasYumgehH6pNe7pGGH9nNzlVZFJDTa8NPXdOx nDHy4vnDW7rvqDHUvhcVDd2GVzB9ItmGg5dK4okqjIm3kw9cmSpl9gZtHYS8cjhgvgKu YhWdOp4ysY+lCc+hBa63H4S9dC5eFVOu6Fgu0fbQz5wwtaMWVVJsKEG1TJxBen5hPBFj cMiw== X-Forwarded-Encrypted: i=1; AJvYcCVFTrflgfxk5znPooHDuo3XF9tr8GtGj6bTVbWvEVXaC0x5d767GBlmqj8UE0TDJLtoFdH9dbiucsWh9myOOrYn1ymSXko/X7Ui111W7SKCikZnseFsTp/90OVKGqQHmH+x9LiTdWxUvg== X-Gm-Message-State: AOJu0YwnXweoYxuNksDj0zf+sikIoDaEOnEJZyxcfIwVT1c+J6z2wPA1 ZmMRyaH5AqKdUb98SsEwA5yT8hnqdbLNWy/CeRc0HaQjxW4zVoZ5tU8J4w1Pf/2gEXh9+Hg8MIL T3+b1zKuWfVWOU7yEPHqRkkx7r8s= X-Received: by 2002:a05:6214:2522:b0:696:76b9:5faa with SMTP id gg2-20020a056214252200b0069676b95faamr10833171qvb.3.1711463020999; Tue, 26 Mar 2024 07:23:40 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240325143511.2144768-1-nm@ti.com> In-Reply-To: <20240325143511.2144768-1-nm@ti.com> From: Robert Nelson Date: Tue, 26 Mar 2024 09:23:14 -0500 Message-ID: Subject: Re: [PATCH V2] arm64: dts: ti: k3-am625-beagleplay: Use mmc-pwrseq for wl18xx enable To: Nishanth Menon Cc: Tero Kristo , Vignesh Raghavendra , Conor Dooley , Krzysztof Kozlowski , Rob Herring , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Shengyu Qu , Sukrut Bellary , Javier Martinez Canillas , Bill Mills Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Mar 25, 2024 at 9:35=E2=80=AFAM Nishanth Menon wrote: > > From: Sukrut Bellary > > BeaglePlay SBC[1] has Texas Instrument's WL18xx WiFi chipset[2]. > > Currently, WLAN_EN is configured as regulator and regulator-always-on. > However, the timing and wlan_en sequencing is not correctly modelled. > > This causes the sdio access to fail during runtime-pm power operations > saving or during system suspend/resume/hibernation/freeze operations. > This is because the WLAN_EN line is not deasserted to low '0' to power > down the WiFi. So during restore, the WiFi driver tries to load the FW > without following correct power sequence. WLAN_EN =3D> '1'/assert (high) > to power-up the chipset. > > Use mmc-pwrseq-simple to drive TI's WiFi (WL18xx) chipset enable > 'WLAN_EN'. mmc-pwrseq-simple provides power sequence flexibility with > support for post power-on and power-off delays. > > Typical log signature that indicates this bug is: > wl1271_sdio mmc2:0001:2: sdio write failed (-110) > > Followed by possibly a kernel warning (depending on firmware present): > WARNING: CPU: 1 PID: 45 at drivers/net/wireless/ti/wlcore/sdio.c:123 wl12= xx_sdio_raw_write+0xe4/0x168 [wlcore_sdio] > > [1] https://www.beagleboard.org/boards/beagleplay > [2] https://www.ti.com/lit/ds/symlink/wl1807mod.pdf > > Fixes: f5a731f0787f ("arm64: dts: ti: Add k3-am625-beagleplay") > Suggested-by: Shengyu Qu > Signed-off-by: Sukrut Bellary > Signed-off-by: Nishanth Menon Tested-by: Robert Nelson With v6.9.0-rc1 on BeaglePlay.. debian@BeaglePlay-57:~$ uname -r 6.9.0-rc1-dirty debian@BeaglePlay-57:~$ dmesg | grep wl [ 12.621555] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11) [ 12.623215] wlcore: WARNING Detected unconfigured mac address in nvs, derive from fuse instead. [ 12.623253] wlcore: WARNING This default nvs file can be removed from the file system [ 12.630813] wlcore: loaded [ 13.061833] wlcore: using inverted interrupt logic: 2 [ 13.120366] wlcore: PHY firmware version: Rev 8.2.0.0.243 [ 13.218832] wlcore: firmware booted (Rev 8.9.0.0.83) [ 13.795189] wlan0: no VHT support on 5 GHz, limiting to HT [ 13.795232] wlan0: determined local STA to be HT, BW limited to 40 MHz [ 13.795303] wlan0: determined AP ba:fb:e4:f5:7b:d2 to be HT [ 13.799461] wlan0: connecting with HT mode, max bandwidth 40 MHz [ 13.802189] wlan0: authenticate with ba:fb:e4:f5:7b:d2 (local address=3D6c:30:2a:2a:84:f0) [ 13.802246] wlan0: send auth to ba:fb:e4:f5:7b:d2 (try 1/3) [ 13.873457] wlan0: authenticated [ 13.873746] wlan0: no VHT support on 5 GHz, limiting to HT [ 13.873764] wlan0: determined local STA to be HT, BW limited to 40 MHz [ 13.875500] wlan0: associate with ba:fb:e4:f5:7b:d2 (try 1/3) [ 13.881981] wlan0: RX AssocResp from ba:fb:e4:f5:7b:d2 (capab=3D0x1511 status=3D0 aid=3D3) [ 13.889436] wlan0: associated [ 13.889660] wlan0: Limiting TX power to 30 (30 - 0) dBm as advertised by ba:fb:e4:f5:7b:d2 [ 13.990788] wlcore: Association completed. --=20 Robert Nelson https://rcn-ee.com/