From patchwork Wed Sep 5 09:32:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 145977 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp4706286ljw; Wed, 5 Sep 2018 02:33:10 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYrbB+u1uE1an4FFOV+TvXHAdbcFPMgrMyFhEOgFM18u/7lNh6N1mMqyhH4CPK2tpGcUjwn X-Received: by 2002:a62:d94:: with SMTP id 20-v6mr39260856pfn.202.1536139990262; Wed, 05 Sep 2018 02:33:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536139990; cv=none; d=google.com; s=arc-20160816; b=g60psP3ZyYL+otPGNdlW/3vQ/bYbwzheijZ9cStKURGuh9FrMA8xgM+bAGptPRsR4R k401p/HvmbO9XKwh3E/Scyq2iJktpYvZtzq1q2uumXhCuqS+0LLeLV5nf4tfbi/Sw2ul UUV0uOZack8kaBa/wgmagrX2GUHkoO9vOfxY9ldp7omH277Jx3qzACMX1dqhB1TEFktd c4ZKmxxcQL/ijwXhHT4WAijOmpYE0Eb6j2Ozm6mIhNfbmCHinUq4sCWyXYZI7jodLrZB HBIMrHjybZr2RwhVCETaXioMt7+TY/nuMmeWFtaXQX9O3ii5eye1SCA5E8Lr9s72C0cp zB8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=2usRkawckmVip8LLVholFNJl+qoSNb5lNKXogfnlYGg=; b=dWJrPFVuo0l5ldKPixyI8+eAsCioWsQKperDkbisMybCU01gz66Md0LeJB5QNazk0e zC5gUPdcW9Pnk3cKFLh0uf1TItkzUzMW+8hHmuR/u6XWMIlZHqe9FusZNa7pYT8PuYE7 7KjhI9tl9sWjqiGbk9rICNHJJ74gQpOmmNtXydNQgVNdw2Acn1QG77qwfssO3WcAzkyX qMNHyTRu5JKKMiIvfp3sJJ1UItUDYFJx932OJZCkOa48BKtxKpAgLYBCYCwqj8fxQCzI HgeTuUY1vzKY1ZSMNXGI9Y89hMQcE/8OHK7VDHCwmTeUTedxKJEyMuWKvUFoz7FKh2dW ng2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="JyD5vy/1"; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 19-v6si921418pgl.667.2018.09.05.02.33.10; Wed, 05 Sep 2018 02:33:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-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=@samsung.com header.s=mail20170921 header.b="JyD5vy/1"; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728047AbeIEOCa (ORCPT + 3 others); Wed, 5 Sep 2018 10:02:30 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:57342 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725862AbeIEOCa (ORCPT ); Wed, 5 Sep 2018 10:02:30 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180905093307euoutp01ab1977976f5246aa60f19301c021898a~Rdy3zpoH12685726857euoutp01p; Wed, 5 Sep 2018 09:33:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180905093307euoutp01ab1977976f5246aa60f19301c021898a~Rdy3zpoH12685726857euoutp01p DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1536139987; bh=2usRkawckmVip8LLVholFNJl+qoSNb5lNKXogfnlYGg=; h=From:To:Cc:Subject:Date:References:From; b=JyD5vy/1LS5PUtgjA5r64JPySmQoz/xF87jc60nUrLMzFrbw6RdeoTy5H0+dEbXgT S/6hrgxZ/te235y1xKghRCNlv1/iyRsg2o0J4Pg6DslPxu3UxaHrmmH8ZYJe8eS9eN NpTZeCorWQ9L0KyzMJAGHluIKtA9cnwFbLyjjWPY= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180905093306eucas1p264e0a2d2d25fac7719f1cc78c900449d~Rdy3Vnyqx2266822668eucas1p2V; Wed, 5 Sep 2018 09:33:06 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id E7.28.04806.2D2AF8B5; Wed, 5 Sep 2018 10:33:06 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180905093305eucas1p19cbdec510c32cedaf9a9de58fd2de9e1~Rdy2lOzrP1947919479eucas1p1y; Wed, 5 Sep 2018 09:33:05 +0000 (GMT) X-AuditID: cbfec7f5-34dff700000012c6-3f-5b8fa2d25164 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 01.7A.04284.1D2AF8B5; Wed, 5 Sep 2018 10:33:05 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PEK00BNHT71V970@eusync1.samsung.com>; Wed, 05 Sep 2018 10:33:05 +0100 (BST) From: Marek Szyprowski To: linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , MyungJoo Ham , Lee Jones , Bartlomiej Zolnierkiewicz Subject: [PATCH] mfd: max8997: Enale irq-wakeup unconditionally Date: Wed, 05 Sep 2018 11:32:43 +0200 Message-id: <20180905093243.3861-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplkeLIzCtJLcpLzFFi42LZduzned1Li/qjDXqPiFlsnLGe1eL+16OM Fpd3zWGzmHF+H5PF2iN32S1uN65gc2DzuHNtD5tH35ZVjB6fN8kFMEdx2aSk5mSWpRbp2yVw ZTStii34y1HxddJilgbGtexdjJwcEgImEvvWvmLtYuTiEBJYwSgx78ElZgjnM6PEm655bF2M HGBVd266Q8SXMUoc2T6fEcJpYJLYsOcLK8goNgFDia63XWwgtoiAs8TtD99YQIqYBbYwSky/ +ogFJCEsYC+xYMYBJhCbRUBV4uHs22BxXgEbiaWtO9kgbpKXWL3hADOEfZNV4tizXAjbReL1 64dQNcISr45vgfpBRqKz4yATyDIJgWZGifYZs9ghnB5Gia1zdkB1WEscPn4R7FRmAT6JSdum M0P8xivR0SYEUeIhcX33GkYQW0ggVuLOz3ksExglFjAyrGIUTy0tzk1PLTbOSy3XK07MLS7N S9dLzs/dxAiMpNP/jn/dwbjvT9IhRgEORiUeXo2Wvmgh1sSy4srcQ4wSHMxKIrwqXP3RQrwp iZVVqUX58UWlOanFhxilOViUxHn5tNKihQTSE0tSs1NTC1KLYLJMHJxSDYzMsWVnEyJk5dnr n71Kfj5pAvO8onm7VoTpxgWvPPyUYUbN1SYptyPnfHMq+a8cbu1MSK7fVXr7nGf91asmndel 1HfzSjfJasQmO89bUBDybG0ey97tflvmLxFUr5j7N/a8oumyo1wdbN/Xhl+L72iYc3dL2NX4 rWeWsfEU8WyrPjRx+718TUclluKMREMt5qLiRAAZNGVVoAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrPJMWRmVeSWpSXmKPExsVy+t/xy7oXF/VHG7S0G1hsnLGe1eL+16OM Fpd3zWGzmHF+H5PF2iN32S1uN65gc2DzuHNtD5tH35ZVjB6fN8kFMEdx2aSk5mSWpRbp2yVw ZTStii34y1HxddJilgbGtexdjBwcEgImEnduuncxcnEICSxhlLg9aRcbhNPEJDFl72TGLkZO DjYBQ4mut11sILaIgLPE7Q/fWECKmAW2MEq83LGfBSQhLGAvsWDGASYQm0VAVeLh7NtgcV4B G4mlrTvBmiUE5CVWbzjAPIGRawEjwypGkdTS4tz03GJDveLE3OLSvHS95PzcTYxAb2879nPz DsZLG4MPMQpwMCrx8Gq09EULsSaWFVfmHmKU4GBWEuFV4eqPFuJNSaysSi3Kjy8qzUktPsQo zcGiJM573qAySkggPbEkNTs1tSC1CCbLxMEp1cDIOntJ6JmbZY0vNp/uehaykmeei9jnB5NX Wa9eGH1QUzdR3MDugVDdu7f/lKqqOh7OOM8fm31rX6uInpbVLqVEZf/wycsd6z1fvX/14vGW fxsdNytdiIhasv7+ZjuuecvTMjp2nvE9nd40bVbb5Zd7vdLjZjw6HZJTM2Xv7wkrHaQvzN54 RqzPUYmlOCPRUIu5qDgRAOWbD53yAQAA X-CMS-MailID: 20180905093305eucas1p19cbdec510c32cedaf9a9de58fd2de9e1 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180905093305eucas1p19cbdec510c32cedaf9a9de58fd2de9e1 References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org IRQ wakeup 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 MAX PMIC MFD drivers initialized from device-tree simply assume unconditionally that they can be an irq wakeup source, so enable wakeup support also for MAX8997. This fixes support for wakeup from MAX8997 RTC alarm. Signed-off-by: Marek Szyprowski --- drivers/mfd/max8997.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) -- 2.17.1 diff --git a/drivers/mfd/max8997.c b/drivers/mfd/max8997.c index 3f554c447521..7155e991cb82 100644 --- a/drivers/mfd/max8997.c +++ b/drivers/mfd/max8997.c @@ -152,12 +152,7 @@ static struct max8997_platform_data *max8997_i2c_parse_dt_pdata( return ERR_PTR(-ENOMEM); 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. - */ + pd->wakeup = true; return pd; }