From patchwork Wed Nov 27 20:30:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 180351 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp6683270ilf; Wed, 27 Nov 2019 13:35:34 -0800 (PST) X-Google-Smtp-Source: APXvYqygXZQD4bW+AeMU+lRRDTb/yedbdn5mcVF0vZ1IR9jVfudC/6OjWVE7s1S1e7EIJdNisQGZ X-Received: by 2002:a17:906:d9c4:: with SMTP id qk4mr49857211ejb.214.1574890534651; Wed, 27 Nov 2019 13:35:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574890534; cv=none; d=google.com; s=arc-20160816; b=zEkx1FYS61QrCKIuKCMq9UXlK16eQz7H2xblYCu0nLg+PMOLAaKHHaftPICoi0WYHD Hm8wuVbNC6Qeiy8LQhqljJ++RE4kV99NVJvDdQ/Tcvc66h5VRnSy0nq7m5KTFthn9zxQ 9ZMqRqSsgjEllBnXiuK+AfvFCLRNLtB67ISmfSgCeN4ORPEAIKLRc5tyom4hRhVLvRuI x3MIg0ZcJsZm7wgPcIp67ttH0tGaD2GR4cds2CZZapSYPX1sMGHL4WWhujdQVLM20x6S 60BQk3nyMgV4OvvRDXZw3BmxFgx0sB8jU2LQHr1SJJ39WuGYWa45yJ6EpNilWrnwCqDO NHSA== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=7VNXWGWCtE8Fm8Zz5q2L5LPZ1Mt6kOsnGIcD9S9rjhY=; b=VBAGCJx4KbajPtXDDKYzy69juCcHu8uxW1dR+Rl09ttalH/1GCsVSs80AowhMKfcAD Ly+Tn6unoidlLF2EmfGU/VHejGCqVCRE6fC/ILaRSf9sYHXFiuLT89FKC9WHQcYoPthB aoKR4ZnIPnLaric0RmI9HcBY8Q0pDv9Ti8iHrtuleQIMMcvi2SUAjmZpl93f5JBrRiT/ q4+//D8a5OC5ZM0FlFoGyG7u+/VMbjSYNrayq/v/+7xsCDXRK2FKYz6aDmsjQcSHV1kA Pwze/H4S3ErMRla/N9LkbrF26slXFxVbYn2gGS2D3bro09h2espek5rjEoarLOiYsxGh pl/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="MVTC/UOL"; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-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 c12si11917334eda.402.2019.11.27.13.35.34; Wed, 27 Nov 2019 13:35:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of stable-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=@kernel.org header.s=default header.b="MVTC/UOL"; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727179AbfK0Vfd (ORCPT + 15 others); Wed, 27 Nov 2019 16:35:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:35016 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729013AbfK0UtY (ORCPT ); Wed, 27 Nov 2019 15:49:24 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9842021843; Wed, 27 Nov 2019 20:49:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574887764; bh=dG+zSrw7iEHZfFQEuCJ+9sfjj9LTzYBKGyDmPJzLAbU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MVTC/UOL/3Eya1pokbYrC0NL+ByApCKY0ov3q/BUL6Gk5AvIdNRqZGrxESNF7A3J+ h1F+NG74mOLhW9NZjrwGbMRpgVOPRO4hH5a34pJSfYYCbBrhAEoVZK827QMgUPXF3K 7eGWAvUtZZJTc3f6HgJ1muN8vT+FSklWSWtx7DWs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marek Szyprowski , Krzysztof Kozlowski , Lee Jones , Sasha Levin Subject: [PATCH 4.14 084/211] mfd: max8997: Enale irq-wakeup unconditionally Date: Wed, 27 Nov 2019 21:30:17 +0100 Message-Id: <20191127203101.717047848@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203049.431810767@linuxfoundation.org> References: <20191127203049.431810767@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Marek Szyprowski [ Upstream commit efddff27c886e729a7f84a7205bd84d7d4af7336 ] IRQ wake up support for MAX8997 driver was initially configured by respective property in pdata. However, after the driver conversion to device-tree, setting it was left as 'todo'. Nowadays most of other PMIC MFD drivers initialized from device-tree assume that they can be an irq wakeup source, so enable it also for MAX8997. This fixes support for wakeup from MAX8997 RTC alarm. Signed-off-by: Marek Szyprowski Reviewed-by: Krzysztof Kozlowski Signed-off-by: Lee Jones Signed-off-by: Sasha Levin --- drivers/mfd/max8997.c | 8 +------- include/linux/mfd/max8997.h | 1 - 2 files changed, 1 insertion(+), 8 deletions(-) -- 2.20.1 diff --git a/drivers/mfd/max8997.c b/drivers/mfd/max8997.c index 2d6e2c3927862..4a2fc59d59016 100644 --- a/drivers/mfd/max8997.c +++ b/drivers/mfd/max8997.c @@ -155,12 +155,6 @@ static struct max8997_platform_data *max8997_i2c_parse_dt_pdata( pd->ono = irq_of_parse_and_map(dev->of_node, 1); - /* - * ToDo: the 'wakeup' member in the platform data is more of a linux - * specfic information. Hence, there is no binding for that yet and - * not parsed here. - */ - return pd; } @@ -248,7 +242,7 @@ static int max8997_i2c_probe(struct i2c_client *i2c, */ /* MAX8997 has a power button input. */ - device_init_wakeup(max8997->dev, pdata->wakeup); + device_init_wakeup(max8997->dev, true); return ret; diff --git a/include/linux/mfd/max8997.h b/include/linux/mfd/max8997.h index cf815577bd686..3ae1fe743bc34 100644 --- a/include/linux/mfd/max8997.h +++ b/include/linux/mfd/max8997.h @@ -178,7 +178,6 @@ struct max8997_led_platform_data { struct max8997_platform_data { /* IRQ */ int ono; - int wakeup; /* ---- PMIC ---- */ struct max8997_regulator_data *regulators;