Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1101097iob; Fri, 13 May 2022 23:13:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQaOe/ivW9HYNhT012YVyMEWsP86pod5HRV53/phgCQX7+XZXpF2Ekb3vAMJ/LmIZGCFRS X-Received: by 2002:a05:600c:5112:b0:394:55bd:5f9d with SMTP id o18-20020a05600c511200b0039455bd5f9dmr18284400wms.188.1652508824550; Fri, 13 May 2022 23:13:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652508824; cv=none; d=google.com; s=arc-20160816; b=0zL8dwiTq+gGxYiOE+4D19sBZaBTIFA2iYTGV9PzBpGUxT5zm1QZWks2XJm6EO39U1 U7rLrKYWMQEBvSLE4TJVrwgrW64bWVGWdZgDSH/vRNltq9ubPS8eeeckd47EXEr5+UOh 4ji2ixkTYmte7h8y/KheydxjurXQjREOStyYFYZodJIW4Sl3IX5UGjk0Czz05yc8qiNz ZHnRePIhT4HNJbmM95XVRF50aTihMnFi3tm4yqm5woOddgLP9NONEKfxCITQkgcUzKhY H09KSms8Nsjrmk442CKAMwh3vhBdv2F0koEyBqZXu4V0y29Y3WKxrr0JqN6MWt7K5vBz z4kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=X/IAgav4s9J/eHMYgeYeDUOX7BruZpeeDkv9wTzgnWY=; b=Zxj6sukpan1jtpEm87NA4MwiUzGn2z/Hq4HbND9+p90ipi8/+wYUqXOgA692b/ggYT Js+llfjfrVrJe0yfOUTYYAuC74R0TzT1XF4UFI13YFulqTdBOGdy6abHWRHXJBZev/qx UIo7pmZPyqeCaxnf6V/ImS1lgq/EvxmGge4zMmvSVcL9opYP75VCiXPTt/7wONb+Rkt+ Yhh9nwpjcQbNPzRqAJ3Df4w2TKP4Ca5UHOoOPauX2YaN/hm2PIoBSh5cyN6xvAgvYUpu BCqRCwmVC6pxy5geg04j3DTXH0927vawGVBb3W19FmeC1/UbhHpw5zDgReTGg1TF52T7 mupA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kali.org header.s=google header.b=M+uGt8zf; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kali.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id i16-20020adfded0000000b0020ad7cb2cd9si3642009wrn.269.2022.05.13.23.13.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 23:13:44 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kali.org header.s=google header.b=M+uGt8zf; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kali.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A54181007; Fri, 13 May 2022 22:06:13 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231801AbiENFGJ (ORCPT + 69 others); Sat, 14 May 2022 01:06:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231734AbiENFF4 (ORCPT ); Sat, 14 May 2022 01:05:56 -0400 Received: from mail-oa1-x31.google.com (mail-oa1-x31.google.com [IPv6:2001:4860:4864:20::31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACF9D27B for ; Fri, 13 May 2022 22:05:50 -0700 (PDT) Received: by mail-oa1-x31.google.com with SMTP id 586e51a60fabf-ed9ac77cbbso12972155fac.1 for ; Fri, 13 May 2022 22:05:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kali.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=X/IAgav4s9J/eHMYgeYeDUOX7BruZpeeDkv9wTzgnWY=; b=M+uGt8zf3J9fvCZPki4VDQjO6k9RWF3TwzCJRZ6+pV6g+35xfeih5qRCucqItHYPs8 zougwwQRL7sVf3h8t8ZDSs8xtH5HxaP/km8HpN+fbk+xgOwWOJFpgTdZK4VhKDpWY2R/ ctcgmcFlPVqmahsyZlDFQW8L7yO1N/8HoK4umZw/7LxTF9JzS8ps6YhLfImaSDoSFRia X6elXH8asqFGSE0kbdJTxe2rUptET18s22Cz8anvGjPQK3npB6wZuLCdHwE4U6TG8fo7 3YJf4h/lcttSV3z/UFbeuLC4zxMuMpWfflC+7um8RCFp956evzBFGVvQOETo5b3oxKYv RI4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=X/IAgav4s9J/eHMYgeYeDUOX7BruZpeeDkv9wTzgnWY=; b=uqPQ9EJs22NMwj72n7k2eAEUKDey4hpEKl9Rd6Rz8AoNWB6SrDNwEHqWIKQ2OQwZja P/FlqCgVT21Z9+Z1/qG9cHMgnXlzswSK4hG8OTSLNGksifc2AFRn91c8bcKUGL3q2gV2 4SYww8i+MmIA661nqBE3v49G5Zc1ixFeyHM3fy+aY1j6lHH2XlCeJpmn5sDAi8Van2V5 9q8smI/F4chFQ6JFC8jYe4ekl4zwoYV5sXX7BN7oFr2QWzjRG3UyoYEcSNNUIfrSpdcm o8cJZDBGm+1x21ncNMrsah0VcArYiJoXcCrDH+28Cr0IEGWpEvDsfo7znqUc7jadNy1U 8YGA== X-Gm-Message-State: AOAM532AyeqhwVXBpQZij0zk3QHmAW01vqr6AEPA5HdqTyhs7sRjn72w Gb17l8c54QHHup1etZLRr2Bgbg== X-Received: by 2002:a05:6870:a2cd:b0:ed:754:a2c6 with SMTP id w13-20020a056870a2cd00b000ed0754a2c6mr9067488oak.270.1652504750057; Fri, 13 May 2022 22:05:50 -0700 (PDT) Received: from [192.168.11.16] (cpe-173-173-107-246.satx.res.rr.com. [173.173.107.246]) by smtp.gmail.com with ESMTPSA id r25-20020a4a7019000000b0035eb4e5a6c8sm2006483ooc.30.2022.05.13.22.05.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 May 2022 22:05:49 -0700 (PDT) Message-ID: <3d856d44-a2d6-b5b8-ec78-ce19a3686986@kali.org> Date: Sat, 14 May 2022 00:05:46 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH] ath10k: do not enforce interrupt trigger type Content-Language: en-US To: Kalle Valo , Krzysztof Kozlowski Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Govind Singh , ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , linux-arm-msm@vger.kernel.org References: <20220513151516.357549-1-krzysztof.kozlowski@linaro.org> <87zgjl4e8t.fsf@kernel.org> From: Steev Klimaszewski In-Reply-To: <87zgjl4e8t.fsf@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 5/13/22 10:57 AM, Kalle Valo wrote: > Krzysztof Kozlowski writes: > >> Interrupt line can be configured on different hardware in different way, >> even inverted. Therefore driver should not enforce specific trigger >> type - edge rising - but instead rely on Devicetree to configure it. >> >> All Qualcomm DTSI with WCN3990 define the interrupt type as level high, >> so the mismatch between DTSI and driver causes rebind issues: >> >> $ echo 18800000.wifi > /sys/bus/platform/drivers/ath10k_snoc/unbind >> $ echo 18800000.wifi > /sys/bus/platform/drivers/ath10k_snoc/bind >> [ 44.763114] irq: type mismatch, failed to map hwirq-446 for interrupt-controller@17a00000! >> [ 44.763130] ath10k_snoc 18800000.wifi: error -ENXIO: IRQ index 0 not found >> [ 44.763140] ath10k_snoc 18800000.wifi: failed to initialize resource: -6 > So you tested on WCN3990? On what firmware version? I can add the > Tested-on tag if you provide that. > Hello Krzystof, Kalle, I have seen this issue as well on a Lenovo Flex 5G, which has a WCN3990: wcn3990 hw1.0 target 0x00000008 chip_id 0x00000000 sub 0000:0000 kconfig debug 0 debugfs 0 tracing 0 dfs 0 testmode 0 firmware verĀ  api 5 features wowlan,mgmt-tx-by-reference,non-bmi crc32 b3d4b790 htt-ver 3.86 wmi-op 4 htt-op 3 cal file max-sta 32 raw 0 hwcrypto 1 With this patch applied, I no longer see the error message in the commit message, when I unbind/bind when wifi stops working. Tested-by: Steev Klimaszewski -- Steev