From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8E44EC43603 for ; Thu, 19 Dec 2019 19:07:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 59A8F222C2 for ; Thu, 19 Dec 2019 19:07:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576782445; bh=FiuL7yGSuoi3HNK42m9pi1FS4FRVWMscdsf/ueJ9uoE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=D3BF6mAy1v0Y0Ae4PY5wnIUgYLI/JTryG9hq9fQxdUvBtajUOWToeSOGnIpa9YCYW SRmpDon1imWSXbzd9ogDbzIMjqiWL8NIT0eJX+iF5uiRGI9vEe5wH8LmaKQE5wMDSV 3ONfZdUjaqft8LqRZJro9bBrD/+C6tFqc19cCtu0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728137AbfLSTHQ (ORCPT ); Thu, 19 Dec 2019 14:07:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:34970 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727856AbfLSSnW (ORCPT ); Thu, 19 Dec 2019 13:43:22 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 75195206D7; Thu, 19 Dec 2019 18:43:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576781001; bh=FiuL7yGSuoi3HNK42m9pi1FS4FRVWMscdsf/ueJ9uoE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GDgPIgjhEa2lAs8zWoPVMd/4IZotEolpV3JDxCmXLQjc+gPbZcjAn0oY3mkcHIt/A fosl8h4XNcUaB7JnAsIWsw3HlBFVg4une4T6FAiSqGP/oowK2487WX33v/5f2p4lVu ou/U+zDkyfCxiB8a62OCJ2r3VDkAT0PX8KAry0+A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chuhong Yuan Subject: [PATCH 4.9 007/199] serial: ifx6x60: add missed pm_runtime_disable Date: Thu, 19 Dec 2019 19:31:29 +0100 Message-Id: <20191219183215.070695516@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191219183214.629503389@linuxfoundation.org> References: <20191219183214.629503389@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Chuhong Yuan commit 50b2b571c5f3df721fc81bf9a12c521dfbe019ba upstream. The driver forgets to call pm_runtime_disable in remove. Add the missed calls to fix it. Signed-off-by: Chuhong Yuan Cc: stable Link: https://lore.kernel.org/r/20191118024833.21587-1-hslester96@gmail.com Signed-off-by: Greg Kroah-Hartman --- drivers/tty/serial/ifx6x60.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/tty/serial/ifx6x60.c +++ b/drivers/tty/serial/ifx6x60.c @@ -1244,6 +1244,9 @@ static int ifx_spi_spi_remove(struct spi struct ifx_spi_device *ifx_dev = spi_get_drvdata(spi); /* stop activity */ tasklet_kill(&ifx_dev->io_work_tasklet); + + pm_runtime_disable(&spi->dev); + /* free irq */ free_irq(gpio_to_irq(ifx_dev->gpio.reset_out), ifx_dev); free_irq(gpio_to_irq(ifx_dev->gpio.srdy), ifx_dev);