Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1057625yba; Thu, 4 Apr 2019 03:25:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxtLXTiFurISIgF0hKTDt+CWxSvOfNxTwbUhXBI2Z3YzvQGOJQ6f4pSwPhccg/bsOHS3Wd1 X-Received: by 2002:a63:6942:: with SMTP id e63mr5144432pgc.102.1554373520328; Thu, 04 Apr 2019 03:25:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554373520; cv=none; d=google.com; s=arc-20160816; b=nYy96v/Y4blVObYMPluRl93Q+34H/PUmNQDFXPq/jDMUPosoUPlMDOB/wTdWaxTPxQ U+SEexQHsk1/kwiJEArJODMfgU9sx599XArmPVaVLhoUbirqlicIemIJtQ4dTE2evaOR l7NfqToM3IbUEzZQBqy+L/vo28R8+4BGuU9yHggYi3+aUj6fAg3KhaeenVAOfGJvJOHp dIdbn4jSrU6w/lItUmVQ72VZKglD3AQZ6SoYNmQ+oJmXn9XYhrvAw+e1c30fsCtL8o7C kwMG1P2zaneJV/HPI0OJ3/Q9eSRAyZ7OKfIOmpgWLAJNB7wFTNe+oGQAIktV1M6QWzk/ UMLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:user-agent:cc:to :references:in-reply-to:from:subject:content-transfer-encoding :mime-version:dmarc-filter:dkim-signature:dkim-signature; bh=2msjBr0r8l8ANusc2bncIcpB7d8qM5Elq1tSgNWzndE=; b=eANVTFRRoeeSOcORx6/M5a8R6confo0dUJVFRNqpMygYkmrP7yvbJVyX4ghczHQrF4 pc+U9wjsu2NxU24MN2n2uBUuZxubfFtn0OiBdBqdYhe9eYuKYlsZ7sJMmQYtBfOwAati g7C3kYdJ0bOwv2O7PD5FZmhwoJxCzLfD3uMYQLq+8sFwEc3aIAZgeoXfK6H6fLKn+pOB NdtKAiQNmTPldRVUk4nSaQGu8YZR8OuLOIaBoa91gZjglhW0g8fhglIFmZOt/V5eAvng 0b/WaCXEEaQNUBLmYQQRibBzOHhvrEg/q6H1ZQG7YKmwq09bhj4zLsr2jcP8JYlhlfU/ IdkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=ln8eGQTc; dkim=pass header.i=@codeaurora.org header.s=default header.b=bVzr0GTW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m2si16281648pgn.481.2019.04.04.03.25.04; Thu, 04 Apr 2019 03:25:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=ln8eGQTc; dkim=pass header.i=@codeaurora.org header.s=default header.b=bVzr0GTW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729403AbfDDKWw (ORCPT + 99 others); Thu, 4 Apr 2019 06:22:52 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:42638 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726563AbfDDKWv (ORCPT ); Thu, 4 Apr 2019 06:22:51 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 7E55661CCC; Thu, 4 Apr 2019 10:22:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1554373370; bh=yWDs5V/rHVkCiJE/mrmVvDr5bxI4I/D6hGIib6vKu/4=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=ln8eGQTc52x1FqbMvdqZYdH4uWuM7FRX9NQuaK3k8EHmNCGvx1OEwszpMnpAKf2ok DVa/+rLe5l7r02ir3DErvtns9xjj3tHHm3Pwmi7CUVRO3YsqsBLXPBXk1uROY4YuKg D4/3CHEGriBWSn2TksUqtR+dIOk/4YkvBNVT1zIQ= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MISSING_DATE,MISSING_MID autolearn=no autolearn_force=no version=3.4.0 Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 4614961A40; Thu, 4 Apr 2019 10:22:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1554373369; bh=yWDs5V/rHVkCiJE/mrmVvDr5bxI4I/D6hGIib6vKu/4=; h=Subject:From:In-Reply-To:References:To:Cc:From; b=bVzr0GTWEy8dVpvNEF3LPNd72NxfYutWV3rmWhi44yCWbMgpBXv/WH/37fbVHVsR8 Pba1TWSNslrrhaKi1cQHkVr78AV7ee0BNLsJuVNpSgLSuyRS5jIou+FX4+40uj/dc0 wa4pocrDto3pzlJHeke0sUyIxq9YrgQosD9e8UF4= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 4614961A40 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH 3/4] mwifiex: Flag wake-up interrupt as IRQ_NOAUTOEN rather than disabling it too late From: Kalle Valo In-Reply-To: <20190224140426.3267-4-marc.zyngier@arm.com> References: <20190224140426.3267-4-marc.zyngier@arm.com> To: Marc Zyngier Cc: Amitkumar Karwar , Enric Balletbo i Serra , Ganapathi Bhat , Heiko Stuebner , Nishant Sarmukadam , Rob Herring , Xinming Hu , "David S. Miller" , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org User-Agent: pwcli/0.0.0-git (https://github.com/kvalo/pwcli/) Python/2.7.12 Message-Id: <20190404102250.7E55661CCC@smtp.codeaurora.org> Date: Thu, 4 Apr 2019 10:22:50 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Marc Zyngier wrote: > The mwifiex driver makes unsafe assumptions about the state of the > wake-up interrupt. It requests it and only then disable it. Of > course, the interrupt may be screaming for whatever reason at that > time, and the handler will then be called without the interrupt > having been registered with the PM/wakeup subsystem. Oops. > > The right way to handle this kind of situation is to flag the > interrupt with IRQ_NOAUTOEN before requesting it. It will then > stay disabled until someone (the wake-up subsystem) enables it. > > Signed-off-by: Marc Zyngier > Reviewed-by: Brian Norris Failed to apply: fatal: sha1 information is lacking or useless (drivers/net/wireless/marvell/mwifiex/main.c). error: could not build fake ancestor Applying: mwifiex: Flag wake-up interrupt as IRQ_NOAUTOEN rather than disabling it too late Patch failed at 0001 mwifiex: Flag wake-up interrupt as IRQ_NOAUTOEN rather than disabling it too late The copy of the patch that failed is found in: .git/rebase-apply/patch Patch set to Changes Requested. -- https://patchwork.kernel.org/patch/10827971/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches