Message ID | 20230712034755.2676008-1-peng.fan@oss.nxp.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp895695vqm; Tue, 11 Jul 2023 21:02:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlHkaaA5aQoi5NB/D/6KFsNEL/chFleWNUwSguiW9Jg7Unuhr+jeSbKBJ5RlP72PfLa1/YFL X-Received: by 2002:a17:906:289:b0:991:bf04:2047 with SMTP id 9-20020a170906028900b00991bf042047mr17309440ejf.14.1689134522469; Tue, 11 Jul 2023 21:02:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689134522; cv=pass; d=google.com; s=arc-20160816; b=d93BuQrUS9PfUEOHjAOfVcGnYRX2TrjSEEIVfaidOUL7llPrNAhzVX+lkzSS7ExTBx R7bF9l7kOOTCqi7zsq0HKQEydlbW7QqHJLvItWLjrQ2E9lD+YoORjfHgCqLTf/mkbQMV belszlIF3DfA6dS7pnoLlTfbXAWmmyXV/59+3qA2Gzli0T6wrxOReJlZ42jjknU0E3xj rEnm7C+uoG7hJhvU1n8DUvjPndMSbYIat8OY6ac3xWQOdtujDvF+gGlgS2xTDKtme7DZ oyw3sxpMgXN779vr+w8GWCtqL29Odq3Gl4eqa8f9Qen9xTABc4dM3tBKrBxQU95j0xqQ yAAQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=eXzJm/9ejfx3vg4dkBqqSjxSiYzdYx3bO11i5yYL+8E=; fh=vyL3F4S2IAghST7zWaMVwgy+RcLiDYm67aKLCqaTD78=; b=xrtYIUctsDNZwL7/hCTWU03oa+S8cLup6dQ/k69OXltNTbjX5G3ZMygiFqHz+bvfWO woQkEdql89xa+iJrKuKVqb8h5uld50tPd5Kv4ssnDZBi6/j+0u6tSB2Qjg2q3pWtm4bf slRP4k7ZN3KppP9V9GtQ3BTG+AqIGaoVLFiXB3baSNVjKFLH7hnmpWQ/bbhtt6oql+4H WzwtvNE5LEKoZGBhZrK2OzTcqR/7nsDnhLnBbjTdQrBA2VWh5/yKl+IaXRIWe9TeKtjv FHI2ID8ud/zDplVSYVvNNlCyuf2mWcB1VGrarrzweNStgYf6IyvToVIRB/wtoUftPLko txDg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=VFVh9TOE; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o16-20020a17090608d000b00992f1a3b9c0si3404426eje.414.2023.07.11.21.01.39; Tue, 11 Jul 2023 21:02:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=VFVh9TOE; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231724AbjGLDnd (ORCPT <rfc822;gnulinuxfreebsd@gmail.com> + 99 others); Tue, 11 Jul 2023 23:43:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231592AbjGLDnZ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 11 Jul 2023 23:43:25 -0400 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2080.outbound.protection.outlook.com [40.107.7.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7363019A7 for <linux-kernel@vger.kernel.org>; Tue, 11 Jul 2023 20:43:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z3v/9MCjFlw8ocYz9i0SmMcbRaA74zJ2F1PNL+hHJSljQ3E0dtahkouVqjIJ2xY4U67+2W279YzNrIA45A5/pQ2VRY9AbWvFDnavE19/4wmkNhRhk/6RHqt5jCd8AMyIAxCJvLdW3NbhYdyQerryAOtE403+rsVCMdG+cBkc9O7xFJyzpAW/1+VN5l0b8xkYmG6bWvOwgILFmZJ/HE3mbL17tdBOitgkkQds6gl/Y6ZCm+zkMH/9HHIMd1bup8o/i8xq9/4ezhy5Wd7nac97MIV3uxKseHbWNid46LrZmZnZyhTUEqsp7Sbs249syuXfvGpTvtVeKvZd4CPMd8O1Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=eXzJm/9ejfx3vg4dkBqqSjxSiYzdYx3bO11i5yYL+8E=; b=d4UhaceA/5a3iZsbjLR1gRsQcJ/sC2ZR1KCnB8ajjdcjk6OfL/G8HFelXpU0e/tQYtp6o20mU6v0IcbsRGuOrcdHOJLEeepxRdSHt/5B4YMraGh3BmA6zYx7EAZwcrJcsP078Z38/fKGBTgtribeWCVFK2JRiHj0EbFOYhCuE7K5q557y4ysehBF3L2wcc4DZCF+Tld1l1vEi5Ppka0VhxHH4AcgY4Gt3oi5wiX2DM+QGkB/omNX1X97w6h1J8N0PHQCiRo4PDsV4POKkWWO2lH7zqxXEUZKZSco3q/SENbjhOT3ZdU0mrXvnML+hNTiYsRHjuaPdXI+nHoS5kxXOA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eXzJm/9ejfx3vg4dkBqqSjxSiYzdYx3bO11i5yYL+8E=; b=VFVh9TOEFLh8v5y/jFOuJd6eTi0pOXc7btcT+FpGoImyYUpSAiYM8bX2fFpx7wt5/58TnMnst0XGTUh9tiwwmP9Can5mbqZEC6fkkFXwkL40ehzf1EC/Xfnp+Lsxj3pkLBGITlJGqiIsoAshoImpslg86rG/C4V34CL6/LoX0xI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AM8PR04MB7890.eurprd04.prod.outlook.com (2603:10a6:20b:24e::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.31; Wed, 12 Jul 2023 03:43:10 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::5c40:ed07:b875:18c0]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::5c40:ed07:b875:18c0%3]) with mapi id 15.20.6588.017; Wed, 12 Jul 2023 03:43:09 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> To: jassisinghbrar@gmail.com, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Peng Fan <peng.fan@nxp.com>, Ranjani Vaidyanathan <ranjani.vaidyanathan@nxp.com> Subject: [PATCH] mailbox: imx: Add support for identifying SCU wakeup source from sysfs Date: Wed, 12 Jul 2023 11:47:55 +0800 Message-Id: <20230712034755.2676008-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR01CA0109.apcprd01.prod.exchangelabs.com (2603:1096:4:40::13) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|AM8PR04MB7890:EE_ X-MS-Office365-Filtering-Correlation-Id: bfd1a40a-37de-4223-4975-08db828a1c4f X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: i7WlAAcGjTRNSxB5ShDxQ7PUwQAs51MDmDjwNkHpL0EVQYTzgAdpaXi8+GfEAEa/Km+ePW0UVtMnOmXE8+8SCauzIFtQ5B86/75s/Fm5zt1N+07qsOTF/nZQ2FT3wB6aFEw6lOK8M8Ds5G7dl2Kz3gzMOTiDc+0XDMBQnwcB2sy/y97QcveLaVXMUK6nq3uXJHy4cTIku4pMUVwrJo0w73LIjN6EKE173yUbjWrBowIqpv4Dqdd3LvRAnDxAloSmb64UNfLw0vyL2igFeuAx1W7dFD+PCLwBawJoXVJxwaREtDJ615q2LEVLX9F3AnfcxZ+lDdeAjhDL34EEzY1M4HYPtSUhZ/tbi/Z+B0yE+Fcbt35WLllueoFG6iIuq9glVJbj/fyuAWv3A745mxS3SD2zHpU5KoJgzuVvGDYY+XjVdm0x8nhtVnPW7oy2LlfSSuFcL0H/wdte8Pmi0t9OqbZV/R2hh3dVOIDId7fofGnbJEwi2HSQObhUqUP32hWb22m98jt2+AzXz4SCrhRoEL5RtKBH8cgjiKg6S+099f1SmB7Njlc9zSezIuTiOn6kDeh1juU8GZuE6NCwyZyGVsNEiB3gWT+SNp5u9Qb/RmsOIK1maKLTj6MQQCQJLU2I X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(346002)(39860400002)(376002)(366004)(136003)(396003)(451199021)(5660300002)(316002)(15650500001)(41300700001)(8936002)(66946007)(2906002)(66476007)(4326008)(66556008)(6666004)(8676002)(6486002)(6512007)(52116002)(54906003)(6506007)(1076003)(26005)(83380400001)(186003)(4744005)(2616005)(38350700002)(38100700002)(478600001)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: PncPeLXrRdwpGfWkevjHFuT8EwqGtduQXU5AfafP/2wGuB5zqzHqqQT0wyGgG1bqenHshT4oLe3uPnJfW/6gfzOWn9fdJXjW/bTwb6nviX2gIz82vCt1A/Yx9sSRPIEwk0GwALNQsucAq1Uoy1ITt2jZmSi4ccChJd6IEtySOjiogYolzVojkabbtisMrh/HpqbxnGDP5hTrhZu8Rok2RYLvZPCZqXS73NQvRtaB2dPqElUMI8wLUMOipkk5pZNSkBYCB/54MXbyYR2Y6TpiJ7bHMqNRK5mnLJb61vNp7zFH51AdrqZcr0zEFF5EvPH54clinuWSyCPA2fSDUtJ/1PcIqFM2oaWEQyp0qlkMCqCSWYCmWAthQEBhWJVlWMeDbMu5NsSE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L/GlJ3Kbr1Uc8DYAieda9NBRx9gvxlGOC74T0e4WkiscACInSgtJoYwRb0C4BQtTeQ5R8Jy3e5IirwqWEi/yMYQcKWt8Cw92tKNRJGhhcNexLtMHw2EvgeSc X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: bfd1a40a-37de-4223-4975-08db828a1c4f X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2023 03:43:09.9186 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: O6goESGeY9htAWA0ghDQlKyp4VSxu0Ru+/lFiI+5CuHTkb7AmXKztow/swwWaLn3b7efUAua/ya65YM7R/ixMg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7890 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771185921116816400 X-GMAIL-MSGID: 1771185921116816400 |
Series |
mailbox: imx: Add support for identifying SCU wakeup source from sysfs
|
|
Commit Message
Peng Fan (OSS)
July 12, 2023, 3:47 a.m. UTC
From: Peng Fan <peng.fan@nxp.com> Record SCU wakeup interrupt in /sys/power/pm_wakeup_irq by using pm_system_wakeup_irq Signed-off-by: Ranjani Vaidyanathan <ranjani.vaidyanathan@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com> --- drivers/mailbox/imx-mailbox.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/mailbox/imx-mailbox.c b/drivers/mailbox/imx-mailbox.c index 20f2ec880ad6..0719b9cfba97 100644 --- a/drivers/mailbox/imx-mailbox.c +++ b/drivers/mailbox/imx-mailbox.c @@ -531,8 +531,12 @@ static irqreturn_t imx_mu_isr(int irq, void *p) return IRQ_NONE; } - if (priv->suspend) - pm_system_wakeup(); + if (priv->suspend) { + if (priv->dcfg->type & IMX_MU_V2_IRQ) + pm_system_wakeup(); + else + pm_system_irq_wakeup(priv->irq[0]); + } return IRQ_HANDLED; }