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 9CADFC2D0D1 for ; Thu, 19 Dec 2019 19:12:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 67D5A24672 for ; Thu, 19 Dec 2019 19:12:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576782771; bh=DEKBXRB7nsaAebTFX9q8Bi8Dx7ghdIEtxFRSQFrfSRA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=ffDdJInsUuniAl/9XpE1xJzmW+KMP/9Fhji723VsBFcTk75iGw+Rb4GYS+nuvG/7N nqomPlM3xQd2FaiVl1vq9LdroeaKfNnu3UU1WSbUytW87uEfhmvhDIAizZneo2hgen +aRqecchx/lsFM5xTB4fdchDGoGPFZcuBJfDC014= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727545AbfLSSgW (ORCPT ); Thu, 19 Dec 2019 13:36:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:53226 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727531AbfLSSgT (ORCPT ); Thu, 19 Dec 2019 13:36:19 -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 6F54224679; Thu, 19 Dec 2019 18:36:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576780578; bh=DEKBXRB7nsaAebTFX9q8Bi8Dx7ghdIEtxFRSQFrfSRA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l9qYV6m/XPgyN7iniDRNlFPo4MvX02R8QD722+To3fhfPXqoHVCzX05SL++O4mgV+ +n1NcpOVzuLaK4Fs230JMQ5SMiD+EnF2fBoMADUErk0fHW4xQ8fc7Jty+Xx3tMyyNa XYiyCr6mvdIwl9u3tObFNpK/l7dGQBjVTUWU+6sg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chuhong Yuan Subject: [PATCH 4.4 006/162] serial: ifx6x60: add missed pm_runtime_disable Date: Thu, 19 Dec 2019 19:31:54 +0100 Message-Id: <20191219183157.631482908@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191219183150.477687052@linuxfoundation.org> References: <20191219183150.477687052@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 @@ -1241,6 +1241,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);