From patchwork Tue Feb 20 19:51:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 128966 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp5004662ljc; Tue, 20 Feb 2018 11:53:42 -0800 (PST) X-Google-Smtp-Source: AH8x224oFgSQRZGc5Fe0XL5zNCoxN2VhAkVQvO255w6h7/fq/piVA4AaqMRhsLl7Bn3YwZhkMOtV X-Received: by 10.99.3.8 with SMTP id 8mr587079pgd.5.1519156421998; Tue, 20 Feb 2018 11:53:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519156421; cv=none; d=google.com; s=arc-20160816; b=ejhOc/aNp1hdlWmqySt8yTFG8O7sAwoCDUKN4nz0wSskSNz0rL6YgN51+74bWJ1Da9 6knkJ8YjXekjwl1MgycrqLyOZiPn7aB6H52iLJar+8JgctWfomhYd0x5UEiNzQ+Swyls KLFOaKXgQTa9sZXhZzEjWnDN32HoEBbSZ7+j598k9jlTTJKvnd7gmC62QESyut8tGoIS sigG2xjzjv/ptyl5ABiQRHmZK0EvRxvLP4nx5myopGXRSAcdZ2B2TMrQKY1sgW6X2I8V DBUd8yexBxTIPErAziPv71maqwL8CMcnNDLHH7+VKPs8FbVo3Z+bZ+M2v1/WW33t0Ji7 /fYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=48krQBIGTRYjAP5/igmlBeVu5opiNV3Vs69aa3+JkK0=; b=DkpKuCBVg0mZ5j92Gf87jExSjFDdIS+qvBq6kpc8ff43mz9lTbaV147NuIbFDpjKAy A1PyFweXsyobpVRPAlGeKqwu7ZNQuD3LEDDu0805AWxnfs3wgUVkq17i3h6W0tjPqeJt NstP0h1ZgTjrMXABINz9ykJMciXNV6cZDmiTZoGim7TY7fiawcs34iaM0WsSLGZtm4EB 3khMQEjF1a9gss/A5QP/4ojwO7XAs7AqwfuU57FVbZ7NAeJu3KR1TcQnMs6BYqfAtLPv UXlbX6B/yLVDTwajhOHc4YnWF4jTD3fGbK1TNYVZthOG/wfGq5ZtKeEreM61mYx+95Fy Z9Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Gizhvy/y; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 x6si330104pfx.248.2018.02.20.11.53.41; Tue, 20 Feb 2018 11:53:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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=Gizhvy/y; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 S1751039AbeBTTxk (ORCPT + 11 others); Tue, 20 Feb 2018 14:53:40 -0500 Received: from mail-lf0-f68.google.com ([209.85.215.68]:45188 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750774AbeBTTxk (ORCPT ); Tue, 20 Feb 2018 14:53:40 -0500 Received: by mail-lf0-f68.google.com with SMTP id x196so5883286lfd.12 for ; Tue, 20 Feb 2018 11:53:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=48krQBIGTRYjAP5/igmlBeVu5opiNV3Vs69aa3+JkK0=; b=Gizhvy/y+isozqDwdw6rNcNHQqJInrb4XxMbJOI3u4tlndV4bO3PlAXoGtHBzm4FIz ouyZJ2hVGn6+RQO291HEgf8di3Zbb9mXkNLQOl6tHfvqXHB1LYFFP//q3QT1eRwIIae1 7qIhcPcCie4lLlpjbupDiIrySDrq/UA7jcl1U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=48krQBIGTRYjAP5/igmlBeVu5opiNV3Vs69aa3+JkK0=; b=VM6MshhtZXovTCIQzdS4SMpWhh8ATWVvgSVh/JLpLbsInMhcImcAkgGJYx3yKOFBRf Ik3vTJJ0fW7N7s8jGYavSvGVyXCAlF2h19C/q1aJS8Y34tBQz7hRGe0bPVkt/aA8Jdv9 euu+LRdjl/Jh7WMdFF8fxAyRxcuDgBX94yW0NV+Akk2WMYgYBkHjWYzgUf+X2ObDQbFY A0gs+xlA74+bS3uaa+u3i1maJIxLdd7jcw4k3PoH10YxIqVm5yPRn3AR40MJMyEiF4Bl haSPQapoX8kSu8U1Q8xWCQQCAj76pywjmn2trmoBz582+e1yD6wBjUWTJHYS/HnedNWo hFEA== X-Gm-Message-State: APf1xPB9kdw9MpaYXSzIoi3x8OdgrHgWej03pfPtOPn8l/+uOW1pexUr 8Yv+wmKgqsfdHIw1JozwcpjiRQ== X-Received: by 10.46.20.67 with SMTP id 3mr566306lju.104.1519156418724; Tue, 20 Feb 2018 11:53:38 -0800 (PST) Received: from localhost.localdomain (c-cb7471d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.116.203]) by smtp.gmail.com with ESMTPSA id 4sm4041243lfy.5.2018.02.20.11.53.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Feb 2018 11:53:37 -0800 (PST) From: Linus Walleij To: Sebastian Reichel Cc: linux-pm@vger.kernel.org, Hans Ulli Kroll , Florian Fainelli , Linus Walleij Subject: [PATCH] power: gemini-poweroff: Ignore infrared poweroff Date: Tue, 20 Feb 2018 20:51:34 +0100 Message-Id: <20180220195134.13379-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.14.3 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Apparently, when a SATA drive is connected, the system can detect constant infrared poweroff due to wiring and muxing. Disable this poweroff method for now since there is no system really using the infrared control block (CIR Consumer Infrared), and there is no Linux driver for it anyways. Signed-off-by: Linus Walleij --- drivers/power/reset/gemini-poweroff.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.14.3 diff --git a/drivers/power/reset/gemini-poweroff.c b/drivers/power/reset/gemini-poweroff.c index ff75af5abbc5..19bf02bb8193 100644 --- a/drivers/power/reset/gemini-poweroff.c +++ b/drivers/power/reset/gemini-poweroff.c @@ -47,8 +47,7 @@ static irqreturn_t gemini_powerbutton_interrupt(int irq, void *data) val &= 0x70U; switch (val) { case GEMINI_STAT_CIR: - dev_info(gpw->dev, "infrared poweroff\n"); - orderly_poweroff(true); + dev_info(gpw->dev, "infrared poweroff - ignored\n"); break; case GEMINI_STAT_RTC: dev_info(gpw->dev, "RTC poweroff\n");