Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp822865pxb; Thu, 5 Nov 2020 14:05:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJy7vdnU5Jmp5cMuI9WWlTInvqAMTevpN6o9haAdf5WLMkvPH2Q8JSbj8It70rXJjJGndTu0 X-Received: by 2002:a17:906:6d89:: with SMTP id h9mr4325764ejt.152.1604613909265; Thu, 05 Nov 2020 14:05:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604613909; cv=none; d=google.com; s=arc-20160816; b=V3uvr4fSUu/upPXsm2FE8gqgbBJrKnZI31a39G51u/Imlxs6gEhCuZO9IS2EeTXv06 4LmNU+j+jfCNHSM3bg+LyyqhPHgLs1GPrI9R0yHLDUNJq4Fud210CUX+yMWH8VpPuxXn nJ9OFUgkGN940faut1CGb6CEe+jjji5/y/F9+P2l3q+7svEBvlLxl9d41kLWZPCdFK3k qxBZzQuTCbmUP5rnxVEFq2FWZ5hGvuw/OaV5OmAJp/njIT6g6WgzkpMEsTHu5rHRmWV2 N0d/WpfnTNk+2dPLXNakezKiHQ/8qlGXiK5x4R+Vqwat3AKbscUj4pTuxLYDAdCkRELd URmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=zix7Z2MSwnAms94G9vRugBnFa6lBztUzs2pxP1WYak4=; b=mVCFvox7W0KJbSPNxJ7xQcxnpRGdNres+zhvS1TRrhDinB08hxqunQPgsJJbpPJe4l +tZnfdXbgKVI83tSIDNxxXx4LmkKRCwkSEFqqmG6zEAH0iCPrVjwabEZK+Ueiw4ai4hE ZgRXQz3s5Utg9tTry1PuCq8UM45EDaOdFLDeHKfctLrQgMrUkQ7ngbbNMac/PJ++COdL GkurTUGssRIezqdoGXzH2tYpzdfKmatahKfi+vmrU7Vrj2G3eJ0osNXeFbVwqo6qfhQl Sjnp/i+GtYwuGELjQb5bid4DnHeRoKL173JUEygmfzbUccL16XI6QibUGFPdu77CTz9g 7lTw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k2si2009510ejj.673.2020.11.05.14.04.46; Thu, 05 Nov 2020 14:05:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732750AbgKEWB3 (ORCPT + 99 others); Thu, 5 Nov 2020 17:01:29 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:52916 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732414AbgKEWB3 (ORCPT ); Thu, 5 Nov 2020 17:01:29 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: gtucker) with ESMTPSA id 318751F465DE From: Guillaume Tucker To: Alessandro Zummo , Alexandre Belloni , Heiko Stuebner Cc: Andrew Morton , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, Guillaume Tucker Subject: [PATCH] rtc: hym8563: enable wakeup by default Date: Thu, 5 Nov 2020 22:01:10 +0000 Message-Id: <4a52fe66b327fd1974f86b7deb7e2c06d74fe64f.1604613067.git.guillaume.tucker@collabora.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable wakeup by default in the hym8563 driver to match the behaviour implemented by the majority of RTC drivers. As per the description of device_init_wakeup(), it should be enabled for "devices that everyone expects to be wakeup sources". One would expect this to be the case with a real-time clock. Fixes: dcaf03849352 ("rtc: add hym8563 rtc-driver") Reported-by: kernelci.org bot Signed-off-by: Guillaume Tucker --- drivers/rtc/rtc-hym8563.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-hym8563.c b/drivers/rtc/rtc-hym8563.c index 0fb79c4afb46..6fccfe634d57 100644 --- a/drivers/rtc/rtc-hym8563.c +++ b/drivers/rtc/rtc-hym8563.c @@ -527,7 +527,7 @@ static int hym8563_probe(struct i2c_client *client, hym8563->client = client; i2c_set_clientdata(client, hym8563); - device_set_wakeup_capable(&client->dev, true); + device_init_wakeup(&client->dev, true); ret = hym8563_init_device(client); if (ret) { -- 2.20.1