From patchwork Mon Sep 21 15:47:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 53974 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by patches.linaro.org (Postfix) with ESMTPS id 6B5A222B04 for ; Mon, 21 Sep 2015 15:48:57 +0000 (UTC) Received: by lamf6 with SMTP id f6sf45010500lam.1 for ; Mon, 21 Sep 2015 08:48:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=p6D51+6ruIAkKCKf8RzSx77OE/3FPjSG5B6EyBoLFFI=; b=MXTBMk6N2Qx4sVOr1lvomw5I15TfOBcRXTr4eh1IuZARek76Rj5IGTBJCmidNEDl9p XTndenliJyWo6mEBzyki65Lxvn5QJA7/cHUTvUDpoeRurNStTth93EXJh0S/mIUCpNIF UFJUMKgVfl9QXZEz98AgvC6SFp4sxrIGE3pRmNxQEAJD2zDA0I0TxeXeHskEucYfmaa8 LEDOT71yuGqjz9x1d7p6+x1R61zhNUplD/BJPSSasbi8ZKG4kxPwpS6eEaJQw3HMQ9gN BtKntnktl913uB4Zdm+aSryWHBuZLQtIapgfdhBvrDgyXfqcLsZfbkKAaqLrlVFZFV1z w11A== X-Gm-Message-State: ALoCoQnqGTg9MsmOnooJCLuIwx+Ok7NGorn9uj58WpkljEm2Am0mYu2y9/NHL1YiKyioHEfnrD+v X-Received: by 10.152.1.129 with SMTP id 1mr3401828lam.3.1442850536175; Mon, 21 Sep 2015 08:48:56 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.9.66 with SMTP id x2ls497610laa.107.gmail; Mon, 21 Sep 2015 08:48:55 -0700 (PDT) X-Received: by 10.152.7.72 with SMTP id h8mr5149104laa.8.1442850535886; Mon, 21 Sep 2015 08:48:55 -0700 (PDT) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id zc4si16425443lbb.83.2015.09.21.08.48.55 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Sep 2015 08:48:55 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by lanb10 with SMTP id b10so70268368lan.3 for ; Mon, 21 Sep 2015 08:48:55 -0700 (PDT) X-Received: by 10.112.156.167 with SMTP id wf7mr7870082lbb.88.1442850535604; Mon, 21 Sep 2015 08:48:55 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1784406lbq; Mon, 21 Sep 2015 08:48:54 -0700 (PDT) X-Received: by 10.66.189.69 with SMTP id gg5mr26073638pac.28.1442850534622; Mon, 21 Sep 2015 08:48:54 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ut10si38657594pac.203.2015.09.21.08.48.54; Mon, 21 Sep 2015 08:48:54 -0700 (PDT) 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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932856AbbIUPs0 (ORCPT + 30 others); Mon, 21 Sep 2015 11:48:26 -0400 Received: from foss.arm.com ([217.140.101.70]:54043 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932821AbbIUPsW (ORCPT ); Mon, 21 Sep 2015 11:48:22 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DD865535; Mon, 21 Sep 2015 08:48:26 -0700 (PDT) Received: from e103737-lin.cambridge.arm.com (e103737-lin.cambridge.arm.com [10.1.207.150]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A95AB3F2E5; Mon, 21 Sep 2015 08:48:20 -0700 (PDT) From: Sudeep Holla To: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Sudeep Holla , Thomas Gleixner , "Rafael J. Wysocki" , Srinivas Kandagatla , Maxime Coquelin , Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org, kernel@stlinux.com, linux-serial@vger.kernel.org Subject: [PATCH 10/17] tty/serial: st-asc: drop the use of IRQF_NO_SUSPEND Date: Mon, 21 Sep 2015 16:47:06 +0100 Message-Id: <1442850433-5903-11-git-send-email-sudeep.holla@arm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1442850433-5903-1-git-send-email-sudeep.holla@arm.com> References: <1442850433-5903-1-git-send-email-sudeep.holla@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sudeep.holla@arm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , These drivers doesn't claim the serial device to be wakeup source. Even if it is, it needs to use enable_irq_wake or other related PM wakeup APIs to enable it. This patch removes yet another misuse of IRQF_NO_SUSPEND. Cc: Srinivas Kandagatla Cc: Maxime Coquelin Cc: Greg Kroah-Hartman Cc: linux-arm-kernel@lists.infradead.org Cc: kernel@stlinux.com Cc: linux-serial@vger.kernel.org Signed-off-by: Sudeep Holla --- drivers/tty/serial/st-asc.c | 2 +- drivers/tty/serial/stm32-usart.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/st-asc.c b/drivers/tty/serial/st-asc.c index d625664ce1b5..2d78cb3627ae 100644 --- a/drivers/tty/serial/st-asc.c +++ b/drivers/tty/serial/st-asc.c @@ -430,7 +430,7 @@ static void asc_break_ctl(struct uart_port *port, int break_state) */ static int asc_startup(struct uart_port *port) { - if (request_irq(port->irq, asc_interrupt, IRQF_NO_SUSPEND, + if (request_irq(port->irq, asc_interrupt, 0, asc_port_name(port), port)) { dev_err(port->dev, "cannot allocate irq.\n"); return -ENODEV; diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index e3de9c6d2226..f89d1f79be18 100644 --- a/drivers/tty/serial/stm32-usart.c +++ b/drivers/tty/serial/stm32-usart.c @@ -322,8 +322,7 @@ static int stm32_startup(struct uart_port *port) u32 val; int ret; - ret = request_irq(port->irq, stm32_interrupt, IRQF_NO_SUSPEND, - name, port); + ret = request_irq(port->irq, stm32_interrupt, 0, name, port); if (ret) return ret;