From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B93B1C61DA4 for ; Fri, 3 Feb 2023 08:38:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=W7bVL3a3v9F5pWT5Iy80+6mYYSy7NW4x7m/1KlSGpj8=; b=U/CLq8NF8+522s a72+dcz8k8opizoEAe0tVaCKWmsEcqF6oczDAdIC3l6xBiiXPUOMc2JaGXm+lklbEzbYeLwM5Cu6Z p1TVmtaD0JB/S+YanfbgpsT5E+TtK+/IVv0m8Tcy2gQtxQw6GcCp5v9Fdnm5tVdV18wiJNhjy5FnN IKf2oBmSMOYPRgaTFytpv3b1V9MgLIXxep23NusSA7oZ0WDuPfNKNWTQZvtEZ27XMz8j7+rJs4+f6 n4Cj7kVsquc/58e3jN/JQKbFG9xOD1ox/phVT0qw+C0lPRPz0bPLoCEubXlj2MGzaB4FJxqSpUnzG 8khngbRt/953eAFsizMg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pNraN-0012gp-A8; Fri, 03 Feb 2023 08:38:19 +0000 Received: from smtp161.vfemail.net ([146.59.185.161]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pNraK-0012ft-VD for ath10k@lists.infradead.org; Fri, 03 Feb 2023 08:38:18 +0000 Received: (qmail 21172 invoked from network); 3 Feb 2023 08:38:08 +0000 Received: from localhost (HELO nl101-3.vfemail.net) () by smtpout.vfemail.net with ESMTPS (ECDHE-RSA-AES256-GCM-SHA384 encrypted); 3 Feb 2023 08:38:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=openmail.cc; h=from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=2018; bh=5gzfbHktKF+FWt0viMzIrFRdh S69aRKSaTvqnSftuGo=; b=XwzvZdVp9AwXvjXTQfNJpfOUeJirBmYwc46OWPJEz 33lQxADYJzBJ2rRdKzGDn6tv6vBUtLnTq1TM7j8+2z21Pl/G3ljQVXpht8t4qD5S 5G/CR/MVm91FwPE45AxF42786KHtaMw7e1v2l3ChfV7RsowcFAtpmME35jvrb9oe b4= Received: (qmail 35399 invoked from network); 3 Feb 2023 08:38:08 -0000 Received: by simscan 1.4.0 ppid: 35085, pid: 35391, t: 1.0775s scanners:none Received: from unknown (HELO bmwxMDEudmZlbWFpbC5uZXQ=) (ZXF1dUBvcGVubWFpbC5jYw==@MTkyLjE2OC4xLjE5Mg==) by nl101.vfemail.net with ESMTPA; 3 Feb 2023 08:38:06 -0000 From: equu@openmail.cc To: lpieralisi@kernel.org, toke@toke.dk, kvalo@kernel.org Cc: linux-pci@vger.kernel.org, robh@kernel.org, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org, equu@openmail.cc, kernel test robot Subject: [PATCH v4 0/3] PCI: of: Load extra data only from compatible DT nodes Date: Fri, 3 Feb 2023 16:37:28 +0800 Message-Id: <20230203083731.349695-1-equu@openmail.cc> X-Mailer: git-send-email 2.39.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230203_003817_352332_14064286 X-CRM114-Status: UNSURE ( 7.45 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ath10k" Errors-To: ath10k-bounces+ath10k=archiver.kernel.org@lists.infradead.org From: Edward Chow In order to solve the issue reported in https://github.com/openwrt/openwrt/pull/11345 , this patchset attempt to add mechanisms to ckeck whether an OF DT node is compatible to the PCI device installed on the corresponding location or the driver for it, and make ath9k and ath10k only load extra data from compatible nodes. V3 -> V4: 1, Fix some syntax errors. Signed-off-by: Edward Chow Reported-by: kernel test robot Edward Chow (3): PCI: of: Match pci devices or drivers against OF DT nodes wifi: ath9k: stop loading incompatible DT cal data wifi: ath10k: only load compatible DT cal data drivers/net/wireless/ath/ath10k/core.c | 29 +++ drivers/net/wireless/ath/ath10k/pci.c | 2 +- drivers/net/wireless/ath/ath10k/pci.h | 2 + drivers/net/wireless/ath/ath9k/ath9k.h | 1 + drivers/net/wireless/ath/ath9k/init.c | 26 +++ drivers/net/wireless/ath/ath9k/pci.c | 2 +- drivers/pci/of.c | 299 +++++++++++++++++++++++++ drivers/pci/pci-driver.c | 5 - drivers/pci/pci.h | 56 +++++ include/linux/of_pci.h | 25 +++ include/linux/pci.h | 6 + 11 files changed, 446 insertions(+), 7 deletions(-) -- 2.39.1 _______________________________________________ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k