From patchwork Thu Sep 5 18:09:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rosen Penev X-Patchwork-Id: 13792764 X-Patchwork-Delegate: toke@redhat.com Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (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 192B715ADB4 for ; Thu, 5 Sep 2024 18:09:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725559775; cv=none; b=DB0Fc2bZvg7uqXNmZ8TzEPfU+1G5T58SC9nIMreS/Puljw0w43fWigghr/ItES47ys+nrAdqdjN7LUDzcu3S4XbgD9MOa3ccNr8ZQ8yJsUQWxdq3hFNJdapTp4upfOecyErl7a05MfzvWk0pBisY9hhFkny9KJCdgzLqTM3EkmE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725559775; c=relaxed/simple; bh=WnvyFFK3cuKEwdYAd9S+ApvA6FKMM6oYN4T0bScrlTY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EvArzPejWZLpcKSqot7ne7L0Ou4KlOZnmctNgRsJlwEGzK8sarEEC2G/Tfj7vKHQR1duaGm+SknnE6LT2Ti6DAd4oetditpkRdkg1sdVPKSX6jfYyAmxgTqVt5z6t3h1c8rqq2E/L4hKv4p8cYIpYx1Z8eFbDcInAUmziscWbcE= 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=ZHa1M8e4; arc=none smtp.client-ip=209.85.210.182 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZHa1M8e4" Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-71798661a52so364952b3a.0 for ; Thu, 05 Sep 2024 11:09:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725559773; x=1726164573; 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=+tOAE5lYXIqswc9ysrQaHFWZw9vsI1EIllIjuF/U03w=; b=ZHa1M8e4HeXbNj8KBhp/enTNDpUx6Bj4wLiAJY8DYo4XuGwlWBPlihms2r4PUYIKNt ODAhaApJph6jWNgiegDVYCz+fIxZF2XA+nIpkys157H0ZiuVNerlCJIxoOjcvNxF/MBK k6eNyX/r3pejip5e5cCwrRpa6nip3/JFUL0P17zqxHh+7LK+zJDsu3bc3P5U8baWV1mw qX8i0NnGfqd+0caoL1j2fb3/BAy9Yp/VM2TG7QCfImLcr3tGf9jU8KWNiyVHS8GJHUzf xTvzOayUQsIwx1CgchpXUwi0rsmMz2jq/i4C+7rnWWBPsx8eQoYtOQy6n3DTPLrL0SeC 0knw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725559773; x=1726164573; 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=+tOAE5lYXIqswc9ysrQaHFWZw9vsI1EIllIjuF/U03w=; b=VtoDxl2g5/2JurF6Jf9mQTBfiHQy16SEXGaOO9VEvb3m0Y2Mw1A2SulyBazV0/f+nS nwyU+x20Yk9fLOM+1fXDSQeeU9w1tfnvW4G7igqFz4lCH1U7qeTTdICLKRU9K7w8CdyV ZsYXTLj3GNP/kWcpt7lF3Zi/BIlaFp12l2BMB9pOFDVTm90a05LnZvvU62xhXL0U2NrV GxS13RfYOgnoKJ8mguL9EAl3yZE4TeZvjBxLymH13HbVuPMFiVMHsoV8CgJfDY9dcBIz cgx0xnCV7XMEcCheInczGAPdLLFHfe/mEqQIXNJQyUNgZ64hwd9jb3pj28BYilkGZ27f ODgQ== X-Gm-Message-State: AOJu0YzmbYWSSrQj1lUq2IToCVTY9TjhmIbl1qHXa8zkRKmTM2xZGDGh VJ3ldznzo8i5V2ZchXjZe5T7Wyh3jobSrTkjkoBw3YGl8H3BBCmEyeSNNyq4 X-Google-Smtp-Source: AGHT+IH3IzLhKfsPjAk+qOnTf1LbneGTEZ+vsBONanMaJIpnbrF4Em6dptWCHd7HIfWnc7Z2WJGz1w== X-Received: by 2002:a05:6a00:cca:b0:704:151d:dcce with SMTP id d2e1a72fcca58-718d5341f04mr234236b3a.5.1725559773086; Thu, 05 Sep 2024 11:09:33 -0700 (PDT) Received: from ryzen.lan ([2601:644:8200:dab8::a86]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7177858bfd5sm3485199b3a.133.2024.09.05.11.09.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2024 11:09:32 -0700 (PDT) From: Rosen Penev To: linux-wireless@vger.kernel.org Cc: kvalo@kernel.org, toke@toke.dk, nbd@nbd.name, yangshiji66@outlook.com Subject: [PATCH 1/5] wifi: ath9k: eeprom: remove platform data Date: Thu, 5 Sep 2024 11:09:24 -0700 Message-ID: <20240905180928.382090-2-rosenp@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240905180928.382090-1-rosenp@gmail.com> References: <20240905180928.382090-1-rosenp@gmail.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 There are no more board files defining platform data for this driver and eeprom support through NVMEM has already been implemented. No need to keep this old functionality around. Signed-off-by: Rosen Penev --- drivers/net/wireless/ath/ath9k/eeprom.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/eeprom.c b/drivers/net/wireless/ath/ath9k/eeprom.c index efb7889142d4..df58dc02e104 100644 --- a/drivers/net/wireless/ath/ath9k/eeprom.c +++ b/drivers/net/wireless/ath/ath9k/eeprom.c @@ -15,7 +15,6 @@ */ #include "hw.h" -#include void ath9k_hw_analog_shift_regwrite(struct ath_hw *ah, u32 reg, u32 val) { @@ -119,14 +118,6 @@ static bool ath9k_hw_nvram_read_array(u16 *blob, size_t blob_size, return true; } -static bool ath9k_hw_nvram_read_pdata(struct ath9k_platform_data *pdata, - off_t offset, u16 *data) -{ - return ath9k_hw_nvram_read_array(pdata->eeprom_data, - ARRAY_SIZE(pdata->eeprom_data), - offset, data); -} - static bool ath9k_hw_nvram_read_firmware(const struct firmware *eeprom_blob, off_t offset, u16 *data) { @@ -146,15 +137,12 @@ static bool ath9k_hw_nvram_read_nvmem(struct ath_hw *ah, off_t offset, bool ath9k_hw_nvram_read(struct ath_hw *ah, u32 off, u16 *data) { struct ath_common *common = ath9k_hw_common(ah); - struct ath9k_platform_data *pdata = ah->dev->platform_data; bool ret; if (ah->nvmem_blob) ret = ath9k_hw_nvram_read_nvmem(ah, off, data); else if (ah->eeprom_blob) ret = ath9k_hw_nvram_read_firmware(ah->eeprom_blob, off, data); - else if (pdata && !pdata->use_eeprom) - ret = ath9k_hw_nvram_read_pdata(pdata, off, data); else ret = common->bus_ops->eeprom_read(common, off, data); From patchwork Thu Sep 5 18:09:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rosen Penev X-Patchwork-Id: 13792765 X-Patchwork-Delegate: toke@redhat.com Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (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 CB1E717BEA5 for ; Thu, 5 Sep 2024 18:09:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725559777; cv=none; b=A0dxPzKVPtoWDpUKH87TesS8H3eJolRk/th6WiTwYnu8QeEmdngXwzOeyuoMReVNu8YZG6Bx3bbU7hbwFjB1uGNu1mpaC/AqLaR9wAmZbFI46hS9h1TV/l/D1TiILo+8uZWQXTAJeZKK5fEsEmszYy+8NpGZKP5YxZD8gCKeHbs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725559777; c=relaxed/simple; bh=dG0wU+ELooHhl9kop/9dQyFss5A+Lg7jzeXqR4UOovc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NlEiblKlvALG/S/7BERWVhK0zCVsGuw5LV1iknb/d5K1rksfJzpanwtUhTvOG2YyMnDDu+M3TRPHuRvKD6iDVgswd5DR9yDKTIDU+WeRypZ1+TFQPqnXTdbbAA+7hNIjHEZGI9gMu5p3IiSzwx+ExtTrpkxIigJnDYOKs1Z0Kvg= 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=Pg+djfX/; arc=none smtp.client-ip=209.85.210.169 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Pg+djfX/" Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-7176645e440so780039b3a.1 for ; Thu, 05 Sep 2024 11:09:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725559775; x=1726164575; 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=bnaZJziqDKdiONAxSzGup/wlqumDXm6layBdbBHOfg4=; b=Pg+djfX/SWi0b3f/JPRJl9DZQSjnh5SCyH27YRKWbVIccXrAp7Dl81wwcZCsMhGuok MhRKaKWCu+qyKBpw7FmBKYh5kqWmZrAH5cze6H3qIESs/qCDE93dLt4fmTO6MZYQds8C mwIHY4nWCSgyd95Gih/9SqwYM88hlgVHZziBgqWwmLtN1dhqw5XpgjQ1NoFM8vEyWwdF 4pwd4CEOV9NmrPCnIhz+TmUVAIx5VRq6vOsm7QdOd823/YMD08ZM4AQcO5J0DNMeT4NA 7uM7EaeCn30ct7xO/see6VXPdNirxoYu2uwpmyHKLux+tUkquv5NqceYqBJD3mJn8ovx nvDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725559775; x=1726164575; 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=bnaZJziqDKdiONAxSzGup/wlqumDXm6layBdbBHOfg4=; b=eSzwX20qFc6ouOkhWY6nlhANSDfjsiZLgAlIqSABlmX+c1etOOmOgUSv+mBzQXMBg2 eRWNK4UvrZJIYXydN2skLmCpy3osQISdpQVsY4Lpj+tdPmkIre/jYHBPBAowcoZXk03X qesovu+BjEYheaZy0+W07s2Yw+sEe+ytMxegw7bs/HW/ibrZ1xz1iS19SJfxSwGe3Feb YdPhbP1o7zSLHNyqGHSpjfa2Sr4qtbq2TXytNX83cNoGM7ALdhf/Hixeh/e69WYN2ze9 5EDeGul0XiLr/Ihe03w23tcGp45uu+mJ6qBURilnvoAYgbYSl7KVyJfUe/Kf9qkqNNbA WLHQ== X-Gm-Message-State: AOJu0YwfV/SfsQQWk/UHuH5WRC7DhuMGylQFxU3GdtNx9g+hfA/W/+r3 4ETJpxmIKj2ODwD75+AJHIXYDpMBh2ZUg8xOIJ0hePrpbkPSDiRpDUTWCYjx X-Google-Smtp-Source: AGHT+IEIO74+Wz3f6PdylZLzlZJ8EuB9zCC6GfoxK27rqxkk0R2OTOhNTaqXzyPCjuJQNGAs35GoVQ== X-Received: by 2002:a05:6a00:816:b0:70e:aa7f:2cb3 with SMTP id d2e1a72fcca58-718d52dc4d1mr325002b3a.2.1725559774873; Thu, 05 Sep 2024 11:09:34 -0700 (PDT) Received: from ryzen.lan ([2601:644:8200:dab8::a86]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7177858bfd5sm3485199b3a.133.2024.09.05.11.09.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2024 11:09:34 -0700 (PDT) From: Rosen Penev To: linux-wireless@vger.kernel.org Cc: kvalo@kernel.org, toke@toke.dk, nbd@nbd.name, yangshiji66@outlook.com Subject: [PATCH 2/5] wifi: ath9k: btcoex: remove platform_data Date: Thu, 5 Sep 2024 11:09:25 -0700 Message-ID: <20240905180928.382090-3-rosenp@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240905180928.382090-1-rosenp@gmail.com> References: <20240905180928.382090-1-rosenp@gmail.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 This is completely unused as platform files are no longer used anywhere. Signed-off-by: Rosen Penev --- drivers/net/wireless/ath/ath9k/btcoex.c | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/btcoex.c b/drivers/net/wireless/ath/ath9k/btcoex.c index 9b393a8f7c3a..ad3a3fda1b9c 100644 --- a/drivers/net/wireless/ath/ath9k/btcoex.c +++ b/drivers/net/wireless/ath/ath9k/btcoex.c @@ -16,7 +16,6 @@ #include #include -#include #include "hw.h" enum ath_bt_mode { @@ -115,23 +114,14 @@ static void ath9k_hw_btcoex_pin_init(struct ath_hw *ah, u8 wlanactive_gpio, u8 btactive_gpio, u8 btpriority_gpio) { struct ath_btcoex_hw *btcoex_hw = &ah->btcoex_hw; - struct ath9k_platform_data *pdata = ah->dev->platform_data; if (btcoex_hw->scheme != ATH_BTCOEX_CFG_2WIRE && btcoex_hw->scheme != ATH_BTCOEX_CFG_3WIRE) return; - /* bt priority GPIO will be ignored by 2 wire scheme */ - if (pdata && (pdata->bt_active_pin || pdata->bt_priority_pin || - pdata->wlan_active_pin)) { - btcoex_hw->btactive_gpio = pdata->bt_active_pin; - btcoex_hw->wlanactive_gpio = pdata->wlan_active_pin; - btcoex_hw->btpriority_gpio = pdata->bt_priority_pin; - } else { - btcoex_hw->btactive_gpio = btactive_gpio; - btcoex_hw->wlanactive_gpio = wlanactive_gpio; - btcoex_hw->btpriority_gpio = btpriority_gpio; - } + btcoex_hw->btactive_gpio = btactive_gpio; + btcoex_hw->wlanactive_gpio = wlanactive_gpio; + btcoex_hw->btpriority_gpio = btpriority_gpio; } void ath9k_hw_btcoex_init_scheme(struct ath_hw *ah) From patchwork Thu Sep 5 18:09:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rosen Penev X-Patchwork-Id: 13792766 X-Patchwork-Delegate: toke@redhat.com Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) (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 7183B17BEDB for ; Thu, 5 Sep 2024 18:09:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725559778; cv=none; b=GGceOxq60MUv96LxjVe5KnKLt8Ou7J7zoIT/+Ct3rleMOAC4ezLEPVOM5lQsVhfttblBtY9NfAG+x/8Q+r/vp7DpUplWKFrbUDubQkL4T8fDaamdjcYKkSsoXLkZnSQQpzB8uPfrbEHOsXZcG9+JEvAuMYdK9xTDMSflFhiPQ+0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725559778; c=relaxed/simple; bh=VjUXCoSjt3sLw3efTtF2cdRJ/UNBzRerP7/0olvsEx0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=etuEfy0e8HUS1vdaw+lk+T9+bU+JcI6Iw6HEcEadWroHJ6h6+KVO6n6WrfmjPJ4IiENMbnfLN7vsxdwGs3A7lv+ucVlDk5c5OLbWsdT0zJoZxpr4A1vvhNj7LLIV5CyBTbOr60Ni2F/dciAC9ozmY/PBLdg4G4yOyC71XwbllY4= 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=HL0MQGes; arc=none smtp.client-ip=209.85.215.182 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HL0MQGes" Received: by mail-pg1-f182.google.com with SMTP id 41be03b00d2f7-7b8884631c4so546634a12.2 for ; Thu, 05 Sep 2024 11:09:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725559776; x=1726164576; 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=3HzwQnbN7VjF2EcMeWh3G5m0T1m4yLEushhnAr1Awfc=; b=HL0MQGesyRYN01HxGbsjOkepGGfG6tdQCzm1dKhZnZidX0ItQf/oYOr4Y7fPAubCvc 1n4biKaOjbPEVVrov6bMMoh4xCNCtGiy/qMHsR8YYNdqrP1AK8smk+esKUP1ZWf5rj5b oJJgbVJDhKVsn3au8nc6Rq1ewpcrNTgV41xGNskLEQHoUcQm1iGxnbKPwiUUZG4Q41W6 S4KrUhLPIQUltRuEUhnSwY2KFzvG0ejvnS/X7E4sv6k4lRj5EFBKXK0zrWCC+riY/IHa 8uYNRGkGzT3ZpWg9VTC4RVBCQz1wk+k0N2XcvVUnp+8T7Rfx/sprMk25ngEzNBGX2jLE QnvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725559776; x=1726164576; 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=3HzwQnbN7VjF2EcMeWh3G5m0T1m4yLEushhnAr1Awfc=; b=W16w6N3LYV3qB3VEb/XP/q2pwendth5PtEFJUdj7eVAE3fOdeKquCD2a7nWlQ97r4G ybK9nPkxp5Hht/SElbslv3/5j5hySDPwwDG1bOvMQncbUihVkmyAZQhDz3KGPrJh9BbO fkwJk6AmMIg0VrV3pk/Tx/Aqzd8uav/DkOfGi9Lr3wR2yoB/VOL6wMW5B8du+XJUFNLO OeapZxOgsVe0XYWsVRIRHbqZ/fraTLeGOrRD3FTblGANe1tfN7/MFEQ4a4vK2apvmzIJ hlQzz10z+rG+6mDJWM1F1eUbKWkrxR3M9XykMHhYczKDByNpTqBBn67wAkAnGBEcAABJ wZ+w== X-Gm-Message-State: AOJu0YzG423COVgsyDNP/43x0DckyXrlQuKfeh45H1b29/6L5JX3phqC paCFYke9EODD7rPd/n4LR6JCtUK92K6EsAebruTiCMF2+p712PJg+ERb18th X-Google-Smtp-Source: AGHT+IFUTDXdiovNRUIZ+88MnM2go0ews+P5sCj0uUB6+FxG3rCtCgEop0GCmJNzE30FTYMlfQw+uw== X-Received: by 2002:a05:6a21:a4ca:b0:1c6:9e5e:2ec4 with SMTP id adf61e73a8af0-1cecf78a0c7mr18915793637.50.1725559776412; Thu, 05 Sep 2024 11:09:36 -0700 (PDT) Received: from ryzen.lan ([2601:644:8200:dab8::a86]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7177858bfd5sm3485199b3a.133.2024.09.05.11.09.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2024 11:09:35 -0700 (PDT) From: Rosen Penev To: linux-wireless@vger.kernel.org Cc: kvalo@kernel.org, toke@toke.dk, nbd@nbd.name, yangshiji66@outlook.com Subject: [PATCH 3/5] wifi: ath9k: add extra options to of_init Date: Thu, 5 Sep 2024 11:09:26 -0700 Message-ID: <20240905180928.382090-4-rosenp@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240905180928.382090-1-rosenp@gmail.com> References: <20240905180928.382090-1-rosenp@gmail.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 This is in preparation for removing platform_data support from ath9k. Except for led-active-high, these are already present downstream in OpenWrt and never upstreamed. For tx_gain_buffalo, just set it based on the device. The flag was made for a single device. Instead of adding an extra option, just look for the compatible string. Signed-off-by: Rosen Penev --- drivers/net/wireless/ath/ath9k/init.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index 7fad7e75af6a..88db51ec7e55 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c @@ -670,6 +670,7 @@ static int ath9k_of_init(struct ath_softc *sc) struct ath_common *common = ath9k_hw_common(ah); enum ath_bus_type bus_type = common->bus_ops->ath_bus_type; char eeprom_name[100]; + u8 led_pin; int ret; if (!of_device_is_available(np)) @@ -691,6 +692,12 @@ static int ath9k_of_init(struct ath_softc *sc) ah->ah_flags |= AH_NO_EEP_SWAP; } + if (!of_property_read_u8(np, "qca,led-pin", &led_pin)) + ah->led_pin = led_pin; + + ah->config.led_active_high = of_property_read_bool(np, "qca,led-active-high"); + ah->config.tx_gain_buffalo = of_device_is_compatible(np, "buffalo,wzr-hp-g450h"); + of_get_mac_address(np, common->macaddr); return 0; From patchwork Thu Sep 5 18:09:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rosen Penev X-Patchwork-Id: 13792767 X-Patchwork-Delegate: kvalo@adurom.com Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.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 E286C17C9AB for ; Thu, 5 Sep 2024 18:09:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725559780; cv=none; b=AO7Q1fGU71lqVOkPRemQ8RoORhAFI/2XpLX1IgrxNdR8WROVQZsshdNBcBsfQ67PhEp74oYtKdz8gnjTavR5WU3YXLYTj32+H80Lrhp16Ex4N1+7yiLVaPE1WnuNZSKlxDbmneegR2GKicp1bte53mMF8+Y13Ox/0oXUJLngyA8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725559780; c=relaxed/simple; bh=Xcy0CLM9GgAJetdIEVT7MTFuJkuEoehqhcrzVMh5w74=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=H9uUrL7jhj/5TXJrZgYrUkmNszriFd3o86G0SGIobJhLqf1YQ/Lxqtu152FCiktwJPxKefS1hPBfh9jmpk0bg91UhDBJBAUyWZUp/VE8hShrDBdH4kdiJ3YHw2Tla1Sn/uLC0HJVVg34LhRxfseh5vAUlFOgnZdMIKsRI35WkPA= 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=dnLaMQe3; arc=none smtp.client-ip=209.85.215.177 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dnLaMQe3" Received: by mail-pg1-f177.google.com with SMTP id 41be03b00d2f7-7d4fa972cbeso1003089a12.2 for ; Thu, 05 Sep 2024 11:09:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725559778; x=1726164578; 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=EJw3pIHBg3muql+Aezqn2hDO2V1+bI8JIioSJTFJwYA=; b=dnLaMQe3qLhD/GuDSgBjmRe4g2rRAtfsMfEREZKhr+/0/tDPiUaf5vDrXRg7iSuQJ3 phAp6L77CpW2yGLv5OZzmpgbD+k+DnyR3ffH2jp7Jzdedtp4QA/bIAJpDyCwrI/9csxs I1e8DCC6LrnQfdYwxqy73qVmzFAEbIC6T+spV386qmwGdfV2VGiuvEUJlqY4NDfwb8qg GWAAbeUxLJ7RpWYGfmQXETOO1nKVUoDzfuv7KftcJu/Fe2IkUR4TJF57j8ElSV9/Kb9t WQrWHBunYB0F4YSsyRwnNrcBsoa8gF4NYpXNzBRjawBDoDZdEL7mM7VU/56qcwWfH1tt p9bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725559778; x=1726164578; 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=EJw3pIHBg3muql+Aezqn2hDO2V1+bI8JIioSJTFJwYA=; b=bTAqZVbkHcFMv/hJdv5G2ju9EbipsaosjLNs5wRG7i7TaCIWNpdiEobkLVeVyrdri0 yjfJOSTMC2UTwNKHS/q/JIm+MvGxLy7rcT9NLp+/eVmJWmIM5y61yC/MKkTfJv2YAinY qWj1pr7K+L6if65sinmkGyNeyhhaQOvFpiwvrMRxjtSmbzN1y2j4Z36+t13o53q8ho8A l9EbkV2YKR0W0o2XxMCmStsSdYOUQC7Srh/Bx1YCRo8BdrYKiJU7EAgkZaQLg72+JO3U mbU7i4Mb+g72diqqLi4kvma4OfLrdfPPuFy6h8F4+9ZtEbwnJ9tDcxfQupWztrMiZrEg Q4vQ== X-Gm-Message-State: AOJu0YxrOVTv/lUQOxDjYWtismC3GNTQYWFzsJWwbNBwsxNj8sutK+LL 1GKDzUEk6h6kOWzQjAM8tuCezv4DaHRCSdL6agf9fiH3Kjqi61uVK9B+NFkS X-Google-Smtp-Source: AGHT+IHOmml3gy404s7aqYNkVRCsDPLHv9rh5EA14WV/oOEo9mjWtTSlraK3p0eW3aCIgKb88tZtOg== X-Received: by 2002:a05:6a20:9716:b0:1ca:c673:9795 with SMTP id adf61e73a8af0-1cece503b02mr17098307637.22.1725559778011; Thu, 05 Sep 2024 11:09:38 -0700 (PDT) Received: from ryzen.lan ([2601:644:8200:dab8::a86]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7177858bfd5sm3485199b3a.133.2024.09.05.11.09.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2024 11:09:37 -0700 (PDT) From: Rosen Penev To: linux-wireless@vger.kernel.org Cc: kvalo@kernel.org, toke@toke.dk, nbd@nbd.name, yangshiji66@outlook.com Subject: [PATCH 4/5] dt-bindings: net: wireless: ath9k: add new options Date: Thu, 5 Sep 2024 11:09:27 -0700 Message-ID: <20240905180928.382090-5-rosenp@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240905180928.382090-1-rosenp@gmail.com> References: <20240905180928.382090-1-rosenp@gmail.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 These platform_data options are now available for OF. Signed-off-by: Rosen Penev --- .../devicetree/bindings/net/wireless/qca,ath9k.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/net/wireless/qca,ath9k.yaml b/Documentation/devicetree/bindings/net/wireless/qca,ath9k.yaml index 0e5412cff2bc..5c293d558a94 100644 --- a/Documentation/devicetree/bindings/net/wireless/qca,ath9k.yaml +++ b/Documentation/devicetree/bindings/net/wireless/qca,ath9k.yaml @@ -44,6 +44,16 @@ properties: ieee80211-freq-limit: true + qca,led-active-high: + $ref: /schemas/types.yaml#/definitions/flag + description: + Indicates that the LED pin is active high instead of low + + qca,led-pin: + $ref: /schemas/types.yaml#/definitions/uint8 + description: + Sets the GPIO number for the LED pin instead of the default + qca,no-eeprom: $ref: /schemas/types.yaml#/definitions/flag description: @@ -75,6 +85,8 @@ examples: reg = <0 0 0 0 0>; interrupts = <3>; qca,no-eeprom; + qca,led-active-high; + qca,led-pin = /bits/ 8 <11>; }; }; - | From patchwork Thu Sep 5 18:09:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rosen Penev X-Patchwork-Id: 13792768 Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) (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 D7E4917C99B for ; Thu, 5 Sep 2024 18:09:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725559782; cv=none; b=r7yqjMBn5aly3F1d3AFxRRoldSE38j/A9ju16g6c10XaEkCXShbdHBT0dpDsQHX2DmjT+ArfImn00swTA5aRVcOWXg8qkktA4iv4o+wkROLFAq64slrT90E9QIWTEiVbJUh3A2hyN/Hdrzm5v5kyy8gU4ucw0WQoEanixdKxxpI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725559782; c=relaxed/simple; bh=t4RpnkChInJMnxybZH68s7fE1zxROobmFfcqLun/NgQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TnlaEYuyO9gMscqW/kg7dUmWismUF5ser42fzMYqSJ+W2hM0pGXGxPlc/+s2QgO/MO+kxabGwlmC5zgm6yslCR+7c+Fo90jJJC/rII941iE0n441AY912TChxFa9WLajw15tGtEwjUcpZcuhuYPiKZxcd5fNg4fYoZUFQivGNIA= 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=cmVmYkQx; arc=none smtp.client-ip=209.85.210.172 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cmVmYkQx" Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-715abede256so924582b3a.3 for ; Thu, 05 Sep 2024 11:09:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725559780; x=1726164580; 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=KY40VmqYhN8V2lmu/siuRbRm4wTzzxRzsOvExXvkmYo=; b=cmVmYkQx/3AsUopZhBfdM7JeSOr+zcZ/txrG4Dm4JVFVIBBhX1Kg3PtCI/q+v1pBKw +3/xnHGsQt/XUW09Jgl9o4xZCN7lxyBBM/wT+AvLYn7YdTRFdVAzn8PBFyhyyrCutD5b GoqvVM7oYtPc1Th8Ss8dyQ6hjWm1525RIkPkOME3hTRwx7LG8/sgPq5BWjfUZy8VGDXa Y8vzB487vbQ3y38g+WZI+ddiv9JlC/KL2pFbSweMhbc30SnR2DTDNnXzbHsH2+/4l55S fUp9WvQEiZtHhI48dW8KSs2wPXFo50E7P7sTK32SSxanGbkD+5sN8KYAJVefFsyVky4h 8GEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725559780; x=1726164580; 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=KY40VmqYhN8V2lmu/siuRbRm4wTzzxRzsOvExXvkmYo=; b=UI5cS+hjaV+hOBxUTlcre44xRpEPPkP9jMqZebG4DMyrXlP72PPKRvGtjThIigCpEl ZZBSCbyfoYVWmPEFyAnw8Y5VUqN/+VR3I2bkTMO/+9c4K6dOZXnr2pZS2P3UsoesmfVe Vr/FHXiGsqmHan4QzL/6ShwvAxouBFhSlM7AvspUm475tx36xuxzOGQvvwv0IYfwy0hg w2DeJ0FfwaXdBYr3/gt9+t7V88TaGMTHfs6eZN318D5kZu+GyP0nn+6GrKpyZKuxf4Es yjHwEkv7P1+EsXNoM8xCrdyWRPjCbVkbf3bLqafyw9SjlZAHYwZBTLBEMvFLwRmyn1ZM L+2g== X-Gm-Message-State: AOJu0YzLGh39u+FyHx+qkgg+Q7U60bYS7TrsY4WoKVh82MumvzYUkOX8 0IJ6m6OKHEjVOwfcxwL60gp0gIavG+x5kYeu2yuDQN8wQNDpJByKtoIgE6hw X-Google-Smtp-Source: AGHT+IHmXJg5H3AMe4QvfKMWzaFMS2GWCf/h5QXZ1HhlDu+Jd3Psz0xCdTxXlMfD/GMpx0jpt5tmRg== X-Received: by 2002:a05:6a00:21d5:b0:714:19f8:f135 with SMTP id d2e1a72fcca58-717449b1a76mr17544033b3a.21.1725559779794; Thu, 05 Sep 2024 11:09:39 -0700 (PDT) Received: from ryzen.lan ([2601:644:8200:dab8::a86]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7177858bfd5sm3485199b3a.133.2024.09.05.11.09.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2024 11:09:39 -0700 (PDT) From: Rosen Penev To: linux-wireless@vger.kernel.org Cc: kvalo@kernel.org, toke@toke.dk, nbd@nbd.name, yangshiji66@outlook.com Subject: [PATCH 5/5] wifi: ath9k: remove ath9k_platform_data Date: Thu, 5 Sep 2024 11:09:28 -0700 Message-ID: <20240905180928.382090-6-rosenp@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240905180928.382090-1-rosenp@gmail.com> References: <20240905180928.382090-1-rosenp@gmail.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Completely unused here in favor of Device Tree based setup. The DT code in here should currently match what is available with platform files. Any such lapse can always be added. Signed-off-by: Rosen Penev --- .../wireless/ath/ath9k/ath9k_pci_owl_loader.c | 1 - drivers/net/wireless/ath/ath9k/hw.c | 2 +- drivers/net/wireless/ath/ath9k/init.c | 52 +------------------ include/linux/ath9k_platform.h | 51 ------------------ 4 files changed, 3 insertions(+), 103 deletions(-) delete mode 100644 include/linux/ath9k_platform.h diff --git a/drivers/net/wireless/ath/ath9k/ath9k_pci_owl_loader.c b/drivers/net/wireless/ath/ath9k/ath9k_pci_owl_loader.c index 004ca5f536be..fe1013a3a588 100644 --- a/drivers/net/wireless/ath/ath9k/ath9k_pci_owl_loader.c +++ b/drivers/net/wireless/ath/ath9k/ath9k_pci_owl_loader.c @@ -18,7 +18,6 @@ #include #include #include -#include #include #include diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index 04a4b9ea61c3..36db734c74ae 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c @@ -490,7 +490,7 @@ static void ath9k_hw_init_macaddr(struct ath_hw *ah) u16 eeval; static const u32 EEP_MAC[] = { EEP_MAC_LSW, EEP_MAC_MID, EEP_MAC_MSW }; - /* MAC address may already be loaded via ath9k_platform_data */ + /* MAC address may already be loaded via NVMEM */ if (is_valid_ether_addr(common->macaddr)) return; diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index 88db51ec7e55..58dbf5e13151 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c @@ -18,7 +18,6 @@ #include #include -#include #include #include #include @@ -583,8 +582,8 @@ static int ath9k_nvmem_request_eeprom(struct ath_softc *sc) /* nvmem cell might not be defined, or the nvmem * subsystem isn't included. In this case, follow - * the established "just return 0;" convention of - * ath9k_init_platform to say: + * the established "just return 0;" convention + * to say: * "All good. Nothing to see here. Please go on." */ if (err == -ENOENT || err == -EOPNOTSUPP) @@ -620,49 +619,6 @@ static int ath9k_nvmem_request_eeprom(struct ath_softc *sc) return 0; } -static int ath9k_init_platform(struct ath_softc *sc) -{ - struct ath9k_platform_data *pdata = sc->dev->platform_data; - struct ath_hw *ah = sc->sc_ah; - struct ath_common *common = ath9k_hw_common(ah); - int ret; - - if (!pdata) - return 0; - - if (!pdata->use_eeprom) { - ah->ah_flags &= ~AH_USE_EEPROM; - ah->gpio_mask = pdata->gpio_mask; - ah->gpio_val = pdata->gpio_val; - ah->led_pin = pdata->led_pin; - ah->is_clk_25mhz = pdata->is_clk_25mhz; - ah->get_mac_revision = pdata->get_mac_revision; - ah->external_reset = pdata->external_reset; - ah->disable_2ghz = pdata->disable_2ghz; - ah->disable_5ghz = pdata->disable_5ghz; - - if (!pdata->endian_check) - ah->ah_flags |= AH_NO_EEP_SWAP; - } - - if (pdata->eeprom_name) { - ret = ath9k_eeprom_request(sc, pdata->eeprom_name); - if (ret) - return ret; - } - - if (pdata->led_active_high) - ah->config.led_active_high = true; - - if (pdata->tx_gain_buffalo) - ah->config.tx_gain_buffalo = true; - - if (pdata->macaddr) - ether_addr_copy(common->macaddr, pdata->macaddr); - - return 0; -} - static int ath9k_of_init(struct ath_softc *sc) { struct device_node *np = sc->dev->of_node; @@ -755,10 +711,6 @@ static int ath9k_init_softc(u16 devid, struct ath_softc *sc, */ ath9k_init_pcoem_platform(sc); - ret = ath9k_init_platform(sc); - if (ret) - return ret; - ret = ath9k_of_init(sc); if (ret) return ret; diff --git a/include/linux/ath9k_platform.h b/include/linux/ath9k_platform.h deleted file mode 100644 index 76860a461ed2..000000000000 --- a/include/linux/ath9k_platform.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) 2008 Atheros Communications Inc. - * Copyright (c) 2009 Gabor Juhos - * Copyright (c) 2009 Imre Kaloz - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef _LINUX_ATH9K_PLATFORM_H -#define _LINUX_ATH9K_PLATFORM_H - -#define ATH9K_PLAT_EEP_MAX_WORDS 2048 - -struct ath9k_platform_data { - const char *eeprom_name; - - u16 eeprom_data[ATH9K_PLAT_EEP_MAX_WORDS]; - u8 *macaddr; - - int led_pin; - u32 gpio_mask; - u32 gpio_val; - - u32 bt_active_pin; - u32 bt_priority_pin; - u32 wlan_active_pin; - - bool endian_check; - bool is_clk_25mhz; - bool tx_gain_buffalo; - bool disable_2ghz; - bool disable_5ghz; - bool led_active_high; - - int (*get_mac_revision)(void); - int (*external_reset)(void); - - bool use_eeprom; -}; - -#endif /* _LINUX_ATH9K_PLATFORM_H */