From patchwork Tue Oct 8 09:34:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Richard X-Patchwork-Id: 13826123 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 758B4CEF147 for ; Tue, 8 Oct 2024 09:40:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=azrDAqPDegI1ED+UegA1GMYxEZg817Bjad4Z4j+1f7E=; b=iN2cv2gNqVDmT1 3rwumLwv96vAgvtgl8NwnH3VW8v/PDQWqjNOklMJ/kDj53G544uhHENv7wTNExdXavgiTX22y/RNj 7qIVHCZUWrNp3rHKrx/Ge265fWFF8rCgg9FyuqEMA/NC9+ZclsaNGp65o/9+wxIZl6CmY9b2SbYFI 9eCGpIVrudi/VNOM6aXiUcS5x4vfGOVZkvqjfr2tW3wFfV+CtzeXqX+NUuSfmhhQLpOiEnIlYkDE2 fGGMeXfNsPRj3hh7DfPSOM7/E1cdxo52Ntkd8/k0U3WUCMQhWdFYk5iZ3F6BBFpomuLHjBnro98Af qS0fSaPvqmmYw8YxwSkg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sy6hf-00000005LBV-45Ni; Tue, 08 Oct 2024 09:40:27 +0000 Received: from relay9-d.mail.gandi.net ([217.70.183.199]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sy6cO-00000005KOh-12Lg for linux-arm-kernel@lists.infradead.org; Tue, 08 Oct 2024 09:35:02 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 86BBCFF807; Tue, 8 Oct 2024 09:34:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1728380096; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=azrDAqPDegI1ED+UegA1GMYxEZg817Bjad4Z4j+1f7E=; b=nNWnDXlLVhOKWeQOG9c13C/2zDuuVq3RiKfut+L/CIhj+wcgediLJsPNT2S8rO+PaMGsud cK1zemuzwyjs6pfooGDJLM3CFT4F0j9h/9IgVfOhvNuycCekycaV05d2ex3qkH9cabzgaV Dr80AIK4Sy0nXRh+3jA8fh02nhl+7GPTdU9ybDeM1xa7d8iNyJ5kWCuGdRg9GitQrJGlN3 i/rlyYv/STrMVbsrOlOusXehRnohmpfXe6Xm5F2ihpX1kGeaQCgJxIVsDtAJMM0q7qTG5o g9DtApqQR8lWIOmDxj9y5UxXGDaV+N0q3luucJhHTlgU2nZcjL5LJyE32hJa7A== From: Thomas Richard Subject: [PATCH 0/2] Fix no_console_suspend in the 8250_omap driver Date: Tue, 08 Oct 2024 11:34:15 +0200 Message-Id: <20241008-8250-omap-no-console-suspend-v1-0-e7f0365c02f0@bootlin.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAJf8BGcC/x3MwQrCMAwA0F8ZORtI241Vf0U8jDXTgCalQRHG/ t3i8V3eDs5N2OEy7ND4Iy6mHeE0wPpY9M4opRsixZFyOGOOE6G9lopquJq6PRn97ZW1YKA5Jco lzWGEXtTGm3z//fV2HD8GasSjbgAAAA== To: Nishanth Menon , Tero Kristo , Santosh Shilimkar , Ulf Hansson , Greg Kroah-Hartman , Jiri Slaby Cc: linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, u-kumar1@ti.com, tony@atomide.com, khilman@kernel.org, gregory.clement@bootlin.com, thomas.petazzoni@bootlin.com, theo.lebrun@bootlin.com, richard.genoud@bootlin.com, Thomas Richard X-Mailer: b4 0.14.1 X-GND-Sasl: thomas.richard@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241008_023500_438347_453CFD86 X-CRM114-Status: GOOD ( 10.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series fixes the no_console_suspend in the 8250_omap driver. A first implementation was introducted [1]. But it was recently reverted [2] because it causes a crash during suspend on the platforms that don't use PM domains. This series implements the proposal sent by Théo Lebrun and discussed with Kevin Hilman and Tony Lindgren in the thread [3]. This series was tested on a J7200 EVM board. Regards, Thomas [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=68e6939ea9ec3d6579eadeab16060339cdeaf940 [2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0863bffda1131fd2fa9c05b653ad9ee3d8db127e [3] https://lore.kernel.org/all/20231017130540.1149721-1-thomas.richard@bootlin.com/ Signed-off-by: Thomas Richard --- Thomas Richard (2): pmdomain: ti-sci: set the GENPD_FLAG_ACTIVE_WAKEUP flag for all PM domains serial: 8250_omap: mark the serial as on the wakeup path if no_console_suspend drivers/pmdomain/ti/ti_sci_pm_domains.c | 1 + drivers/tty/serial/8250/8250_omap.c | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) --- base-commit: 6bf6745da1d37bc132690d96ef1455a62b0177cf change-id: 20240819-8250-omap-no-console-suspend-1073308d3714 Best regards,