From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) (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 941BB367F5E for ; Thu, 30 Apr 2026 04:58:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777525087; cv=none; b=riT1hsE+dBFyvaOLoMrXIQkqXCPDWdv9Wfmyrx1bzK49H9rmE7JtxLKCziVpuWaVRv85tc7ayxTF6nIt3p1dKZV8dxZyp1EJYFKELpLUR/QiazNZnakCG4m1zlkA81EgpEM2FcfCgQl7VvFvCqX6E922+37IEDAbkliy7iE8spE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777525087; c=relaxed/simple; bh=sZ5db9OMzu/ERL36zpv765dLG+X6FCJubt1KSBYE+BI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FdLT2bYgLPygxa7xpdpGbU+O4HD3sa1NNNxClWwIlJiXr511+IfCHnGMrN92f+goI0pas12S1Hrszwvg0FAl7yaUVMS7ysUFEWzM/CeU6OuX2r9gXBOaCjWj/UVMEOAqOvCcoaVbiu3n33mr6p3hiMrDNW1L6cYo+Q1klUy+IrY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=morsemicro.com; spf=pass smtp.mailfrom=morsemicro.com; dkim=pass (2048-bit key) header.d=morsemicro-com.20251104.gappssmtp.com header.i=@morsemicro-com.20251104.gappssmtp.com header.b=OJSHrVIC; arc=none smtp.client-ip=209.85.210.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=morsemicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=morsemicro.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=morsemicro-com.20251104.gappssmtp.com header.i=@morsemicro-com.20251104.gappssmtp.com header.b="OJSHrVIC" Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-82f8893bff3so250139b3a.2 for ; Wed, 29 Apr 2026 21:58:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=morsemicro-com.20251104.gappssmtp.com; s=20251104; t=1777525086; x=1778129886; 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=St8ASszBJPPTeFlVArhOrj/dEVW+6LWXmvw38LqMsEA=; b=OJSHrVICaaujpd4m3aXuUeddsMLBwVtwG+ZktfMdX5pTs4eSR0Akrv0t89he+VQ3JU Wa2ltLSjQE+QbTG6v1g7gjF4SpWbh3DOeGw3J2zcOyhAjgGoSgRToEcgZOfR7a5VqvKm E05tE0csXnJ331W0Vf2VLSHdKjYLw5VVn9byNvXQaFPyTjvvrov9RWyw96A81hBs8gu3 F3iFrDboS+fL6Cqh/OinuT9QzXMRLf6zMHPD0J+fppR/FisgkMBNKnatBbyor+JnR02l RLpI1WvDjwz5I8X3sBQ0lPd2nvNCVqrSIkd5+mLtqdm2alfl7/6yUsHoHGcCdrK1QHV0 g9GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777525086; x=1778129886; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=St8ASszBJPPTeFlVArhOrj/dEVW+6LWXmvw38LqMsEA=; b=SR+wbIY4X6+IaC+aTt8+SrjHRUPe7Ip3PSl8QpeX7NFKNhqGy6kQy4QDCi2JaPdK6J xsfqGjIA/NTYI2hyI9KEHizINpj9QQ3XnvgU+kG23DX8ualMPkEYaQVmoiN3W/Avv/yZ xGH4+Y8z4tmxcZn1i2amrfP0A6iLGInlROmvZbqnZT+PDG2cnrm+bEvyHKaCAYnjGZVh pcnZ/l9WF+BxyVvNFffEZtst5inEf4fkROEaWYwLD9I4plakRrFGeWl3WWxVRcTBp7NI gjAdFaH+6GqqkR6DfQxzox08H3u52dXb4vG7hc5UJeOvEJ5nx7N0EhNAySKZCspEbey2 s4/A== X-Forwarded-Encrypted: i=1; AFNElJ8McScqCFeMZnliU3uKAkzOvdxOy2i6SM2+OtzbukyyN+/vvlaBysXHwBxqHdlNGfiVf4nJyRCK4lQGC8c=@vger.kernel.org X-Gm-Message-State: AOJu0YwptDCEnB+XnuN39TPIzQgoBUulYHnSGvi5nDE0tNo8nW44HvZz 9VIPSKvHZrla8LB6b+yf1oZVJJmpSUByu0+vISUnnBes5k/e8MRxqPr+pqlQkrIzOjE= X-Gm-Gg: AeBDiesrDnbPcKrPXstHmYebivgg87NQ+Hj3yKYlLwDZYpMMn0vWnWM/boyl/akj/5c dtO2o0b6MjJ8bCsSwgHoqE4262jXmzQB0qvKA/yawciTnMRMNok3plc3RCmSBNyxAdZTf9esDzc QQYJKVP82hjrzljzKrRGAihOM+uP0aZv0hQMIs//aUq+HuQHvYB2rfE1wu8DsTknNF+uQAdgKFK BMyou4FCWRjr03i11VT3zXPTxVECbYhqgpHJtfdvfEwkqbECftTLp5upfUN0QpoI/gFeXwwu3B9 I5fl6Jf2nHQXv/GKxfNcAH9XUwnXgTMU66zMTYNaK27BwwrsxvHDZQaQyK/S01r9ygZLE9MZyu4 /Rr+j7EWXi6BiQ0EmenxcFAYf6WEXy9EpzfFwgOauw8uurjVNem5ssC3qdp307BsdTftJWzCX5Z XW2U90rub/Xc8JcvrlBkHFV0ch/H3ZUUrCmul21QEV7Zhjgw9fIcq76OOMQtVkdr4/eBfdtUsjy GbryY/zyde23giQP4khBt07H514Pydcr8RaeZQbFw== X-Received: by 2002:a05:6a00:2d85:b0:82f:3828:a019 with SMTP id d2e1a72fcca58-834fdd6a1efmr1625723b3a.46.1777525086006; Wed, 29 Apr 2026 21:58:06 -0700 (PDT) Received: from mma-H9MHD44.lan (60-242-93-14.static.tpgi.com.au. [60.242.93.14]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-834ed80df96sm3595073b3a.54.2026.04.29.21.58.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Apr 2026 21:58:05 -0700 (PDT) From: Lachlan Hodges To: johannes@sipsolutions.net, Lachlan Hodges , Dan Callaghan , Arien Judge Cc: ayman.grais@morsemicro.com, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH wireless-next v2 17/31] wifi: mm81x: add ps.h Date: Thu, 30 Apr 2026 14:55:43 +1000 Message-ID: <20260430045615.334669-18-lachlan.hodges@morsemicro.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260430045615.334669-1-lachlan.hodges@morsemicro.com> References: <20260430045615.334669-1-lachlan.hodges@morsemicro.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit (Patches split per file for review, will be a single commit alongside SDIO ids once review is complete. See cover letter for more information) Signed-off-by: Lachlan Hodges --- drivers/net/wireless/morsemicro/mm81x/ps.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 drivers/net/wireless/morsemicro/mm81x/ps.h diff --git a/drivers/net/wireless/morsemicro/mm81x/ps.h b/drivers/net/wireless/morsemicro/mm81x/ps.h new file mode 100644 index 000000000000..0b59bb4145ab --- /dev/null +++ b/drivers/net/wireless/morsemicro/mm81x/ps.h @@ -0,0 +1,22 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * Copyright (c) 2017-2026 Morse Micro + */ + +#ifndef _MM81X_PS_H_ +#define _MM81X_PS_H_ + +#include "core.h" + +/* This should be nominally <= the dynamic ps timeout */ +#define NETWORK_BUS_TIMEOUT_MS (90) + +/* The default period of time to wait to re-evaluate powersave */ +#define DEFAULT_BUS_TIMEOUT_MS (50) + +void mm81x_ps_disable(struct mm81x *mors); +void mm81x_ps_enable(struct mm81x *mors); +int mm81x_ps_init(struct mm81x *mors); +void mm81x_ps_finish(struct mm81x *mors); + +#endif /* !_MM81X_PS_H_ */ -- 2.43.0