Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2188612lqb; Mon, 27 May 2024 10:35:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXSWilZVYpFqrc4gDO95CfhCnGGk5IgIZwQjSDoYZL3l3Pyr/Y8CurYaHWAb3mp6ydaq6tCHFwZeiWQotKWjDBIxA7475mD7O149095dA== X-Google-Smtp-Source: AGHT+IHO7MSmx9COsgOKbEFACuUBeOA1vhAzhoXDb4E4s3zA2aSeKD+Asd2EpnAYtVvQ4vLvO/Od X-Received: by 2002:a17:903:22c8:b0:1f0:67ea:cdf8 with SMTP id d9443c01a7336-1f4497df7b5mr141346935ad.46.1716831328331; Mon, 27 May 2024 10:35:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716831328; cv=pass; d=google.com; s=arc-20160816; b=aFlf5Hn/0k+N99XqZ/qmRYiJGTxefdhT4nywM1Lz7cBMsom5BaVogYdqRqmQtLo9mQ ddMi54QcBfAOmMQQmmwV+G9aeVfW7pC9TVfuMTBR+mapb5OgUjY45lA8Q4ey+3AUP3N0 AvGPkmL9CXLUm6ot29XTZLwVcX6ZQpXkwINT1Gx4pnbwhLXqyrQ3nr1GGMAqZez4zI5U EOWvGM2ZE/uTUAFVecJEMUqzTX4PQDj0n6NjbIYLB6k3dcV8G42paBjfCm2Q8opv2sHA 9WPPY/kI0nmg9W/LSlGi953z/LzV4Sw8Xd3kQ2QyTjaS9nT1vMMTMmfVMpl0r6Oxu0tm Pb5g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=251TBfsIxkSVquIpcr4ttLdo5hooDJoQtJnRIIO3trE=; fh=Eza/RnldXOzlVP/Wipzt+kpPJ+VZm41Ty8o8kFAqLQk=; b=j/WcOwxQawhIkhT85Mm5p2NBygKlze3rvJb1rB+ZJNKLCCG+LsmL2kIJ1+zkDPOhBF 2McrKrfqes6M+aeee/akAqABa23aMb3uoiLqaRNRKgW1Mhikr3VDE8M3oBF/HTwAQGrK 9VofsnZJ3qvpdhcIC7q4UV0pVXNBpQNFLDBlwv/WNKB3wFHQUoZfJi4bu7rzeIk1B4GW uoaly3CkiBLFYpLsiz2uf9IM2zwk/J13d9aVkiRNhiB5B1HcBm+5e3kD6mzFmWAdon/9 MqIymrWIM2NOgNUaQNkt063f1hue7UbM/GqKbcGldtG15H5P55N00jrSORwMCoZf6DsG etWA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VpGDTjTQ; 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-wireless+bounces-8141-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8141-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f44c9bb9ecsi61017055ad.486.2024.05.27.10.35.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 10:35:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8141-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VpGDTjTQ; 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-wireless+bounces-8141-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8141-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id BDD30281FDA for ; Mon, 27 May 2024 17:35:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 78B9426AE7; Mon, 27 May 2024 17:35:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VpGDTjTQ" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (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 C1BD915ECD3 for ; Mon, 27 May 2024 17:35:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716831324; cv=none; b=sFbL2SzG30kiFvwOdrRaeoY+271G9bcIgF/5OhlybfK38gFlNfxxn6+fmQdBsMUFq3G38p+QcRU7XPPW19hDKt2iq/fw8QzLM3Z4HDeC+0VpGVGzbt7t1wdj4zwkjDC7svNniN02wSe/EVR5yrN3zehgwzJjkO6hpTz1dcmWOcI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716831324; c=relaxed/simple; bh=vmkBx41QPRyI/Cv9jjYcdOjxzmIMb4pAj4PBcs0mQ+U=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=TSWEMP9K4r5JL1AEkN/z82tRF7uS7pMIZVBNUSALbIMkIxdU/v3ia2bR/kj8XvDJIBlSVoiBgOnuRj84FLQqBMrNqdRIJB5SiAB3VgRK5LQh4BJ4uO3DGH1158IW/4xYrbdmmtDf1wtgmEgYWSs0itYJjUyiRqfxRSh83d2PRhw= 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=VpGDTjTQ; arc=none smtp.client-ip=209.85.218.46 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-ej1-f46.google.com with SMTP id a640c23a62f3a-a62769075adso2299566b.3 for ; Mon, 27 May 2024 10:35:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716831321; x=1717436121; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=251TBfsIxkSVquIpcr4ttLdo5hooDJoQtJnRIIO3trE=; b=VpGDTjTQUVl8Bxm3DDDdqWUs2sU7b0MK7guOy30ClkOIqq2BboZWQzocFrG3QlPKd+ SNX8HsEOT1V74gfmuCei4Ptv3WQzM56OJhzx0Ie/NAI9RAf9zxhCjhEJnHsZSjmVKZ7+ /g6a+B3MZaR+8d/++2+/Yxb1Mf4g2wVzEuDX4OMAoT8HvNgelaGu9zq15FUU90lNurSx e1hNQAMvoJIwcfWP9hDHajAKLUUomijTfBr6sWTKwD9hkdO1teXysPNVq16WYPOVPVGQ nZhr+hACDJe7k0SvC4q9my1vFaalzb9Hmp33xn45VwF7GKabJvQfsoP0EKt4CmXHfnAR 3eyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716831321; x=1717436121; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=251TBfsIxkSVquIpcr4ttLdo5hooDJoQtJnRIIO3trE=; b=NxGsAdwMZN8lH7TjfnFgGcwSrptCyhCHLVcX6hx91gtlp0aT0MK5OOHh4uMTJewnsv TrZCg/pwHBiyjQQ4VY0AmiDc4QtYE1Avq1VqeYP+39qDyhnc47TQ/kJ8drIoJtk+mT2O pp2hD+7FVG76JXb61LN2x4HeGyXkYtfJXb5L1q82Cx1xS3+PImdBT36Tjpwkj3YPMSt7 FyE4l5NtpKJvBy52yP61RVitaz5HKshfeIrJqt7OhHOzcZgLnGu3QytRSv9uh5eqRDDI vASBo9DVhP+u4tLGMt8G0W8Kqzdt3/JpBKRbZjZ0m1p/TKzYkTzGnqlXeTiBiZbaFvJz H08w== X-Gm-Message-State: AOJu0YwDMml2CwUUdMms0jo/obuMV+nb7abDYD7SRh9k89bIm2AL7os5 HIQOCrB3qFtdH5D9ALP/hNKmR8p98hCnJvRX6AOQaiUPuEwEe+JzZlZ+WGLb X-Received: by 2002:a17:906:640a:b0:a59:bae0:b12f with SMTP id a640c23a62f3a-a6264f162b5mr645830566b.57.1716831320787; Mon, 27 May 2024 10:35:20 -0700 (PDT) Received: from mslusarz-hyperv.mshome.net (1779df417e104.rev.snt.net.pl. [213.192.104.90]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a626cc500a1sm512070466b.125.2024.05.27.10.35.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 10:35:20 -0700 (PDT) From: =?UTF-8?q?Marcin=20=C5=9Alusarz?= To: linux-wireless@vger.kernel.org Cc: =?UTF-8?q?Marcin=20=C5=9Alusarz?= , Ping-Ke Shih , Larry Finger , Kalle Valo Subject: [PATCH 1/2] wifi: rtw88: use RTW_FLAG_RUNNING for deciding whether to enter/leave IPS Date: Mon, 27 May 2024 19:34:53 +0200 Message-Id: <20240527173454.459264-2-marcin.slusarz@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240527173454.459264-1-marcin.slusarz@gmail.com> References: <20240527173454.459264-1-marcin.slusarz@gmail.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Marcin Ślusarz Needed by the next patch that disables power off operation for one chip. Signed-off-by: Marcin Ślusarz Cc: Ping-Ke Shih Cc: Larry Finger Cc: Kalle Valo Cc: linux-wireless@vger.kernel.org --- drivers/net/wireless/realtek/rtw88/ps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/realtek/rtw88/ps.c b/drivers/net/wireless/realtek/rtw88/ps.c index add5a20b8432..f9fbc9b3174b 100644 --- a/drivers/net/wireless/realtek/rtw88/ps.c +++ b/drivers/net/wireless/realtek/rtw88/ps.c @@ -26,7 +26,7 @@ static int rtw_ips_pwr_up(struct rtw_dev *rtwdev) int rtw_enter_ips(struct rtw_dev *rtwdev) { - if (!test_bit(RTW_FLAG_POWERON, rtwdev->flags)) + if (!test_bit(RTW_FLAG_RUNNING, rtwdev->flags)) return 0; rtw_coex_ips_notify(rtwdev, COEX_IPS_ENTER); @@ -50,7 +50,7 @@ int rtw_leave_ips(struct rtw_dev *rtwdev) { int ret; - if (test_bit(RTW_FLAG_POWERON, rtwdev->flags)) + if (test_bit(RTW_FLAG_RUNNING, rtwdev->flags)) return 0; rtw_hci_link_ps(rtwdev, false); -- 2.25.1