mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Abhijit Gangurde <abhijit.gangurde@amd.com>
To: <gregkh@linuxfoundation.org>, <masahiroy@kernel.org>,
	<linux-kernel@vger.kernel.org>
Cc: <Nipun.Gupta@amd.com>, <nikhil.agarwal@amd.com>,
	<puneet.gupta@amd.com>, <git@amd.com>, <michal.simek@amd.com>,
	Abhijit Gangurde <abhijit.gangurde@amd.com>
Subject: [PATCH v5 0/5] cdx: provide sysfs interface for cdx device resources
Date: Fri, 22 Sep 2023 15:48:23 +0530	[thread overview]
Message-ID: <20230922101828.33456-1-abhijit.gangurde@amd.com> (raw)

This patch series provides sysfs interface to
 - enable and disable of cdx bus
 - reset all the devices on cdx bus
 - subsystem, class and revision for cdx device

Changes in v5:
 - Rebased on Linux 6.6

Changes in v4:
 - Make ida as static
 - Imrpove commit message
 - Add sparse markings for the lock.

Changes in v3:
 - Remove local cdx controller list from cdx bus system and
   instead use platform bus to locate controller
 - Use ida to allocate unique id for registered controller

Changes in v2:
 - Introduce lock to protect controller ops
 - Split sysfs entry enable to enable and disable
 - sysfs entry enable and disable take bus number as an argument
 - sysfs entry reset takes bus number as an argument

Abhijit Gangurde (5):
  cdx: Remove cdx controller list from cdx bus system
  cdx: Introduce lock to protect controller ops
  cdx: add support for bus enable and disable
  cdx: add sysfs for bus reset
  cdx: add sysfs for subsystem, class and revision

 Documentation/ABI/testing/sysfs-bus-cdx |  87 ++++++++++
 drivers/cdx/cdx.c                       | 218 ++++++++++++++++++++++--
 drivers/cdx/cdx.h                       |   8 +
 drivers/cdx/controller/cdx_controller.c |  50 ++++++
 drivers/cdx/controller/mc_cdx_pcol.h    |  54 ++++++
 drivers/cdx/controller/mcdi_functions.c |  31 ++++
 drivers/cdx/controller/mcdi_functions.h |  18 ++
 include/linux/cdx/cdx_bus.h             |  41 ++++-
 include/linux/mod_devicetable.h         |  10 ++
 scripts/mod/devicetable-offsets.c       |   4 +
 scripts/mod/file2alias.c                |   8 +
 11 files changed, 513 insertions(+), 16 deletions(-)

-- 
2.25.1


             reply	other threads:[~2023-09-22 10:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-22 10:18 Abhijit Gangurde [this message]
2023-09-22 10:18 ` [PATCH v5 1/5] cdx: Remove cdx controller list from cdx bus system Abhijit Gangurde
2023-09-22 10:18 ` [PATCH v5 2/5] cdx: Introduce lock to protect controller ops Abhijit Gangurde
2023-09-22 10:18 ` [PATCH v5 3/5] cdx: add support for bus enable and disable Abhijit Gangurde
2023-09-26 10:05   ` Greg KH
2023-10-05 11:30     ` Gangurde, Abhijit
2023-09-22 10:18 ` [PATCH v5 4/5] cdx: add sysfs for bus reset Abhijit Gangurde
2023-09-22 10:18 ` [PATCH v5 5/5] cdx: add sysfs for subsystem, class and revision Abhijit Gangurde

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230922101828.33456-1-abhijit.gangurde@amd.com \
    --to=abhijit.gangurde@amd.com \
    --cc=Nipun.Gupta@amd.com \
    --cc=git@amd.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=masahiroy@kernel.org \
    --cc=michal.simek@amd.com \
    --cc=nikhil.agarwal@amd.com \
    --cc=puneet.gupta@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®