Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3791083imu; Tue, 18 Dec 2018 04:20:24 -0800 (PST) X-Google-Smtp-Source: AFSGD/UrardqB0MfWEcnMpUUiQVylsyH+PhZeLjqhXPTcArtHqnwUnRwPRtHKctN9kIOwTax263H X-Received: by 2002:a62:59c9:: with SMTP id k70mr16322626pfj.243.1545135623953; Tue, 18 Dec 2018 04:20:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545135623; cv=none; d=google.com; s=arc-20160816; b=xUbFEiIxkDwH4rX+zp9l5P1w/OCOAi45biOmppN/qKBFtvQ3ZYO8fK0iUrdV/5EUBy ocEpYKwsIAS25a0GK/7UuaB8zHcT1ulxV5KbcaETkgY9iDvOFjaZViwnAmBdjihRAopR Y0Le841Yx3wOjCPrI42xgiY5LmZuuY0CI0B/5bOcR4eRRwFhKnanFRg3MJNu3fnlGwX1 IE4w+viX2Ynov17e34TN3yrBgVhJbGZG1skVBhNlvN2YuRK/hMQyq+GPqPzW62rRkFE/ 6MT4+rITzNJupV3D7YjqUw+aoK7L/qbTmLATYUhn5AwRMWdJmGMmGdujQt7cdMlB0Erp ZA4A== 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:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=SkscCEtDXpliSXHUz/cuWzh5NuHyq42x9x7Eg9phJA0=; b=Aq/4N9nJQKH1K1voElDgl8z3U3zfvxuyQdINp+hkGs+1QlOF0c8coMbc0dI3yUnoHa HFdBx44jiYePagmgLBUWCeWYupNCZJW0C0w0HwmXU9QzlX9vl6BHbM1ekw9HhibVjkl9 ajF3DfPYYZhM9RyvPJwL0NGkOvvUzfEJbYBfOO8s1o9/DWDNaeX1qq9lHcKQI2XBs3/X Q5gQ9Sm4xJSIUMYOndhgeQAbwFLeuePjjzhP2deKoKbuqqFAp/aN+V9brGktup7SamH7 9fNVrqHRLHgC7tR2la9BjTMbao+0qWT+RR9JzENcIsYfxA+sbRnNUcd8yoxZfnr2/BmQ FD7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=Sx4TZAPn; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f15si12619846plr.144.2018.12.18.04.20.07; Tue, 18 Dec 2018 04:20:23 -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=fail header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=Sx4TZAPn; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726669AbeLRMSx (ORCPT + 99 others); Tue, 18 Dec 2018 07:18:53 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:36563 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726446AbeLRMSv (ORCPT ); Tue, 18 Dec 2018 07:18:51 -0500 Received: by mail-wm1-f65.google.com with SMTP id p6so2295669wmc.1 for ; Tue, 18 Dec 2018 04:18:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references:mime-version:content-transfer-encoding; bh=SkscCEtDXpliSXHUz/cuWzh5NuHyq42x9x7Eg9phJA0=; b=Sx4TZAPnVYELEi/GgiW2vm6HLxP6N3CesPKNUruVEtOrQdV3j+sJUglwhjkcqZlcLt FM3CCZsB4QyVZ8LX+cpq/z+1XCkXMNEbX6yGwR2HeBOMote03LYZtCRB1i/0AvSwQhcS HvM/qslHbK26aBNdqbHvbzKK5fbJSlX4Q90VHlnKpj6fc9T6TfsQKQtPYk/+TeU/WrK3 5DICy+eqFo2fqf8a5JUIlCJcoTENy6ff747mQ2VNZOnIMd+Xi7ErwXXatX/Fy6pe7M8V yhHEd36TYjFL6Okln5g99tFj9Q9JzXVRw6bjxe6XOp0eVEiXvZw0GB74vuPE7BcFp02M pCFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references:mime-version :content-transfer-encoding; bh=SkscCEtDXpliSXHUz/cuWzh5NuHyq42x9x7Eg9phJA0=; b=lLj/fdIeqQWzJYPqCtGf6kIe6E6E6F3lZV2T16d6F/Bg6lWnYf4Y1R+myM7d8scgry wrtdBXZVp5ARmkEbPFfQb3zUnM5XeG6GkK3urw1apTpjM7uULMQQ9YIcM0ivvXgsT4Xd eXkF0PvnuM0ZWCuPAUK3QtR4bR8AoiYVuF2XzLe7mvXII0ljdVhIpHgoDnPN5LobG0PC HEcp1tLxeBPaUPLEH8f3VU9iMWRTLB3V1EFdv4wGEVmvP54n9xSYywRE19Nip21Tm/io Slda8xU38LFj8oLQ68+PhgGmxJjr1OAS3akHFAH/aN0eKO8k+6knc7cQpoiFZknjpv8V Tc9g== X-Gm-Message-State: AA+aEWazMTitC4SXT/VM4Th9dPLtRoR3RjpIQq89QvobsPDvjO9UCaMo uizcJEWjEyKGTIXf3V8u5RRg+2/KRQ7M8A== X-Received: by 2002:a1c:8851:: with SMTP id k78mr3047275wmd.51.1545135528993; Tue, 18 Dec 2018 04:18:48 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id s66sm2092390wmf.34.2018.12.18.04.18.48 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 18 Dec 2018 04:18:48 -0800 (PST) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, Greg Kroah-Hartman , Shubhrajyoti Datta Cc: Jiri Slaby , linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 1/4] serial: uartps: Add the device_init_wakeup Date: Tue, 18 Dec 2018 13:18:39 +0100 Message-Id: <439951b77da9a1d4cc0551af41c158ae5908b840.1545135519.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shubhrajyoti Datta Initialise the device wakeup. The device_init_wakeup is needed for the wakeup to work by default. Uart can be configured as the primary wakeup source so it is good to enable wakeup by default. The same functionality is enabled also by 8250_omap, atmel_serial, omap-serial and stm32-usart. Signed-off-by: Shubhrajyoti Datta Signed-off-by: Michal Simek --- Changes in v2: - Change description based on request from Greg drivers/tty/serial/xilinx_uartps.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c index 379242b96790..0140644391df 100644 --- a/drivers/tty/serial/xilinx_uartps.c +++ b/drivers/tty/serial/xilinx_uartps.c @@ -1624,6 +1624,7 @@ static int cdns_uart_probe(struct platform_device *pdev) pm_runtime_set_autosuspend_delay(&pdev->dev, UART_AUTOSUSPEND_TIMEOUT); pm_runtime_set_active(&pdev->dev); pm_runtime_enable(&pdev->dev); + device_init_wakeup(port->dev, true); #ifdef CONFIG_SERIAL_XILINX_PS_UART_CONSOLE /* @@ -1702,6 +1703,7 @@ static int cdns_uart_remove(struct platform_device *pdev) pm_runtime_disable(&pdev->dev); pm_runtime_set_suspended(&pdev->dev); pm_runtime_dont_use_autosuspend(&pdev->dev); + device_init_wakeup(&pdev->dev, false); #ifdef CONFIG_SERIAL_XILINX_PS_UART_CONSOLE if (console_port == port) -- 1.9.1