Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp769549ybl; Wed, 11 Dec 2019 07:15:29 -0800 (PST) X-Google-Smtp-Source: APXvYqyyq3A6zSN1dlzFSJ3XpoB8LDhPQbLyzfZe9SAo4lFifigXRPLR0NfiKz8LIS50xNlWlpKT X-Received: by 2002:a05:6808:35a:: with SMTP id j26mr3195357oie.163.1576077328790; Wed, 11 Dec 2019 07:15:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576077328; cv=none; d=google.com; s=arc-20160816; b=PjMcsGCWtAOfdRSX29mcc/baopLqrSQFq9zdTc6vOv2fy1M9qejZpMecVtJYubsGBN +5HYUUWbSthlgiIOszVL6G1Kqc9DPgEV3OhPUUzMrvhOQpyfL3mgbVbAtv2Khkvj7Nip mpN1GXT7sLdizGQa5w3d14ntGuYB+Qdwx8TkZfZI4ELPbDF7X0+I0LudO6SufCcd7j6R xma1+BCd4hc9rLYba3cQY6J9siR1aBsThj7wMYSvZzxQbD/sB1zHZ/bSrBT5CAHKDmvu Xep67ungdw7wMIzoqhM6iAfPzMGFKYxXkhxxh/5rJjMFJLxUnio4NvhDQfWqN6EvbKwt n/qA== 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=Pz6xvHMe6Dz+n6fJ3WOGfhE0M+PbP1OHyqxo+F+ZTd1A9Zdn/1zL2kLDggU5NTDnVW /35C799YV4ugBjNudp6/c7jBAjaEiFqcAPtdpt6O3DGT1kSzlSaV/+RPCrydgSzpCQsa lZUtZ3XDQv4LKKtGhp8OScc7neEDcusegPP9GNGHK9U6l2bxbk+3K6ylSWqb5tKf8gmH ZxxMVwJDFcIQL4+J+wbaJcMhzwvH1qB5yRp0fwAJTb++u2XkQQiU55enFQKHZAviT7qG EJxm6vyF657BcnYL8ez2Gfb0qoegPHPLtRL8G6eF4jQvdLpADhB9G6RS9F8JMjENbkwo /6fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wu6QFAw6; 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 w5si1361719oib.134.2019.12.11.07.15.16; Wed, 11 Dec 2019 07:15:28 -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=wu6QFAw6; 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 S1731364AbfLKPNL (ORCPT + 99 others); Wed, 11 Dec 2019 10:13:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:35918 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731325AbfLKPNE (ORCPT ); Wed, 11 Dec 2019 10:13:04 -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 DD60324685; Wed, 11 Dec 2019 15:13:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576077184; bh=LKxzpUfyF+oYSQX+FKuJTBK46/nO+5dzYVqWq0NnofU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wu6QFAw6csWGikgjKJxzABrsyOVU4HJm6N32Ds37sZTBR6El6+7qZoE79fKstF3vg cZFx1wmzEUL+51BEvtdUplbbnUZCrOL9LNE9K6gXObQzKRFxX/k60jHEy4E46DTzFq tfbyq/0FSzGLlhDiEeuaD35TtnZOfA6GrkgpXmio= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chuhong Yuan Subject: [PATCH 5.3 013/105] serial: ifx6x60: add missed pm_runtime_disable Date: Wed, 11 Dec 2019 16:05:02 +0100 Message-Id: <20191211150224.089045896@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191211150221.153659747@linuxfoundation.org> References: <20191211150221.153659747@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);