Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp631691imm; Fri, 29 Jun 2018 03:56:45 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJdzpsJtx6yemIoVmPWDbyMwjqYViPTbmbH3vbN2TlXmXYDEb5VqTCh4BucMIF1wrmXQzyx X-Received: by 2002:a63:a809:: with SMTP id o9-v6mr12432927pgf.313.1530269805528; Fri, 29 Jun 2018 03:56:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530269805; cv=none; d=google.com; s=arc-20160816; b=DCadOipX6Bdr3BRyDUJjeG8lJs1Vmv+QV/CL0oC/H08DXDL+Ibd/zQq9coUqtIZ/Mr M/XLFpOKY2TzTF6D7BdzUI1QtOs/dJAmFYhCkRM/dyqIfMj4bsCpyIF2JW7DkyNAxX7I rscL9/XjYw6jAo4ooxcpyGySJ7aANI/pcwQBhhYGC9FOB8cnGHUVPOhE6dAG0+jQt2S/ XJx0bLaptturRmhgkGSVyivUrb0TAWR5aq6n55U69oK6+3e1LqxThuoMXN7TlyT+Msl7 5mBVji/6VML2UttVNa0dyTg/muENnMosDdoPlFnmW9ubA3w+AIhntBR7p9rErRVVVnGm yf5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature:arc-authentication-results; bh=FXCO7/yQD+VI9hL384NqMpogBCBFgFrMwMVukmefEG8=; b=Jd9AjVjx6qDfqUG7xzuQEUDNCjgusjlQeudRX1H9e9rNSAf/a0ExIMUDp+XkMSdpJs t7IXyyguHArUiNrkAyH59uMobs0X6LJcXL4LTCw0u5GyxmSvrHb4Bn4E3R/5IR0LUogg +1ntpUAux1MRHtBbE2PSaOzN8GJVDCmmokqeaoBp8IUtE9bncegvTeZKViVtssCQgxIZ n6DP3YjV+dBuoxIGf6P6RhRK7n8yq1+JXET5VV95gwMCQjCNYoYdVmdFM85H21FMGe2F cNNjrx0g/hronyFC0euDwLtdwmwBGnIzErWh6JpD9u54kxEUb+ZBSoGW+VIboROcIjgl PYNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bQttAyqb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m187-v6si8191376pgm.418.2018.06.29.03.56.31; Fri, 29 Jun 2018 03:56:45 -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=@linaro.org header.s=google header.b=bQttAyqb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934366AbeF2H7I (ORCPT + 99 others); Fri, 29 Jun 2018 03:59:08 -0400 Received: from mail-it0-f67.google.com ([209.85.214.67]:51994 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933734AbeF2H7G (ORCPT ); Fri, 29 Jun 2018 03:59:06 -0400 Received: by mail-it0-f67.google.com with SMTP id o5-v6so635474itc.1 for ; Fri, 29 Jun 2018 00:59:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=FXCO7/yQD+VI9hL384NqMpogBCBFgFrMwMVukmefEG8=; b=bQttAyqbvmxpYBYcGdgpvNUWRiza0u2ncyhM0Y3USuqqfCEgTvv/HVNFPPeUnIGkDD F8HpW5nOjbJRY1ZjUceYBgHnRZf/6IPFQ/90PMwm+24kD2el9uTECBjWKPHKkNPFKfcU mgaR2abmlxVT4nCHO6Yazn/KVWB93ZDOwPyXQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=FXCO7/yQD+VI9hL384NqMpogBCBFgFrMwMVukmefEG8=; b=t/OmLH7tvCxOijB5Xx6t+2WpwAIIKMPfHLO5UgmmbQgmR9HmqKXNFHbD6Hx/iUPCWT 5o8O+Pz6enuT0WsA6q7Xg36Sg/Fm0NnBl04iwUeVe5+reljreacSQAepsToIAohEk1g6 Zz4+eaPzVQIuC52LChKM0GS7HAcXz5hpEUiVwYwIvy9jAtSx54U2CLyRWzvLYJzFddEW ZKoVelS/Zgm7kGnwJTqIcajS3L2M5h4Fb5E4+JSJLamZxtQLYKiS2OF1tR6ATm7vHVli VwLnHflHvMPtRcAVKZtMn9nxVpI5FP3wAm76N9vdjzUiFGJyIrxrbn309SuyzW8WhvvU LqfQ== X-Gm-Message-State: APt69E2AThGI9szBM3ZcRvR/QFJY1t2/MkYkJKJq8m6ie2HOVvXZ7H4Z AQ87lHYo++EWxaxhbkO808J1YOcKnHO1z9VV9Z3Zqw== X-Received: by 2002:a24:5593:: with SMTP id e141-v6mr898705itb.135.1530259145696; Fri, 29 Jun 2018 00:59:05 -0700 (PDT) MIME-Version: 1.0 References: <20180619234349.166190-1-evgreen@chromium.org> In-Reply-To: <20180619234349.166190-1-evgreen@chromium.org> From: Linus Walleij Date: Fri, 29 Jun 2018 09:58:54 +0200 Message-ID: Subject: Re: [PATCH] pinctrl: msm: Pass along set_wake failures To: evgreen@chromium.org, Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" , Stephen Boyd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 20, 2018 at 1:45 AM Evan Green wrote: > The MSM pinctrl driver quietly swallows errors that occur > when trying to call .irq_set_wake. It should instead pass > those failures up the chain so the caller can react to them. > Swallowing the error for instance causes gpio_keys to think that > it was able to successfully set a wake IRQ, when in fact it may > not have been, causing the following warning on resume: > > [ 53.777819] Unbalanced IRQ 9 wake disable > [ 53.781979] WARNING: CPU: 0 PID: 1362 at kernel/irq/manage.c:623 > irq_set_irq_wake+0xac/0x12c > [ 53.794758] Modules linked in: spi_gpio spi_bitbang qcom_q6v5_pil > qcom_common cfg80211 ip6table_filter smsc95xx usbnet mii > [ 54.016419] [] irq_set_irq_wake+0xac/0x12c > [ 54.022252] [] msm_gpio_irq_set_wake+0x48/0x68 > [ 54.028447] [] set_irq_wake_real+0x50/0x5c > [ 54.034275] [] irq_set_irq_wake+0xcc/0x12c > [ 54.040104] [] gpio_keys_resume+0x74/0xd8 > [ 54.045846] [] platform_pm_resume+0x54/0x60 > [ 54.051771] [] dpm_run_callback+0x104/0x210 > [ 54.057694] [] device_resume+0x178/0x1b0 > [ 54.063355] [] dpm_resume+0x1c4/0x38c > [ 54.068745] [] dpm_resume_end+0x20/0x34 > [ 54.074315] [] suspend_devices_and_enter+0x518/0x964 > [ 54.081044] [] pm_suspend+0x690/0x6e0 > [ 54.086433] [] state_store+0xd4/0xf8 > [ 54.091733] [] kobj_attr_store+0x18/0x28 > [ 54.097396] [] sysfs_kf_write+0x5c/0x68 > [ 54.102961] [] kernfs_fop_write+0x174/0x1b8 > [ 54.108887] [] __vfs_write+0x58/0x160 > [ 54.114276] [] vfs_write+0xcc/0x184 > [ 54.119487] [] SyS_write+0x64/0xb4 > > Signed-off-by: Evan Green Bj=C3=B6rn is this patch OK with you? Seems fine to me. Yours, Linus Walleij