From patchwork Wed Jun 16 11:59:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 12324919 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B8C5C49EA2 for ; Wed, 16 Jun 2021 11:59:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5636F61369 for ; Wed, 16 Jun 2021 11:59:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232707AbhFPMBs (ORCPT ); Wed, 16 Jun 2021 08:01:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232698AbhFPMBs (ORCPT ); Wed, 16 Jun 2021 08:01:48 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26726C061760 for ; Wed, 16 Jun 2021 04:59:42 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id k7so1555875pjf.5 for ; Wed, 16 Jun 2021 04:59:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wBFNGODi4+IQZGSkhLMjEMWhaFVciA1BV9abExcmheI=; b=Khp/5VHWa9RO+Wv7fXDuVuUHvHBwiwNGRZmzlW0BVGyur+iYObfepoK7JVKOjyhhqK 1liRueu15843s+cBrpr9AIC7eBS5jJaaQzhwpeDtVkpJISmRww/J2+JtJmFBPu8XI6OT jljlMIefrZtXMeMuKL6enxsT5naz0GNMkOgTDxJ1WHnvvrhevS2hH2WP9tbUNfNnxTxO ZJmAbh0PkkKAl6prklr3696vvLJn+7wW3ed8j9d7cGk1lMR+ghvItUcEzSC2EmCKktVb IG67IUTR67H/RCOEdVv589NAt8WVXe12kVfa7j9e9OCkPLGbL1oMqQD8R/oZBjWQc+sC lOdg== 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=wBFNGODi4+IQZGSkhLMjEMWhaFVciA1BV9abExcmheI=; b=etYbUqVs5BKB/mlXJMrXnoTkA/Eqns32z1a+6tTSdE32/RmiZIbyzHcOtdO5M+JkBE kmjadxP51o8gXI4OGOVg/S8G5OuN2QbblVwKilStEvFqCDoEtFUJH5BtIUgp75ItY2X/ 3UCLKqBFDzrc1zxmhA4uh4/o7UuM4RribpiQ7PP8qookuxou7A6Yu5aZ3MLk1OiE0b6x AuNcn+nVH9BFIgA+027LS+mydKqanv3ZfDCSm3rIfgo2SEbB05jxgy/iHHoljYJIIjMw HyxBK03Yl0aov/+7GqeAzkdSaqUMORnppXHQVstQyIvwbOYlFLaVGOP+AtyefYAGMeXZ VUeA== X-Gm-Message-State: AOAM531I0/BMwePfjkrCWgV0LZpCMuMmuRq9DklE0+mlFno9vTC8oFCd pqZsGKdN+AX8F1hsD9tVsS80Qbl4/+gA X-Google-Smtp-Source: ABdhPJwi0GaP3yeBK8KzC6uunAjY9rDzvOjgYtYyY+E40CjNcgzGyiD9yA2rielnzWhE4vDL3d4jow== X-Received: by 2002:a17:90b:190a:: with SMTP id mp10mr10622022pjb.145.1623844781604; Wed, 16 Jun 2021 04:59:41 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:280:c67a:95b5:d877:b175:798e]) by smtp.gmail.com with ESMTPSA id m1sm2307646pjk.35.2021.06.16.04.59.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Jun 2021 04:59:41 -0700 (PDT) From: Manivannan Sadhasivam To: kishon@ti.com, lorenzo.pieralisi@arm.com, bhelgaas@google.com Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, hemantk@codeaurora.org, smohanad@codeaurora.org, Manivannan Sadhasivam Subject: [PATCH 0/5] PCI: endpoint: Add support for additional notifiers Date: Wed, 16 Jun 2021 17:29:08 +0530 Message-Id: <20210616115913.138778-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Hello, This series adds support for additional notifiers in the PCI endpoint framework. The notifiers LINK_DOWN, BME, PME, and D_STATE are generic for all PCI endpoints but there is also a custom notifier (CUSTOM) added to pass the device/vendor specific events to EPF from EPC. The example usage of all notifiers is provided in the commit description. Thanks, Mani Manivannan Sadhasivam (5): PCI: endpoint: Add linkdown notifier support PCI: endpoint: Add BME notifier support PCI: endpoint: Add PME notifier support PCI: endpoint: Add D_STATE notifier support PCI: endpoint: Add custom notifier support drivers/pci/endpoint/pci-epc-core.c | 89 +++++++++++++++++++++++++++++ include/linux/pci-epc.h | 5 ++ include/linux/pci-epf.h | 5 ++ 3 files changed, 99 insertions(+)