Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp838497ybl; Wed, 11 Dec 2019 08:15:27 -0800 (PST) X-Google-Smtp-Source: APXvYqys+3oEYeLPmGj8ZxBLhDocMTAODhEpsPkYXzcQlTpsElSJ4t3J+IN+hSl7kPVRJ8WVFj+4 X-Received: by 2002:a9d:338:: with SMTP id 53mr2866643otv.197.1576080927295; Wed, 11 Dec 2019 08:15:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576080927; cv=none; d=google.com; s=arc-20160816; b=JmQXmv3e5g1bzsZwfuGoAOqumbt/UgoSoXW+0BRoqr4q1lNO1Vi66X7Jgly4ley5Uq ec7JLCwcJe/h8k327sFwd1Bn25MSZ9syk8+aygFwLBS1MOdrJgXerBWJg/ujYat6LhGw C7gkt8cIK6vZu4hSab+hNA5QgPyuGE0xtq2pCY9XYy8mwQVsn/uG8Hd/0ayNu25pWe91 OmqFkuVEtpUXGn871J4IVObCl4Q3yEuxusVfd00V2pRdaEoPE+ThsRxP5F9exdK/ZMLl B4lNuBeNdYu5XZ+vbNHTe5Ykq19KplwyuQPgaeKtWR+LcTTkP7m56d9RBVG9uxZSe5kw i7cQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=PHd4BsEnyIY2fmpcPCP54bzHxJUXQvlB7ms5l/Bf7ow=; b=C4aWswALJlCw1FlFByi/f0Xn+j38iEpuGCMIh6HmQaoacyP9bYWzaB8A0coUzj+PPO Nf/IQ45MPgCdYnae3+k0FHYgdS28SrD4l4IfrWRszZrwm1RNi8ZnsZ1f8Mb3GpwTo5Hq SNFJw0gm5SkAT4Na+OCP7fVg3nPnYzeF11/2cEwXQ/yJYiso0RMz+ViG0z4FnmXZbUZ7 U768ETxTz9rDEW/sziRvCiJGmpZWp0f2tKyOdpo1EtqzafffDgvwCZEIn8QOaZ5Vi3Hf kKFFEbm73QnQ1mvNh1QW1O1X4QAZUk4zLydezCK3v1uq+PERaZGXMQdpbL4p42sTZ86E zS3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XbP8AwfA; 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 11si1265220oix.233.2019.12.11.08.15.14; Wed, 11 Dec 2019 08:15:27 -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=pass header.i=@kernel.org header.s=default header.b=XbP8AwfA; 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 S1730070AbfLKPHl (ORCPT + 99 others); Wed, 11 Dec 2019 10:07:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:54816 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730010AbfLKPHj (ORCPT ); Wed, 11 Dec 2019 10:07:39 -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 8DF4B20663; Wed, 11 Dec 2019 15:07:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576076858; bh=LKxzpUfyF+oYSQX+FKuJTBK46/nO+5dzYVqWq0NnofU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XbP8AwfAjPxu/DGbMEvlz+0xgga6ge+hui840zxyHN2pcjA6BQ/rVIE0whCRUmpkZ xcrV1gJ5pIFjaFqP32U0J1nZiRZCwVkl8fogWblXo0LdP6LI1rQdywNxJsAsEGCrlo 3QeMwCymzKkWzk8nNWa45oHvyIvomQ/n4++U6Dw8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chuhong Yuan Subject: [PATCH 5.4 18/92] serial: ifx6x60: add missed pm_runtime_disable Date: Wed, 11 Dec 2019 16:05:09 +0100 Message-Id: <20191211150226.990625436@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191211150221.977775294@linuxfoundation.org> References: <20191211150221.977775294@linuxfoundation.org> User-Agent: quilt/0.66 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: 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 @@ -1230,6 +1230,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);