Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp774438iob; Fri, 13 May 2022 12:16:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwu/QuRsqc5MhMRgdqlB53AYRyNHBsLwRZG3+GJiNRk5wcgW/prE2trdLbGWctG1kEWKDcp X-Received: by 2002:a5d:6c65:0:b0:20c:5230:f145 with SMTP id r5-20020a5d6c65000000b0020c5230f145mr5002952wrz.337.1652469378440; Fri, 13 May 2022 12:16:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652469378; cv=none; d=google.com; s=arc-20160816; b=nl5O/M2hR8F1h5i5xprhT6d0lGDQUYpPmNAjOaJQmTALzwyUnHWNfqQopbEm9o9ceL 9seSW/xGu5rPcPzvSPIUP1T1fwTadtTu9CdnHCvtVt6U2hrHyyicFFluysQTPOtHqy6o IDDtz29tnLkMX5JowCI5YBTctAJAlwKA9NfkWGQJRP01sIU1Sk8VLb67hO0dxMwHp1fm nWTHMZePK5WA3FXaYVlhEgK7rgVdJBWCwGHWwENsU0H1ocn5VcHDMiq7UIAuiddiIp6B u8ErVmkakd8HCMXfJ0PAR3UBPQPpwsgyLIqBIAaoO4QMcXFTrN66wXiBgG9Z6VWXLfSp udnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=7itN8rwwG/j/bS8QJrI2PC1V0pHTLWmXx7jwOZTsggk=; b=xB9/k2tvraWuJC/xD7mVyn4h9IT410Q6XCs2V5vr6anmPQtIMt3SxaK+lUs6zg2m8t EwObxOhwbRKC4CKjzzKmbcaDQcWGOOzuHGrBpc/yrrM9ZLxyA/Rj2FZQKmZ4qkbkadWZ oSFl0Lxph5N67Oc8yeBrhHka2lmgwK2TafVRjRB4imwrmkKfJ82xH6Rl0KwBVZhozzt1 4h3GyO7+GZuTzWQzxFnM1z/qsD5f4gZ/tq2Nz0zBcS0l5YtPe9IPZ77SYpr6cNGh4EeW 4PUO2DU1+IWcHt8BXG4UYV696n0ZZGrMHlAQVd1+21R80kh70Eio6OG7Vzscki6iQgGo VlIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l3lnbu8R; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r18-20020a5d4992000000b0020aa02c469fsi2651158wrq.969.2022.05.13.12.15.53; Fri, 13 May 2022 12:16:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l3lnbu8R; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234862AbiEMP5f (ORCPT + 69 others); Fri, 13 May 2022 11:57:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234346AbiEMP5d (ORCPT ); Fri, 13 May 2022 11:57:33 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 674CA21E3E; Fri, 13 May 2022 08:57:31 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0B85161D80; Fri, 13 May 2022 15:57:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C2D57C34100; Fri, 13 May 2022 15:57:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652457450; bh=inFWBKZ2hLGY2XuT1PW3OLXnYsuMwC9oDE6tzFgnnbY=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=l3lnbu8RQyakdlKidWtlRtKUk/OPBmDr34NuMgc+l/K8Yv7KoZfFFfox58XAvT00O V0+5mFRHSXYwOihOKacp9N37ZyNHgX3PQXgMM0xn2F/mdm+9Tdj3vi57mcg5TxtlQ3 TBBZ5ZvzAHg/3CX+3HGFb8fYD6HQgm0A7jd5dAP9rgbHTk0JdpodmuCJzx8pjG+XpD /woHIaW9aNAvclnuUKfLUQt9IQiYBLlR/4iAEv16eP8uIBRsZXwSqnrV9xM3HnqGHe j+0Nap862r7n2MEtSxO+LFc1fs/rB9YRY/MCvuTFdbvL97lmO/rwcX8AUCDrYzfmt4 wS0SU6x/ey6Bg== From: Kalle Valo To: 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 Subject: Re: [PATCH] ath10k: do not enforce interrupt trigger type References: <20220513151516.357549-1-krzysztof.kozlowski@linaro.org> Date: Fri, 13 May 2022 18:57:22 +0300 In-Reply-To: <20220513151516.357549-1-krzysztof.kozlowski@linaro.org> (Krzysztof Kozlowski's message of "Fri, 13 May 2022 17:15:16 +0200") Message-ID: <87zgjl4e8t.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 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. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches