From patchwork Fri Jun 10 08:58:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Minghao Xue X-Patchwork-Id: 580846 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 29DB8C433EF for ; Fri, 10 Jun 2022 08:59:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347673AbiFJI67 (ORCPT ); Fri, 10 Jun 2022 04:58:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344194AbiFJI65 (ORCPT ); Fri, 10 Jun 2022 04:58:57 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D0B72FE58; Fri, 10 Jun 2022 01:58:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1654851535; x=1686387535; h=from:to:cc:subject:date:message-id:mime-version; bh=HKg9Wlwj2ESBBVWPm24HfM+TeEHSYVCZhAB8J6dKuBc=; b=c/EEPku5eIAM2M/9LvoR+Wu/WJkc9f8hUwTPDSDKosjNseyqLZnlv0v0 KaDQBjAEPv+A2uQquv0g/sTx1+ZT+IZFYUH9zv3UsF7TqELZWfAusjb8y 4VIUZAmKTB87v3h6+M2UWeCB64NON2pdNGvI5+35xCg2vIpOVkrEM493d s=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-02.qualcomm.com with ESMTP; 10 Jun 2022 01:58:54 -0700 X-QCInternal: smtphost Received: from unknown (HELO nasanex01a.na.qualcomm.com) ([10.52.223.231]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jun 2022 01:58:54 -0700 Received: from mingxue-gv.qualcomm.com (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Fri, 10 Jun 2022 01:58:52 -0700 From: Minghao Xue To: "Michael S. Tsirkin" , Jason Wang , Rob Herring CC: Minghao Xue , Jean-Philippe Brucker , , , , Subject: [PATCH v2 0/2] virtio_mmio: add support to set IRQ of a virtio device as wakeup source Date: Fri, 10 Jun 2022 16:58:25 +0800 Message-ID: <1654851507-13891-1-git-send-email-quic_mingxue@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01a.na.qualcomm.com (10.52.223.231) Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hi, Some systems want to set the interrupt of virtio_mmio device as a wakeup source of system. This patch series add support for such use case. And it can be enbaled by adding "wakeup-source" property to the device tree. Patch 1: Add an optional "wakeup-source" property into binding file of virtio_mmio device. Patch 2: Set IRQ of virtio_mmio device as wakeup source in virtqueue initialization, if "wakeup-source" is set in the device tree. Version 2 changes (mostly feedback from Krzysztof Kozlowski) -rename property from "virtio,wakeup" to "wakeup-source" Minghao Xue (2): dt-bindings: virtio: mmio: add optional wakeup-source property virtio_mmio: add support to set IRQ of a virtio device as wakeup source Documentation/devicetree/bindings/virtio/mmio.yaml | 4 ++++ drivers/virtio/virtio_mmio.c | 3 +++ 2 files changed, 7 insertions(+)