Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp735448ybc; Sat, 16 Nov 2019 07:47:51 -0800 (PST) X-Google-Smtp-Source: APXvYqzkApwMfxPCK4Q5g4iXzyIP9RV9ijyVGYvKRpAfIdVpOtctVBvNJOnrxcUHSKim9FMK13CO X-Received: by 2002:a17:906:9458:: with SMTP id z24mr10469771ejx.289.1573919271246; Sat, 16 Nov 2019 07:47:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573919271; cv=none; d=google.com; s=arc-20160816; b=KXoQcd97Dn9A1Czk0Qx3nbnZkN/GkNk6oZzKDEcvtLUFAGb9KqSOPNmjYfWasVa6Ch tquXDR2qziS/B07zeZ39mtZEFmJNwe6Vvxb53M+opDEWo0dTz4tviYmb6mo0TM5K9dLm sXDSmf1Nf+MP9TPL7GFKG7hyGYIoklN04tZdKffq8ifD6SJqUqoN2MsGqLUZHwZjVdyh pp7AtgdxP2wfZzKiwSWNtlhczIp0NBVzHuTXL6owOtsOLBZXkYs4tZuBZjFQ9Erznfih jy4YBfVGcn4y7IJn71IE/SLNYe4DBZlGMGhrN/lByVwTGR2LZ74+CVVsGOOkMBIG3Sv3 t4SQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=f2LyFBNTq0/ASJIFRkSwESDb/8lyB3wt0LBLTpBMUTo=; b=GGSm9alapPsuJQ2LIYvsfUV8jjXNbAWPQ5PdvzRj+2liyqpyMFKnRc/LXYl/TFHedQ /ThrbsLqA8jeDLZ/E91LpV6zvu/EMmSeWr5LHR6YTcNHuoyr1HpGqFYbU7UugkQMBWWL NbDgbsl2LQFXUQRCtGfNkwAIZR2qE0/l3E+U1jfZYMFlRHvBzyFh5ema/QUcjzhwitsx pNLPUTiXIrms7EbUdrwe+uNTRJkSLgYEvVBKZN7qFIZ5aNQFVi5ihEgtNOlxomBLKnop 3k1wme6bgHLXqItJ6ngn8Z2h9ytCr2cWpvXj/PyZWti1RsBg96P3ZHZl1e6tIqo64up9 af5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qF07+Y2G; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z26si7863206ejb.223.2019.11.16.07.47.26; Sat, 16 Nov 2019 07:47:51 -0800 (PST) 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=@kernel.org header.s=default header.b=qF07+Y2G; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728774AbfKPPnf (ORCPT + 99 others); Sat, 16 Nov 2019 10:43:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:47490 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728748AbfKPPn3 (ORCPT ); Sat, 16 Nov 2019 10:43:29 -0500 Received: from sasha-vm.mshome.net (unknown [50.234.116.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 040422075B; Sat, 16 Nov 2019 15:43:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573919009; bh=Wux2/6xePSbFE+QWcjf/7uQCjFGCFXhh9IaB2o/078A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qF07+Y2GztU7x7RZw2z1b9eAXOiCK7/uurqGcpaLXfYMKhKHosQ6s7xQrv7hkzzNP U2Z832t9C3ij7UuewRPRzOij3r2JLc2Uy/pn9yfMbBvGXAEKQBbBHt21NGgLFf7yrW p2OXi+eXD7SEQyGrwxBFRNi+HssAJ+uzNYWJCugg= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Marek Szyprowski , Krzysztof Kozlowski , Lee Jones , Sasha Levin Subject: [PATCH AUTOSEL 4.19 112/237] mfd: max8997: Enale irq-wakeup unconditionally Date: Sat, 16 Nov 2019 10:39:07 -0500 Message-Id: <20191116154113.7417-112-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191116154113.7417-1-sashal@kernel.org> References: <20191116154113.7417-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) diff --git a/drivers/mfd/max8997.c b/drivers/mfd/max8997.c index 3f554c4475218..d1495d76bf2c3 100644 --- a/drivers/mfd/max8997.c +++ b/drivers/mfd/max8997.c @@ -153,12 +153,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; } @@ -246,7 +240,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; -- 2.20.1