From patchwork Wed Jun 7 17:24:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ziyang Huang X-Patchwork-Id: 13271036 X-Patchwork-Delegate: kvalo@adurom.com 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C092C7EE25 for ; Wed, 7 Jun 2023 17:25:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230045AbjFGRZS (ORCPT ); Wed, 7 Jun 2023 13:25:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229563AbjFGRZR (ORCPT ); Wed, 7 Jun 2023 13:25:17 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01olkn2109.outbound.protection.outlook.com [40.92.53.109]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68EE11FE9; Wed, 7 Jun 2023 10:25:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OIMQUlGY8ix9icudO8ibb91fnMbnFH0LsxJbQKW/zhqiOmsuwlWGqzQxWv4KYjKWuAmzbvgnN98SGKepndLV8WbvAhs1/uuCKiaJy7lYdvnyDm3l/0Vexc+W2Ag1BJkAoJ6BqVzT55gqVWiYbMkAO/sUxHGxlAsgMRLkkiIh43547b9Q8p9K/ULJSLCONitmQNvBC5DHP5Oll/CeGnO8uriTV2TT4u7TvcaVqw9jei7XfFtDc9aOdny0lyY/4mnjyns8avlOANVirtFqaCvnJYroOtmlMKDXZXhNYFd38zbrSrDHCvPbrC6DA/Dvy219R/dYpiE3q3gVGsSgdA6Ohg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xaF1w8VO8XGhwWF/rwXqBwwfIRSACmUXPpupGkJsg4w=; b=UrCTfJiFRCRlGXQ/evDyTtPMqaGoctf1mT9vCKHtN8AFAaUyG9WEuqzggFXoq+1/Fi3RpM8UY1F0DKRai6p3UqwG0AMiXEVtPEzIS77b6kF7llznLoX574zAbndxj2B3oLcjvTxiQGqRvC3MLP6m7W/pMwuH5xltpd6P6i82PBx+1tBqToRnZ7IY5U+scNviTuprkvfvqf8deGQzXDbUbIX1XNfbrmpLq/8JeCm6CTqpmVLrI1UeUrnyVQh9urUXun2NjhsDqpP7BseSyAQ968QbS6Ry/oj6eCQW2WTbXzPg/LKgKHOLnjuh81f5Fqj6OA593ksLTkWljdYPP65bTA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xaF1w8VO8XGhwWF/rwXqBwwfIRSACmUXPpupGkJsg4w=; b=mmb8uDEMOOroi4qPHNIlsweSitULAKSodtaCMT22XlYr+d0AX0i7EX84Bk1F45Skwr0+RvdSOxBNoWTAQBT/+4SEUbtW7zzqLkX7N6WSJFDtiC8ormzzHzfgSOggcAhgWNcZ8oJyBKO73iMA1myMQs+O6U0jU4FLsV/B89jowXurgCyqUY+Xque4oO0tYq5ZiXdf0GGTGmpBJg4ScbMPdSPEmJi0ST6Qq4QmVj7+BelnMYQsFK1hpRVPW6SRYkZ2amzJIvO9LgDsDWadFWVOBzkUUSjuZ5SxiHYPjTuymmxS3zZIXezeaXh19meUZmA5/tmvE26zTry4+SbSIvY5Fg== Received: from TYZPR01MB5556.apcprd01.prod.exchangelabs.com (2603:1096:400:363::9) by SI2PR01MB4396.apcprd01.prod.exchangelabs.com (2603:1096:4:1b3::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.32; Wed, 7 Jun 2023 17:25:00 +0000 Received: from TYZPR01MB5556.apcprd01.prod.exchangelabs.com ([fe80::5b31:f8db:585d:f204]) by TYZPR01MB5556.apcprd01.prod.exchangelabs.com ([fe80::5b31:f8db:585d:f204%7]) with mapi id 15.20.6411.021; Wed, 7 Jun 2023 17:25:00 +0000 From: Ziyang Huang To: kvalo@kernel.org Cc: quic_srirrama@quicinc.com, quic_kathirve@quicinc.com, ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Ziyang Huang Subject: [PATCH 1/3] wifi: ath11k: Add missing ops config for IPQ5018 in ath11k_ahb_probe() Date: Wed, 7 Jun 2023 17:24:37 +0000 Message-ID: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: X-TMN: [FpcJ3u87YcuYIGVpuOHeodVHoyG3T5CiLiZxi8nKzY0=] X-ClientProxiedBy: PH7PR13CA0024.namprd13.prod.outlook.com (2603:10b6:510:174::10) To TYZPR01MB5556.apcprd01.prod.exchangelabs.com (2603:1096:400:363::9) X-Microsoft-Original-Message-ID: <20230607172439.2258343-1-hzyitc@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR01MB5556:EE_|SI2PR01MB4396:EE_ X-MS-Office365-Filtering-Correlation-Id: 63519b4f-7301-4026-0dec-08db677c1eef X-MS-Exchange-SLBlob-MailProps: znQPCv1HvwXpdfrfzfVGwTZpgc3WKBgZZ1x/hoAx3TQvdZC6sFjWhcwX0ir1I2cIEhkvHSWBESfoG09YSU24NzA9ot1wvFy6BLe5lj+BX4Dkr19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AJWwcseUN0acb/cBlTSlhAluWwjJklvFbhmUZ7F8+94R5d5XiOMqPj/L60ceNDBd7iotKz+crJujJjflff/fRpp9s1ZsEStllY5jlPej2yIYaD8M+WRvPMyVEeHKmXNkbpGqiJbuXdcKNrZ4pMyWUTlnyqNNNSWleAlVk2eHoWAu6FzNUw5oDtpHctv8WYs/O1pt3Vl7SGOdad0Fm1OZSZApCfW9rINHkvCnOiQRhEBvLotniHyzwFLpgBvmgzRfBDTZnP+tRhHakHa0t4dynO1xOkDmokPiThWXEOj4/XEO5l4wtYUosaLUd05ODJOqEZ3RofFT1Nqtjf5EQ6IagwlYvB3DCv2BG/3A68PILiuYhxj7dEOzW63UIRgixe+0//DOM4PoOpdsXcJh/zbxJ+IvOV4TE3Zd0tkWU2gyKQgUCZtrthi5p9UoyTX+pdxaXymSijUkts2MgjH4EvnNMPvkqA/gfLZwGojPKqdU965rvb352y1a/BGWl5uGP8228/mwRw= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 63519b4f-7301-4026-0dec-08db677c1eef X-MS-Exchange-CrossTenant-AuthSource: TYZPR01MB5556.apcprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2023 17:25:00.0523 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR01MB4396 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Without this patch, the IPQ5018 WiFi will fail and print the following logs: [ 11.033179] ath11k c000000.wifi: unsupported device type 7 [ 11.033223] ath11k: probe of c000000.wifi failed with error -95 Fixes: 25edca7bb18a ("wifi: ath11k: add ipq5018 device support") Signed-off-by: Ziyang Huang --- drivers/net/wireless/ath/ath11k/ahb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/ath11k/ahb.c b/drivers/net/wireless/ath/ath11k/ahb.c index 5cbba9a8b6ba..396548e57022 100644 --- a/drivers/net/wireless/ath/ath11k/ahb.c +++ b/drivers/net/wireless/ath/ath11k/ahb.c @@ -1127,6 +1127,7 @@ static int ath11k_ahb_probe(struct platform_device *pdev) switch (hw_rev) { case ATH11K_HW_IPQ8074: case ATH11K_HW_IPQ6018_HW10: + case ATH11K_HW_IPQ5018_HW10: hif_ops = &ath11k_ahb_hif_ops_ipq8074; pci_ops = NULL; break;