From patchwork Wed Aug 17 05:39:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaron Ma X-Patchwork-Id: 1667092 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=aIGOec+y; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4M6xfy6CYbz1ygF for ; Wed, 17 Aug 2022 15:39:53 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1oOBmH-0000Lv-Bt; Wed, 17 Aug 2022 05:39:41 +0000 Received: from smtp-relay-canonical-0.internal ([10.131.114.83] helo=smtp-relay-canonical-0.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1oOBmF-0000LV-Is for kernel-team@lists.ubuntu.com; Wed, 17 Aug 2022 05:39:39 +0000 Received: from localhost.localdomain (unknown [222.129.34.149]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id 279EB3F131 for ; Wed, 17 Aug 2022 05:39:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1660714778; bh=p0N/PlkFCYEzdPYJfSennUZdwwLqUlqnusApnaDsvrM=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=aIGOec+yo+eDj8kmaJRFzHemcopRR/7EocMOAf3HTot67YDVKQjBL3B8kf6nfZEbV JklDTDvj3cAHkSgM7ijVYxaWxpw7xAFq/PWPX7GYlBb/LU1U/n+MD8kq+GGcAzpj1O tMXHgQJTixcqaAMyqJ0weWWp2R3XQarX5ieYnZnTaw4r2poA3nPB9EoWIluvNrp/Up 4EI9CJ4qhFDQLk4W370URmJ4yrCE6cMbrxNWR/0LULswiiIq7MP13yjCaGrX7XtpzG R8zPTKvKkvlB0pfNaEZoWdi3+NTQhSZsvQTSesoagsCpb3TdQ3vzcu8ZPppvMPZzpV 4zZ7qJPMM4NhA== From: Aaron Ma To: kernel-team@lists.ubuntu.com Subject: [SRU][PATCH 0/5][OEM-5.17][RESEND] Add proper runtime PM support to Realtek PCIe cardreader Date: Wed, 17 Aug 2022 13:39:26 +0800 Message-Id: <20220817053931.1400579-1-aaron.ma@canonical.com> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1963615 [Impact] New generations of Realtek PCIe card reader cannot detect card insertion when the device is in PCI D3. [Fix] Rework the runtime PM flow and add chip specific support. [Test] With the series applied, the device can detect card insertion when it's in PCI D3. [Where problems could occur] System wide power management with less usage like hibernation, kexec reboot, etc. are not tested extensively. So these cases may be affected. Resend for OEM-5.17. MMC patches were already merged by stable update. Kai-Heng Feng (3): misc: rtsx: Rework runtime power management flow misc: rtsx: Cleanup power management ops misc: rtsx: Quiesce rts5249 on system suspend Ricky WU (1): misc: rtsx: rts522a rts5228 rts5261 support Runtime PM Tom Rix (1): misc: rtsx: conditionally build rtsx_pm_power_saving() drivers/misc/cardreader/rtl8411.c | 2 +- drivers/misc/cardreader/rts5209.c | 2 +- drivers/misc/cardreader/rts5227.c | 47 ++++++ drivers/misc/cardreader/rts5228.c | 23 ++- drivers/misc/cardreader/rts5229.c | 2 +- drivers/misc/cardreader/rts5249.c | 31 +++- drivers/misc/cardreader/rts5261.c | 35 ++++- drivers/misc/cardreader/rtsx_pcr.c | 228 +++++++++++------------------ drivers/misc/cardreader/rtsx_pcr.h | 3 + include/linux/rtsx_pci.h | 5 +- 10 files changed, 220 insertions(+), 158 deletions(-)