Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2301938ybl; Thu, 19 Dec 2019 11:14:40 -0800 (PST) X-Google-Smtp-Source: APXvYqw9vGpGRWY+ngBzEU2HvjWrdx0ZU4g/CILohJlfbxCLfZeBL5RN5gd9/dwSqL4aa/emUa2T X-Received: by 2002:aca:39d4:: with SMTP id g203mr2831820oia.78.1576782880687; Thu, 19 Dec 2019 11:14:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576782880; cv=none; d=google.com; s=arc-20160816; b=SzIvxRl8l3rAlJe0C+tYV8d5u9Jpro18iqhaJ0OOZYM234rVlR2/gR+iT4hCIWaPGW 7wq8mtszuSSqfVZ1V4is3lV2+8ZgEeQ6cO3zOJGy6Z0BWnj68GFY81QEN0qFMrJJQR4Q v3dsYokeekZHKtrXoDq0SVdoRwALGMBt8wa5rDmhGisXOmlaBRCHUeoe9sofII9rlb/W 3TmteyYQ0a8VOefn2i2XqFhJqosEVq80RbmfiDv7q36DToTyv0FhJ3Tbf0t5ahlmBg/O fgLdvUEI3SSeobGwhTCoQcUzaz4QMWDGygwYgo2zvXyd36xAzMb1cMCgbow3/rdUoUtF syOQ== 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=29zWrLp4A4FNhF2AZmjw0tWVaP9BIvm5z3ryKHS4G6E=; b=CEXsO6xgfzHmmH/ouN3N2sVaiyIMf9a/dE0fBXEEeH1yCYZ7doHCUu//uUf0wbzFzX 8CylfrNfmJaaw/qiocduT7ujMziSeBF2ycvk/G+pC4NF+eZ31ZjGQsomfUxL8ZjqaLZm 3TP2+qWmoWIKKv6Yc6lRgpq488+x3YPRf2mnBfZAcnBcSkwmSjctZGZqtFwLNwYPEuu7 KwLpt5KvksR8Y9Z25J7oJYWP0y2zVnwEGHgWKb+Ow6nqcv1s+TUw2W88HkI6KLliV60e vYIPp2MVSKkQKxaohMuFHMWQPi2zecR5PObZPWY4XDTAih5Wm6sD2z8V1009127JzITi TsGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="l9qYV6m/"; 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 w64si3408566oif.51.2019.12.19.11.14.27; Thu, 19 Dec 2019 11:14:40 -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="l9qYV6m/"; 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 S1727546AbfLSSgX (ORCPT + 99 others); Thu, 19 Dec 2019 13:36:23 -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: 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 @@ -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);