Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2318554ybc; Sun, 17 Nov 2019 18:51:06 -0800 (PST) X-Google-Smtp-Source: APXvYqwpqVaai9fjVVh3NddunJ0aZddqN87GceMdsLkTXvRJdsM4UKHf8LtoA5ZWTbXeMzSxdjL9 X-Received: by 2002:a17:906:5049:: with SMTP id e9mr22957056ejk.53.1574045466136; Sun, 17 Nov 2019 18:51:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574045466; cv=none; d=google.com; s=arc-20160816; b=I1md/R8JYJmEZswIHGHWe0A2Hfh5b97al+zYr84BKAJRiVGlZ5UZOFCMxyI7qUXIK5 r/nU+dx14zpp4wcvCcH1Vmi+MDQi7NOxoJ5Poi8aeZVnjP37ksFxHrzAVbPHJKQxG/Ww 9KXrYcGFc6zDGcWaz1EbCLZ6K8wTWeoRYheTKP5cumUJDLQ0D5oEQPUmGcSMza2TYFFX e2jHVl/U8PoWyoJdtqmAGVMmP3nswMnJsZOKLtddSfi8J8IC7bU3JrfaoGTU0O85Cuny G1++QoD8gAEEYNfvb8+/giH6WDwcNDabdTly9bCty5EuVYuwZUqqAJ6OtqltxkXmSfu4 2vpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=R6TiJnoCZMVB94Jb1OinOc0NFo4+1L3OR+Z9/bchwqM=; b=XypqcXq2sMVfhvuKNUfQL/4cffeVn2e/kF1e7RhXmJJxghGzCrRagkdj+vHUpcQRvd +R9WT7N+hxl77oyOULsGVGAZ0R0w+Sj5aiOZXl9tGyYGKXPJA2P5LLGlMH2fQEu7tdsM t7UnywxzLMhqXCR+GZ5UFbmKfTLCKTABkFPOT9ywK2Kqc2a3VTEMomMM/j2+kZG92tCn BBdtVK9IWdxzw/mS7lwFeiRmgk+2mcVDhwi6QrFpGylEpZvxutdb2s/RNU3ETtADz5Fw dDwPDecEgPfa77dERyuMdi5HTzW8bBIA0/HOWbUFq840e6VuESzc0wk5U1jT6GXrWOl5 gsXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=bJ3uOU3F; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h22si12187214edb.346.2019.11.17.18.50.42; Sun, 17 Nov 2019 18:51:06 -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=fail header.i=@gmail.com header.s=20161025 header.b=bJ3uOU3F; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726627AbfKRCsm (ORCPT + 99 others); Sun, 17 Nov 2019 21:48:42 -0500 Received: from mail-pj1-f67.google.com ([209.85.216.67]:38975 "EHLO mail-pj1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726568AbfKRCsm (ORCPT ); Sun, 17 Nov 2019 21:48:42 -0500 Received: by mail-pj1-f67.google.com with SMTP id t103so1033823pjb.6; Sun, 17 Nov 2019 18:48:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=R6TiJnoCZMVB94Jb1OinOc0NFo4+1L3OR+Z9/bchwqM=; b=bJ3uOU3FStjRGKfXMD0IgiIHyIHaHeOsqDzYk+eOwu9ZnIZmR87tv5m5kvq0Q6Uvpg huY/FO82GK1T52tznbKfM/qZnz8qsJyowmri8F4ErYOAQH2g/8rJNXh8Fc/J0+5t7NbH lmfQsVsM2Po8ujf/PW6IN7rc+VhY49XQEeLp3GXIFmwLYzo1lwB/vn3u8/7Tch1/TCns DwwJX4dAqOlGTlDgzBAZejzUlmkJWNC4ooSUArppyyMLLLHLa8HTlZyIi/WqwlA88NuS JKdjwBt4SWZqDN0b9XbqfwwIZ6SzjpiC5TMtz5myVKaOwieoXENJf+/+bpljVpesGnUT OAMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=R6TiJnoCZMVB94Jb1OinOc0NFo4+1L3OR+Z9/bchwqM=; b=DA3tLEK08FUBEfT72j6Ej85TJGtTb8xtoOuxGvEiE6YEFforSZLtC1SU+OFCIFC2vw jOS+BfxmGgKRhP8eLofDqJLmJwqoCex7GTH4YgbjJED3mjo05f03Gz/kEDY/qLZWl3I5 3By0tUpn64yAzpcSSxRBPKfyfSEwhlFCCOeQ4BdnVAjLtKjvATiYaIdoR7x4lHlMYX3o 42LL6fDBqLiu9LOUnn5OFZA12PGD5TEImMhjDrhjlya7yD7XruTIyeAby5FqX14zZZoC kjXDAwuWGVWrpYjv4Mo6LlB+SCykpi4J+YSHepLYsGybyLyYaNhD0daFK4kMsX+woMFl j1Tg== X-Gm-Message-State: APjAAAVy6GnM6dp3Nv4GFAnNkPIznjTt9bmofMHGlJOf+Jpefe3x/DfD s9Fptxkrftq3+YRF3SDXd90= X-Received: by 2002:a17:90a:9b87:: with SMTP id g7mr36305892pjp.64.1574045321552; Sun, 17 Nov 2019 18:48:41 -0800 (PST) Received: from suzukaze.ipads-lab.se.sjtu.edu.cn ([202.120.40.82]) by smtp.gmail.com with ESMTPSA id x10sm18991935pfn.36.2019.11.17.18.48.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Nov 2019 18:48:40 -0800 (PST) From: Chuhong Yuan Cc: Greg Kroah-Hartman , Jiri Slaby , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Chuhong Yuan Subject: [PATCH] serial: ifx6x60: add missed pm_runtime_disable Date: Mon, 18 Nov 2019 10:48:33 +0800 Message-Id: <20191118024833.21587-1-hslester96@gmail.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The driver forgets to call pm_runtime_disable in remove. Add the missed calls to fix it. Signed-off-by: Chuhong Yuan --- drivers/tty/serial/ifx6x60.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/tty/serial/ifx6x60.c b/drivers/tty/serial/ifx6x60.c index ffefd218761e..31033d517e82 100644 --- a/drivers/tty/serial/ifx6x60.c +++ b/drivers/tty/serial/ifx6x60.c @@ -1230,6 +1230,9 @@ static int ifx_spi_spi_remove(struct spi_device *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); -- 2.24.0