From nobody Sat Feb 7 18:46:02 2026 Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (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 770F81DE2A4; Thu, 22 May 2025 18:45:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747939522; cv=none; b=jEcWsq1HBnxKNPsh+c9j58y92t4ISrIc49dwzX9h9vRrILagrrq43uWFo1tVmMG+y9VdOomHGLzyz4a1RoBMMGxmReqGDOSNL1l5DQ2Ns3Tuc61qoSveU06A0e7H5JJ2hhDXKlFWKc3HoE6cVfdSedxeRu3hi6ZH2EfgXYSGr9A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747939522; c=relaxed/simple; bh=LAVh7geJL1PD75mFZMVsyKCNDPWBKX7Jf3cyBhahb+w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fywX6Tcomzs+P7O+3d0vja8NR6QSU0S8kMALMkbRKWUN7Spt4xzSKCpltvf85FND+3FXE4sIhOESsDLVN3BiUiNkXySzeShe8N+uUxK8uaxEN6nK2hYUgMgSw6fuzRNb+Tt5t1aqqJIlgdfTPmc9Nvl23kVbp7WjstB5Gn3k8RY= 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=fyXy9euv; arc=none smtp.client-ip=209.85.210.176 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="fyXy9euv" Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-7426c44e014so8136102b3a.3; Thu, 22 May 2025 11:45:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747939520; x=1748544320; 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=6nQsjeWRBpWxFf7RQtRpXio5qVfPNye6yh/BzrdVEeY=; b=fyXy9euvjhqdQTcfsmJM3YE28u0GnvOGpX1NbOwaZmXi4WE/zHRY+ZNF3RnP8aSZ4B JyKgW6BO5o4zgpjS41oi/kk9j3rtstea5OEJM+HhBmrgi/X5etpVaVDXGFSbyrY2Cre9 MphP6qYyK3/kNFQ0zOCFYadf10BQvQhQ48vWeGjGYyH2AfxYszFKF6hFC7xbc42Ug2Ic W5DLzikLNoab+y0WHgQdFEV4NB7uCp0zS6w2HNFH7/nNKDWuYXvi05YTWSgPzECPCMIT Rtq2KwoP06ACAMAtFyQUt0YSma/hVLUxXlkWdhibO5Zr76JuMi+mwPzQGzu56eCUmJr0 L9YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747939520; x=1748544320; 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=6nQsjeWRBpWxFf7RQtRpXio5qVfPNye6yh/BzrdVEeY=; b=bae0jZJ4FmWCTGokUdOxEfLLdZ6ZIFczOzwVQu+I3X9M33W6JT4q0s30tjKLJ9Ri6n KixdETDkHtEbAE8DcI/Tbv8dJ03qa2IIdKFtHIW43XWy0FbmKfxQ7xC0S7mA5KKhqskQ HFPEJG8XfPNOg++7fd/oze2lbKVe13pJhbLJxnRfqI359+nyL++PYK/Z8T7p4GhLRfoI R9LJ6Ii6ScY9FNyg0RwSj5DFTwSUxO9o2xn+O1iKJL5XnFT+AuWpGKdN4QKah/N241vg nyOwVamcnC84dyX7SirN1RuKl0739sw7U+lirHbl5WBuS3c6FN64co7p9v/90a8U7k0X sjKw== X-Forwarded-Encrypted: i=1; AJvYcCVw5028CoLqH5Odd9qNHFnK7e48hP5PBf3nBqzfUzpRSlCZ0agQoUiiiRuZl3dVbUxcCJFavByDXpau@vger.kernel.org, AJvYcCWAnjICTV0Q2Qd/sGYjsNOG/VxZ9aVuSdtwwgToeVDOxGhfwz0e3GF0w7uclntvPWL7hoEeJOJaPoVcs3fy@vger.kernel.org, AJvYcCXZfeqien6p15quW1PryZLDsNSjqEx4MhR0vVi7yofORLULB+SRT/rrNzN973g3GVgn3ii8wkhCEQ0GSw==@vger.kernel.org X-Gm-Message-State: AOJu0YwSAao9i2LWe7KG6f72zYBKap5Hl6wWSL8MMcgIpW87Af3tAlBz JnjwdmvsCUvJcP0Fr3mfD4FnLFMRr6gkcSWWIxyug5yis8lZJXc28b2ySjKiHA== X-Gm-Gg: ASbGnctJBA06qyjJaFrPTcMG0FR7asdSvjc5zbXtV4wUUD22m9OuadKo5DUWUzPsJSU 0J9m4moO4rdR3y7I/NMoX2B730v1EVPVot2+BxlJL4ax2/gAIszju9cJkup9k6fOD0pPHRcL8rK SnLFsehAeKyPZFcALlIKmUImc7ChwNwHZYecGSNAR7yfJhpnacsxJCvT9wS2PWn14YdBbTm/Mjh z8m4ycqkgyfa+5REFiWPRRUn23IhBqYWur4Q4+s0q9QSYeq96MC+J8RGudDjNLFJ0igSHN2iHCr +/Pj9b1GG3fUaAJoN/vxX+k8CNY= X-Google-Smtp-Source: AGHT+IH82BCActNoY8vVNgWpQD33ZdqnU0667xDNWI0aL8zg2I4vCanp9Bh5OfJh9/KzwEpWt7vy/w== X-Received: by 2002:a05:6a20:9195:b0:215:e60b:3bd2 with SMTP id adf61e73a8af0-216219bd518mr42657446637.30.1747939519875; Thu, 22 May 2025 11:45:19 -0700 (PDT) Received: from ryzen.lan ([2601:644:8200:dab8::a86]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b26eaf6fd3bsm11502424a12.23.2025.05.22.11.45.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 May 2025 11:45:19 -0700 (PDT) From: Rosen Penev To: linux-wireless@vger.kernel.org Cc: =?UTF-8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= , Johannes Berg , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Bogendoerfer , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list), linux-mips@vger.kernel.org (open list:MIPS) Subject: [PATCHv2 1/5] wifi: ath9k: ahb: reorder declarations Date: Thu, 22 May 2025 11:45:12 -0700 Message-ID: <20250522184516.13176-2-rosenp@gmail.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250522184516.13176-1-rosenp@gmail.com> References: <20250522184516.13176-1-rosenp@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Easier to look at. Follows netdev style. Also remove ret assignment. Because of all of these devm conversions, ret =3D 0 is a path that never gets hit. The first time it does it when request_irq fails, but that ends up reassigning it. Signed-off-by: Rosen Penev --- drivers/net/wireless/ath/ath9k/ahb.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/ahb.c b/drivers/net/wireless/at= h/ath9k/ahb.c index 49b7ab26c477..d2a97e74f451 100644 --- a/drivers/net/wireless/ath/ath9k/ahb.c +++ b/drivers/net/wireless/ath/ath9k/ahb.c @@ -71,14 +71,14 @@ static const struct ath_bus_ops ath_ahb_bus_ops =3D { =20 static int ath_ahb_probe(struct platform_device *pdev) { - void __iomem *mem; - struct ath_softc *sc; - struct ieee80211_hw *hw; const struct platform_device_id *id =3D platform_get_device_id(pdev); - int irq; - int ret =3D 0; + struct ieee80211_hw *hw; + struct ath_softc *sc; struct ath_hw *ah; + void __iomem *mem; char hw_name[64]; + int irq; + int ret; =20 if (!dev_get_platdata(&pdev->dev)) { dev_err(&pdev->dev, "no platform data specified\n"); --=20 2.49.0 From nobody Sat Feb 7 18:46:02 2026 Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) (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 7FF8A1DE8B3; Thu, 22 May 2025 18:45:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747939524; cv=none; b=BYAVbtrR9fBvKjfS0SJnGLCgFvwqrt13YY1h00Sz3G0IvPn1SqqWmAerDXWcwbVJLqIM131p/yDUJIqJ7RHE2fB85f1N18HCtoGBQz2z47a+5lCfcMYGrH4Romlr802XuyIbtl2X48i6fl0alBe8X9D4TohJmT6ZDwRIv9FJLKU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747939524; c=relaxed/simple; bh=GHzj+vhP0IH7AazDd4aDDdmVsDEWratUTV7OerNI/8A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lVZaB7tEgUU1ojEUrs+NI10b8v2UWNM5KYZ5pHh7ZQgyKgFMa0bugjr4B+GR36ytJTMy5cWBoczvomsFO84C96pBc3EC/3kxXbF7zvu4owEWz9zcvNtS81S1AFnmKWzbodhO0uZpuWBpi6MA9sUOOUGkrRVkkcqV84IbZzkoBHQ= 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=nBC84nGw; arc=none smtp.client-ip=209.85.210.171 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="nBC84nGw" Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-7370a2d1981so6345336b3a.2; Thu, 22 May 2025 11:45:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747939521; x=1748544321; 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=SQ+RqlSFyQLSDHWP9kEu2/DGiQBnqF1j/beqMyydt5w=; b=nBC84nGwwk8wkceg3QDP5PAn3/Zj+3BK+nHodbbFhSR60n+rJIxG7trtXQpNTVkwdQ Yx/JXM9T23+hcrznq7gWVkt5MUUg4kSTJsT2jzJeaeXidfUkmSd2jvx27Lkr4xg4oEjG mmTj3uCtGTU/7bHCLwTDv8x/9X2/Zr6Rj9ypE59WSvNB/QntGF37m6DLSixLsjkdX/Om 2XomhOS/2bUyMuU9+eX1tPmuzyY98nOirIKvEbePNasZ2hwg0Y9G0KGSvGm0M9+B4Lpp 73WwyqzK3febk7uV7Taw0vJFK4uGOTDCk/C8EHCIdXItJ6ApHR1q/oRx6St5DGnNhV0V iu1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747939521; x=1748544321; 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=SQ+RqlSFyQLSDHWP9kEu2/DGiQBnqF1j/beqMyydt5w=; b=hNHZHMQPvHYydI4cHGv7eVH7m8w6Ru5zK34NLY7pywIWIJno9t7gJsaAfVh0B3K9wF tuLkTkDw/kQ4BeQobs5jassVBzHnijL/r777OfFD6JdB2uhtXxhKB5zHMdrx3+/VBId9 J1DpJIX4rmPc9svgx1yT2Wo9cNvUptynFBlu0Boe2rhWhc4TLYgPvVFJ8PJZzZpi3jt/ r3yxIKrq3Oo6+FjwT2rVbemy5m9F9+B5W84+stoIxnLT6tLft1ekXAP1yhoFhvQ1ah85 AR6dI934Pb15dLrEwhTpqu71e1RmH8LjkuSM6vtBav8bHWsnL6AzeqDUKXfdxcfnkcdu bl/w== X-Forwarded-Encrypted: i=1; AJvYcCWU40WV0ucreFc7ynHtEzOG0M8TPalTMz/JD3Zs4LWGY0AEfo051+2Xoj1OyPCVq2w8YExFezsG3/sT@vger.kernel.org, AJvYcCWvRYOXcVG68zkoPQzorQykbYW7uGml7LyKsVQ0We2ymEPywbF/tlSxNlYmrBDpHgkzjtDJBfL63lw3iA==@vger.kernel.org, AJvYcCXwDWsuzXGmMt1Eul+lDT/RO04S93SZe1UmWnUS6cE6z3UbpwpRa/0oKM2S72Q4Flqc3sQHQwudBNSvM68G@vger.kernel.org X-Gm-Message-State: AOJu0YwRg6b/4jNRF9tIudOzTAAbn5/2V+j7otgdRVIjkqZwe+XK1HRB vm1Sa2qkdNJvQAUX37Ykd8nbWf5M5tYuMmFW7rxwIA8nuqOr8wfu4K9aG+awWQ== X-Gm-Gg: ASbGnculRNtY/hA7knZp/f/AF2LLpUPNQzrHJvrJp53mOy7gkJQ26MSQA+tGJGTAMZg blPQyuvSIEG8uM/SaOH2B47EARkG3tDp1p/gSCn5BFosXWp+Xm8KmphCIDrZMGyVDu1718r8DDR igztZnJn8ZlJL3KTZBLdyPA6BGgi9i4/rDuzyl+GBHlYACzV+wx/omniNYtsarr+2B2pWVYozky kS/XCrjGc7Uy7Vp1TH2ES89R3XfKMaCWAEdaWxPITeCsE4o2VBrwg61IAibC2AFRMUbKgUF2whD bihPzh9O9ggOC0iDWY09bTUHG5U= X-Google-Smtp-Source: AGHT+IFa81NdOeK77JwCSKZuNJse+tfYbbLCdqfdf2Wn/Fnuu9YaiowO4qBpBtUTK9rN+4Pio7xChw== X-Received: by 2002:a05:6a00:e0e:b0:736:9f20:a175 with SMTP id d2e1a72fcca58-742acc8d8f4mr35635536b3a.2.1747939521408; Thu, 22 May 2025 11:45:21 -0700 (PDT) Received: from ryzen.lan ([2601:644:8200:dab8::a86]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b26eaf6fd3bsm11502424a12.23.2025.05.22.11.45.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 May 2025 11:45:20 -0700 (PDT) From: Rosen Penev To: linux-wireless@vger.kernel.org Cc: =?UTF-8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= , Johannes Berg , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Bogendoerfer , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list), linux-mips@vger.kernel.org (open list:MIPS) Subject: [PATCHv2 2/5] wifi: ath9k: ahb: reorder includes Date: Thu, 22 May 2025 11:45:13 -0700 Message-ID: <20250522184516.13176-3-rosenp@gmail.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250522184516.13176-1-rosenp@gmail.com> References: <20250522184516.13176-1-rosenp@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Alphabetic includes are easier to look at and to make further changes to them. Signed-off-by: Rosen Penev --- drivers/net/wireless/ath/ath9k/ahb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/ahb.c b/drivers/net/wireless/at= h/ath9k/ahb.c index d2a97e74f451..1ffec827ed87 100644 --- a/drivers/net/wireless/ath/ath9k/ahb.c +++ b/drivers/net/wireless/ath/ath9k/ahb.c @@ -16,10 +16,11 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ =20 +#include +#include #include #include -#include -#include + #include "ath9k.h" =20 static const struct platform_device_id ath9k_platform_id_table[] =3D { --=20 2.49.0 From nobody Sat Feb 7 18:46:02 2026 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 D18251DF970; Thu, 22 May 2025 18:45:23 +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=1747939525; cv=none; b=bIxFcUDB71cvcsKl2XdBUVBXUHWSD/CPbP7V7DTIvUxbfjnff07562VlcO1J8N+aTAtqTiiZI7qZkGfDZu9Yz0d3a1lXxPz5N+iWxZk9o3DrXHpsd6ZvXiyg50ujRANZVW6BlxEjRloInJD5FqGtgHuz7Sc9rGTlRF+JQc8QOIs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747939525; c=relaxed/simple; bh=ccCfA8m5eJ6z/PwmU4k0oQB2uN3f5nv9EhXdOmJHb94=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=O//9kUxeKfui4mQU20jtSKF0p88++YxBd2jGtgPd5QquJr96Bv2jAudZvzLEQOZcOUQuV+pKipliQ1Dso19Rc8thhyW1HJxzHpgP5zDAcLO0WwGwfbhq02JppOx8p7mACfaYPGFRyV5TwNh8mSkfBMMLMfrEduR2T7fOSjwMMfM= 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=j02/VRtt; 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="j02/VRtt" Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-742b614581dso6859784b3a.3; Thu, 22 May 2025 11:45:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747939523; x=1748544323; 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=sU8tu3ohL2q9KpxApk9MimwHPPZSghjSuXZGOqcOors=; b=j02/VRttAzvw3b7vY2Is3bDVkgtwa6u1CEoVcc53tp+0C591FfKYW6xmIjoLu6k2uf CRO0dytsdH/d1ph3XMV0XsDuQOT5677NkvvNBGkUTm65hMjnbCuAz6B/sUl3mKnx+rYo J9En/Pq8C5XDhhiAzUCVRc6voYWnoCXxy0KeaZGO+JzSyFLcsGtU+NV7gK0k8IxMfXlQ e2J5cZh13oZrXJF1iEioWO34qob8K985MoWHJuT7APA9ItjpOQGyqwx50LPGrqk96/J+ k3ic++azCWPfloBRT8O5PyBVnhyvVVJ08F74Z7WbuKufMtfOdSQql4LwvNYn7gbiRy0O HWNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747939523; x=1748544323; 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=sU8tu3ohL2q9KpxApk9MimwHPPZSghjSuXZGOqcOors=; b=w8eshZIRKkBevpXmPKpUrD/bhnyAmucUtQo/PioTklNmoJogVWWPPpEgoT6A7UFICA OZIzWPzfOYU/FjxYoPVl3ipy4Ew1cr/4WGU9x2HqWZLuYTICcEhRQ9YA8BSWHGizrfRF IInn0qF5ycMxkweplhdDCDJrxZyXHysFnYIDvkoblDh6OK3Nf7XWN4vCBtRLwySJnHNX qdeFxQnmj44q2WO88jcFpn2wWk+5GRKKKyvjrkedXsd7G22zvhWmE1jjwgOGFlxBFmCQ Z9bDWrH+js3E5o+kkOwGbrdSBiPy+phIp5Yp99q7tNnAvk3jIHvnIA7FSDJBdOJqZjh5 9+YQ== X-Forwarded-Encrypted: i=1; AJvYcCXD4F0Ms3fTXODNBnDtR3/gPJCJPp3nbUD4CXfUfmyBSzwoG32gFnz3Cx8lDV6GbJbRlNC8CEKKX+OhwA==@vger.kernel.org, AJvYcCXGZl7elphPY7ysQreR/9ufnZKXYTi2GX1QvjIMDlVIlusM04WKv8mbF60nzJNfZWwDlwsVUFwymIUxhHPF@vger.kernel.org, AJvYcCXyzgq+l3nFoHkmEjwIooh4iZqFF5E+QWTJ7rniV1LBCPt/QQL0aG5L9EobE6wQJfXlDRcRyR6zPTGX@vger.kernel.org X-Gm-Message-State: AOJu0YzeFKnIWcc7D8kItsFOffmdC9+qx+uSzWsdfBtLNa7JwanBq0j/ OeYumyZ+eM8z4RMP425sc8ySbx7OigcjZztvo5W1D4rJngGHnvPcCgCNfaBNsQ== X-Gm-Gg: ASbGncuVGu3HHJ82wrr2u2WeQVRa8aTEUyqTIrvx0kOxbneih0A/rKouf0NYadfhYIV l/u5ewXNsfz9eW/mYwvMZ7vCB2AoUy3mtgFXYkVTwAYh0bR8NQ2/OLKvC0K+nAGlSyPBU/9IxRW UGKqzuSWLEjVKfnGmhBZnoA2P+NNYxMdmZ3MU0nUaVjg4K10C+zFFY2XfLLbIb7o3AxtGBr+sG6 FPuJ4BXkcyqbk/5Rtqfag6IL7vkaBT0SCvvQm5faP5YouueCU1n/xfgPVYVJw/aMlIQalXJsP/1 HA8Z89KX+6FDareeninkSrchCMw= X-Google-Smtp-Source: AGHT+IHTu9EdFGaO+yT2zuz4yvO2A6r84V8N0d0zIG8Zy07aeacEepaTAm4uLsAPtHSS42wUE31VqA== X-Received: by 2002:a05:6a00:399e:b0:73e:235a:1fca with SMTP id d2e1a72fcca58-742acd7281amr35701740b3a.20.1747939522823; Thu, 22 May 2025 11:45:22 -0700 (PDT) Received: from ryzen.lan ([2601:644:8200:dab8::a86]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b26eaf6fd3bsm11502424a12.23.2025.05.22.11.45.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 May 2025 11:45:22 -0700 (PDT) From: Rosen Penev To: linux-wireless@vger.kernel.org Cc: =?UTF-8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= , Johannes Berg , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Bogendoerfer , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list), linux-mips@vger.kernel.org (open list:MIPS) Subject: [PATCHv2 3/5] wifi: ath9k: ahb: replace id_table with of Date: Thu, 22 May 2025 11:45:14 -0700 Message-ID: <20250522184516.13176-4-rosenp@gmail.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250522184516.13176-1-rosenp@gmail.com> References: <20250522184516.13176-1-rosenp@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Since 2b0996c7646 , all of this platform code became no-op with no OF replacement. Not only that, there are no users of AHB here. Add an OF match table that mostly mirrors the original platform device id table. Use a qca prefix as is done for the only other property: qca,no-eeprom. Also used qca prefix for ar9530 as the latter seems to be a mistake. This will be used to add ath9k support for the various ath79 devices here. Signed-off-by: Rosen Penev --- drivers/net/wireless/ath/ath9k/ahb.c | 47 ++++++++-------------------- 1 file changed, 13 insertions(+), 34 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/ahb.c b/drivers/net/wireless/at= h/ath9k/ahb.c index 1ffec827ed87..d8b13aa329ee 100644 --- a/drivers/net/wireless/ath/ath9k/ahb.c +++ b/drivers/net/wireless/ath/ath9k/ahb.c @@ -19,35 +19,18 @@ #include #include #include +#include #include =20 #include "ath9k.h" =20 -static const struct platform_device_id ath9k_platform_id_table[] =3D { - { - .name =3D "ath9k", - .driver_data =3D AR5416_AR9100_DEVID, - }, - { - .name =3D "ar933x_wmac", - .driver_data =3D AR9300_DEVID_AR9330, - }, - { - .name =3D "ar934x_wmac", - .driver_data =3D AR9300_DEVID_AR9340, - }, - { - .name =3D "qca955x_wmac", - .driver_data =3D AR9300_DEVID_QCA955X, - }, - { - .name =3D "qca953x_wmac", - .driver_data =3D AR9300_DEVID_AR953X, - }, - { - .name =3D "qca956x_wmac", - .driver_data =3D AR9300_DEVID_QCA956X, - }, +static const struct of_device_id ath9k_of_match_table[] =3D { + { .compatible =3D "qca,ar9130-wmac", .data =3D (void *)AR5416_AR9100_DEVI= D }, + { .compatible =3D "qca,ar9330-wmac", .data =3D (void *)AR9300_DEVID_AR933= 0 }, + { .compatible =3D "qca,ar9340-wmac", .data =3D (void *)AR9300_DEVID_AR934= 0 }, + { .compatible =3D "qca,qca9530-wmac", .data =3D (void *)AR9300_DEVID_AR95= 3X }, + { .compatible =3D "qca,qca9550-wmac", .data =3D (void *)AR9300_DEVID_QCA9= 55X }, + { .compatible =3D "qca,qca9560-wmac", .data =3D (void *)AR9300_DEVID_QCA9= 56X }, {}, }; =20 @@ -72,20 +55,15 @@ static const struct ath_bus_ops ath_ahb_bus_ops =3D { =20 static int ath_ahb_probe(struct platform_device *pdev) { - const struct platform_device_id *id =3D platform_get_device_id(pdev); struct ieee80211_hw *hw; struct ath_softc *sc; struct ath_hw *ah; void __iomem *mem; char hw_name[64]; + u16 dev_id; int irq; int ret; =20 - if (!dev_get_platdata(&pdev->dev)) { - dev_err(&pdev->dev, "no platform data specified\n"); - return -EINVAL; - } - mem =3D devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(mem)) { dev_err(&pdev->dev, "ioremap failed\n"); @@ -118,7 +96,8 @@ static int ath_ahb_probe(struct platform_device *pdev) goto err_free_hw; } =20 - ret =3D ath9k_init_device(id->driver_data, sc, &ath_ahb_bus_ops); + dev_id =3D (u16)(kernel_ulong_t)of_device_get_match_data(&pdev->dev); + ret =3D ath9k_init_device(dev_id, sc, &ath_ahb_bus_ops); if (ret) { dev_err(&pdev->dev, "failed to initialize device\n"); goto err_irq; @@ -156,11 +135,11 @@ static struct platform_driver ath_ahb_driver =3D { .remove =3D ath_ahb_remove, .driver =3D { .name =3D "ath9k", + .of_match_table =3D ath9k_of_match_table, }, - .id_table =3D ath9k_platform_id_table, }; =20 -MODULE_DEVICE_TABLE(platform, ath9k_platform_id_table); +MODULE_DEVICE_TABLE(of, ath9k_of_match_table); =20 int ath_ahb_init(void) { --=20 2.49.0 From nobody Sat Feb 7 18:46:02 2026 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 01B631E1E06; Thu, 22 May 2025 18:45:24 +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=1747939526; cv=none; b=BPgzDggQ3kF9Qd4Lp9Obsa+Ul4b+QUxoQPEfixnBuJ8uDfZFyTV6AomlR1TpVhK0ovz9HP/It3RXmlPNup97Uely3b68d7lctNHjD90lrL3BSSq/ZlbitIKedoA1hpiSEi05Vaax7vgDjeLVD2+ERH8WMXYzECyAobyXhihsPwY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747939526; c=relaxed/simple; bh=mdl+sarQ+2QfHzGOrQvNeh7W0jb+p0S007RInUhFJmQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fzPzDew11um/Od+HHoyfcWfx61NRgcgP+mWIDw/vYI9hqTgpnefdhK2ClGSxWge2J632x2U1ly28DQQnitv0tjjYNbviO8agg+Lg/JW1hNr5v+yWyGdm6/jR2v3PoEZUImhJiSQRjAmNVhvopWu5W9LP3+Sz2l9WDkiTVM4fw6I= 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=f90VcGQ2; 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="f90VcGQ2" Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-7426c44e014so8136157b3a.3; Thu, 22 May 2025 11:45:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747939524; x=1748544324; 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=5Q5TA9nmQWJys6LYZulKrAmVUie4NN8lnpBt7un7g70=; b=f90VcGQ2z2tTcDqP0TGL991tbjLSasKJSrXgoA1AgAiAGEr9WY/syHHiA6wb2Q/o6f L0JszR/vCb2e0d6CWSnMbvp0x29uvO3iWLXvmMlw7lC3sGjV7CA8vXlvR+/FMuiN/hQy O5L1rucVInIfCf17ouQd7u9gixdOxKbHGdZkGwT5X4kLcz5xi5B3Ylu5y+NNZSB1dzkZ yiJ4Kdvc2KK3MZGKX2wutuI3XxCZtKzp1uwLl0eQbeuAnz9OD5LmfDhpW7U/ERpEwg9p GSwlje+3r3bjE8ZMGSXKcj1j06e0TYJ4eVRwsBZxhX3CHuB964hUd/9L21/JsORFTZZp 1ugg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747939524; x=1748544324; 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=5Q5TA9nmQWJys6LYZulKrAmVUie4NN8lnpBt7un7g70=; b=sBg4CkjOKLiE29/bVuCrDIJrPNZnyr3c5X00ar8O3bTPMLD/fqCJJ7phwO17HAOuAo t/78pOvL02dufBMey4IRKBzPnetqZW4NWHDUhCzHq4DVPBL4zor+229qs885nxGmI/xo qC+7W2we/Drym74RUfpyII+gJQrihCbC388GARm0zYCJX7G1GaIA5icL7a4LGdEhxBzd lEJU767cTqLlAmptpzMafpJrQrUB7fZnIy8n88Tl1xnZu0irBq2GHLpdeIpEZXfW9pzo Ggs1gxxBBcsB+0tRMCeQz1nL2LEdj/y67sdRpy9CCuSAOZw3TkAHZMVk+TbU39psX4zO MdQw== X-Forwarded-Encrypted: i=1; AJvYcCURMPsC1wqYcd7oa93PbWx8ogJr48cgw0Bfg8nWUjZK4c4FpcUatb9E+JO7LmudYDLcnFNagyH7Ef/oCw==@vger.kernel.org, AJvYcCWWqRMVlcn8At58SlQDUOV9kdTETqTitK0aEkuhbU1w8Nsucbr6gfN1+qZkh4supgirrG4fmlK6TuxF@vger.kernel.org, AJvYcCWyUyv3s9WYCAmj+/Cve7GDAMHq2P4tUkuPQtCLVK33/qrdBWsmzFoVoVHDxDOE/Y+ireFgZdk0Onu0b7Gp@vger.kernel.org X-Gm-Message-State: AOJu0Yyf/sIXTwyW1UN50xoCsBlt83eEJpEX/tZoVjRZlw4la7j1AFGu FFtj0wykgQStFvdVPeb+O+0Kw11DIjji3SIpN7O1z44OPDRjDECfA5XBN8or1Q== X-Gm-Gg: ASbGncss7XHOyJhSL5HNLzJ+yBHJUaQEXZaAxAzmtcWIp8uiO+2lHm3afOyn7rTBnsy rECdWmIy5fKXGw9ecfAr26m7UGpELEdVeJQpOVOpG3otocAGk4HSd1+7px4nQ2Dq7TkAr3PFJCE 6A1twxkqB3qbpMsJmlq29QYcG2pZqaNJe0rrO96qhC0HGPh/pysRHVMNIs8WH3JWbz0EcWW5Puz CQGQ9YCCThCL5zL/S9Ld+pbYj1unpViC0VasJjlsiL1HR/AOxilNxyQT0DnLb0xrjeQbRSe/uJh n9L1SzOvynTReFhoippfUXPncOw= X-Google-Smtp-Source: AGHT+IF0teBCBhSGoMWrfR+mIwXMKC7BSfHEmjtXhp0/1y9ycgo1n1nGdQy9oW4tCCJppSe4JHqm/w== X-Received: by 2002:a05:6a00:2da5:b0:740:41e4:e761 with SMTP id d2e1a72fcca58-742a98c144emr34162758b3a.22.1747939524178; Thu, 22 May 2025 11:45:24 -0700 (PDT) Received: from ryzen.lan ([2601:644:8200:dab8::a86]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b26eaf6fd3bsm11502424a12.23.2025.05.22.11.45.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 May 2025 11:45:23 -0700 (PDT) From: Rosen Penev To: linux-wireless@vger.kernel.org Cc: =?UTF-8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= , Johannes Berg , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Bogendoerfer , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list), linux-mips@vger.kernel.org (open list:MIPS) Subject: [PATCHv2 4/5] dt-bindings: net: wireless: ath9k: add OF bindings Date: Thu, 22 May 2025 11:45:15 -0700 Message-ID: <20250522184516.13176-5-rosenp@gmail.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250522184516.13176-1-rosenp@gmail.com> References: <20250522184516.13176-1-rosenp@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Now that support was added to the driver, document it. --- .../bindings/net/wireless/qca,ath9k.yaml | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/wireless/qca,ath9k.yaml = b/Documentation/devicetree/bindings/net/wireless/qca,ath9k.yaml index 0e5412cff2bc..81d00f257922 100644 --- a/Documentation/devicetree/bindings/net/wireless/qca,ath9k.yaml +++ b/Documentation/devicetree/bindings/net/wireless/qca,ath9k.yaml @@ -12,7 +12,7 @@ maintainers: description: | This node provides properties for configuring the ath9k wireless device. The node is expected to be specified as a child node of the PCI controll= er - to which the wireless chip is connected. + or AHB bus to which the wireless chip is connected. =20 allOf: - $ref: ieee80211.yaml# @@ -35,6 +35,12 @@ properties: - pci168c,0034 # AR9462 - pci168c,0036 # AR9565 - pci168c,0037 # AR1111 and AR9485 + - qca,ar9130-wmac + - qca,ar9330-wmac + - qca,ar9340-wmac + - qca,qca9530-wmac + - qca,qca9550-wmac + - qca,qca9560-wmac =20 reg: maxItems: 1 @@ -88,3 +94,18 @@ examples: nvmem-cell-names =3D "mac-address", "calibration"; }; }; + - | + apb { + compatible =3D "simple-bus"; + ranges; + + #address-cells =3D <1>; + #size-cells =3D <1>; + + wifi@180c0000 { + compatible =3D "qca,ar9130-wmac"; + reg =3D <0x180c0000 0x230000>; + + interrupts =3D <2>; + }; + }; --=20 2.49.0 From nobody Sat Feb 7 18:46:02 2026 Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) (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 957171E51E7; Thu, 22 May 2025 18:45:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747939528; cv=none; b=jxBgAq1ROmbR33pvJMLIhsDzLl+5iFXsqKRw5N+Qzz9azLdYfoX1UjrT1IlRtd9dyVwio1TyJnzQpH1ehoZi9kTm+9lkv5XXX7ihLtSqE353AUa4lY8Le6zl8pYvqBkrtAhkRt0DVBzacMpv2Rft7cwSt3OUv9rZ8g2hqNO9Ojs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747939528; c=relaxed/simple; bh=BFRbGoEc5W5rLHmZZkvGIPUXgbuPDlOSs8WMuYfd1aI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=aJjjAn4Bms5Qf2JTL1PmFc5LfX2FozA9LZ3Xme7cN36eHE2Fy7/9iufJ9b8lw7UFeodgRhGyv/qtBxqjXkEONZOe/lCTV0RC12uy7x5wYzN+0F6F/GjAZM/FepYeywgi9LpsXDRQ5/pcYhtFO/zTUXbqDpjA3R1MbyzH6Eq0P8s= 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=HI4aHLJX; arc=none smtp.client-ip=209.85.210.173 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="HI4aHLJX" Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-742c035f2afso3746603b3a.2; Thu, 22 May 2025 11:45:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747939526; x=1748544326; 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=eyt9uwHd4+RYMzj8npffGoqsAHc2tpibuqss5RIQiwc=; b=HI4aHLJXj7qZ/dkoq7Yihzd7fHIHsVQDAYV7q0qSVxTjbj/E4YdqwCCf9Q9bQrp6Gq lID26HWFMSbbimeZy/GrapMJiRljEFRJFeehbejsUXfUzjVx8EqhqedfBrRUKVjWN9Dh sAOZlwhKNDXs64suRYCR/xV+bqpybz1l02qeb7qZ61HjtDZyqWNYrEQ1i+J5TdgeP9BZ dOMDReZCtf9Ca6ZWTDGhOwTw+Rr+rdDVe7+sju4vDp9pSXD9bQRR2h3Ioo1/xu6Ea7Nh /Hd8lY9olYLRE5tu1CeL3qwS4Ba9A7nduD7Q0RtPvJ79yJEEI2/gt3GJjo+KFbukMDA0 Kwbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747939526; x=1748544326; 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=eyt9uwHd4+RYMzj8npffGoqsAHc2tpibuqss5RIQiwc=; b=TryRh9IUnAp4MRSiNdsxo/UJqkTqT6a6JUR20xkiaK/8iZ4ipfcHesYbVBDnFydKJZ gf2Q7kkivLKe5T5c4ksQ5I1hFbxCVviHzBEz3iGkLk335ijVuSTi/F7PmNny62UW1Ca8 BmshO9v3vKxcZY3PmNAN2SbNFc7Zp436o+ox79uErIkPTKYZlWHD5lFZ7RUmlomqq1jk FGOZGA0J0h+Zo0zVlXyHQl357HGyP2O8TEy77Ngo9lsSSZNloOcCgK8xvbeV1GwBp6nE VPW3RHkaYimTMgUyM+mbsfnvfwTeljQj2XeMDyk+4+Hm9IE6qlSjGbmAuDWcA4AVbMpU MzbQ== X-Forwarded-Encrypted: i=1; AJvYcCUOw7nt93fWlmwMhHpQHg2vOW1AsbD+Yn/AY2OkAOd/lQu/8WicBahAiveNDWvZ+KCCtFmWIHWLxPUqi/NA@vger.kernel.org, AJvYcCV1Ud/wRh/9XoyJAHUJ4mZ+q0gfb82P1RUns157S9vReBW7bm96WWWSkgQm4mCq9O94/S+v/4X+fpsnQw==@vger.kernel.org, AJvYcCWbZdtPPpcATD/YyrsDKuCiFhHRCYFYiS7/kz17QyQR5iRYVUQ1MoRt2NQQoObNoV+k7iGAocRUc/xB@vger.kernel.org X-Gm-Message-State: AOJu0YwhHzQ71lBpghoA91Zt9NoARBphVWDlE1GC/HqWxvYFp9agjo7o j1vjlCgt7jcsWheWN02D8/Gg6+mv41PCyOUEA24yzAM9VPOiAMXKWE0FZDzemw== X-Gm-Gg: ASbGncvDeY5vfMaOd+i29U2h7KRzz9FU0U9Vvp2Sw0+ypcUaRVaFdNdg8mKUs3j/kIz g4OkgKR9t/O6XBmgps1vhZsg5g675Klg7XuTdjwNyQeA+Rqz1chBesaanmxxJF1P3IQgXvKCG/X GPzsH2NvXswzU1RYCJVxJfTFeZ4TfAgcIJZJTsuC2w6AQPug3NB53aaKlyt21nAvL6LtzoIOT+7 gjR7U5mMdPATljF5V+D3TBUZzzqpOHoxfwtzMYu9nwOkdLNkYXyh6UxqWuuYuAzFZnFAWK401kR HBQzXGf0lFDlAgvnY534RHRRJwWPwCdSfs0ZmQ== X-Google-Smtp-Source: AGHT+IHlRfUeJFXKT8VPz4SbS6Ht4Q1UlP58AjhLNNeH1/56VeLcQfpbUrSMG0l0fyciuG7qANDqQw== X-Received: by 2002:a05:6a20:d50c:b0:1f5:8a1d:38f3 with SMTP id adf61e73a8af0-21621873f17mr44054155637.2.1747939525664; Thu, 22 May 2025 11:45:25 -0700 (PDT) Received: from ryzen.lan ([2601:644:8200:dab8::a86]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b26eaf6fd3bsm11502424a12.23.2025.05.22.11.45.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 May 2025 11:45:25 -0700 (PDT) From: Rosen Penev To: linux-wireless@vger.kernel.org Cc: =?UTF-8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= , Johannes Berg , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Bogendoerfer , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list), linux-mips@vger.kernel.org (open list:MIPS) Subject: [PATCHv2 5/5] mips: dts: qca: add wmac support Date: Thu, 22 May 2025 11:45:16 -0700 Message-ID: <20250522184516.13176-6-rosenp@gmail.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250522184516.13176-1-rosenp@gmail.com> References: <20250522184516.13176-1-rosenp@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Now that OF ahb support was added to the ath9k driver, we can use it to enable and use the SoC wireless found in these chipsets. Signed-off-by: Rosen Penev --- arch/mips/boot/dts/qca/ar9132.dtsi | 9 +++++++++ arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts | 4 ++++ arch/mips/boot/dts/qca/ar9331.dtsi | 9 +++++++++ arch/mips/boot/dts/qca/ar9331_dpt_module.dts | 4 ++++ arch/mips/boot/dts/qca/ar9331_dragino_ms14.dts | 4 ++++ arch/mips/boot/dts/qca/ar9331_omega.dts | 4 ++++ .../mips/boot/dts/qca/ar9331_openembed_som9331_board.dts | 4 ++++ arch/mips/boot/dts/qca/ar9331_tl_mr3020.dts | 4 ++++ 8 files changed, 42 insertions(+) diff --git a/arch/mips/boot/dts/qca/ar9132.dtsi b/arch/mips/boot/dts/qca/ar= 9132.dtsi index aa148d51ab68..27462dc97fc5 100644 --- a/arch/mips/boot/dts/qca/ar9132.dtsi +++ b/arch/mips/boot/dts/qca/ar9132.dtsi @@ -155,6 +155,15 @@ spi: spi@1f000000 { #address-cells =3D <1>; #size-cells =3D <0>; }; + + wmac: wifi@180c0000 { + compatible =3D "qca,ar9130-wmac"; + reg =3D <0x180c0000 0x230000>; + + interrupts =3D <2>; + + status =3D "disabled"; + }; }; =20 usb_phy: usb-phy { diff --git a/arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts b/arch/mips/b= oot/dts/qca/ar9132_tl_wr1043nd_v1.dts index f894fe17816b..7df518fdc515 100644 --- a/arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts +++ b/arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts @@ -108,3 +108,7 @@ partition@2 { }; }; }; + +&wmac { + status =3D "okay"; +}; diff --git a/arch/mips/boot/dts/qca/ar9331.dtsi b/arch/mips/boot/dts/qca/ar= 9331.dtsi index 768ac0f869b1..bce4dcac3d54 100644 --- a/arch/mips/boot/dts/qca/ar9331.dtsi +++ b/arch/mips/boot/dts/qca/ar9331.dtsi @@ -285,6 +285,15 @@ spi: spi@1f000000 { =20 status =3D "disabled"; }; + + wmac: wifi@18100000 { + compatible =3D "qca,ar9330-wmac"; + reg =3D <0x18100000 0x20000>; + + interrupts =3D <2>; + + status =3D "disabled"; + }; }; =20 usb_phy: usb-phy { diff --git a/arch/mips/boot/dts/qca/ar9331_dpt_module.dts b/arch/mips/boot/= dts/qca/ar9331_dpt_module.dts index c857cd22f7db..d855dfe118e6 100644 --- a/arch/mips/boot/dts/qca/ar9331_dpt_module.dts +++ b/arch/mips/boot/dts/qca/ar9331_dpt_module.dts @@ -97,3 +97,7 @@ &phy_port0 { &phy_port4 { status =3D "okay"; }; + +&wmac { + status =3D "okay"; +}; diff --git a/arch/mips/boot/dts/qca/ar9331_dragino_ms14.dts b/arch/mips/boo= t/dts/qca/ar9331_dragino_ms14.dts index 7affa58d4fa6..679e793e9f55 100644 --- a/arch/mips/boot/dts/qca/ar9331_dragino_ms14.dts +++ b/arch/mips/boot/dts/qca/ar9331_dragino_ms14.dts @@ -98,3 +98,7 @@ spiflash: w25q128@0 { reg =3D <0>; }; }; + +&wmac { + status =3D "okay"; +}; diff --git a/arch/mips/boot/dts/qca/ar9331_omega.dts b/arch/mips/boot/dts/q= ca/ar9331_omega.dts index 8904aa917a6e..093142bf3ed6 100644 --- a/arch/mips/boot/dts/qca/ar9331_omega.dts +++ b/arch/mips/boot/dts/qca/ar9331_omega.dts @@ -74,3 +74,7 @@ spiflash: w25q128@0 { reg =3D <0>; }; }; + +&wmac { + status =3D "okay"; +}; diff --git a/arch/mips/boot/dts/qca/ar9331_openembed_som9331_board.dts b/ar= ch/mips/boot/dts/qca/ar9331_openembed_som9331_board.dts index dc65ebd60bbc..22e05d9c283a 100644 --- a/arch/mips/boot/dts/qca/ar9331_openembed_som9331_board.dts +++ b/arch/mips/boot/dts/qca/ar9331_openembed_som9331_board.dts @@ -106,3 +106,7 @@ &phy_port2 { &phy_port4 { status =3D "okay"; }; + +&wmac { + status =3D "okay"; +}; diff --git a/arch/mips/boot/dts/qca/ar9331_tl_mr3020.dts b/arch/mips/boot/d= ts/qca/ar9331_tl_mr3020.dts index 10b9759228b7..b740f1a91162 100644 --- a/arch/mips/boot/dts/qca/ar9331_tl_mr3020.dts +++ b/arch/mips/boot/dts/qca/ar9331_tl_mr3020.dts @@ -114,3 +114,7 @@ spiflash: s25sl032p@0 { reg =3D <0>; }; }; + +&wmac { + status =3D "okay"; +}; --=20 2.49.0