From: Kumaravel Thiagarajan <kumaravel.thiagarajan@microchip.com>
To: <linux-kernel@vger.kernel.org>, <linux-gpio@vger.kernel.org>
Cc: <arnd@arndb.de>, <gregkh@linuxfoundation.org>,
<kumaravel.thiagarajan@microchip.com>,
<tharunkumar.pasumarthi@microchip.com>,
<UNGLinuxDriver@microchip.com>, <michael@walle.cc>
Subject: [PATCH RESEND v13 char-misc-next 0/2] Add OTP/EEPROM functionality to the PCI1XXXX switch
Date: Sat, 1 Jul 2023 12:38:17 +0530 [thread overview]
Message-ID: <20230701070819.3992094-1-kumaravel.thiagarajan@microchip.com> (raw)
From: "Vaibhaav Ram T.L" <vaibhaavram.tl@microchip.com>
Microchip's pci1xxxx is an unmanaged PCIe3.1a switch for consumer,
industrial, and automotive applications. This switch integrates OTP and
EEPROM to enable customization of the part in the field. This patch adds
OTP/EEPROM functionality to the pci1xxxx switch.
---
v12 -> v13:
- Moved release_sys_lock() from patch#2 to patch#1
v11 -> v12:
- EEPROM is registered for NVMEM only if EEPROM is responsive
v10 -> v11:
- Fixed error handling during timouts by releasing sys_locks
v9 -> v10:
- Removed unused include header files
- Removed null check for priv pointer
- Removed debug messages
- Returned error during timeouts
- Added corner case checks for offset and count values
v8 -> v9:
- Changed architecture from sysfs bin interface to NVMEM interface
v7 -> v8:
- Fixed error handling in probe function of mchp_pci1xxxx_gp driver
- Added bin attribute groups to eliminate userspace from racing
- Implemented short read and write for OTP/EEPROM
v6 -> v7:
- Handled corner cases such as failure of sysfs bin creation and removal
- Added function to check whether device is responsive
- Removed un-necessary parenthesis
- Added function for repetitive tasks
v5 -> v6:
- Changed architecture from Block interface to sysfs interface
- Replaced busy loops with read_poll_timeout()
v4 -> v5:
- Used proper errno
- Removed un-necessary prints
v3 -> v4:
- Remove extra space, tab, un-necessary casting, paranthesis,
do while(false) loops
- Used read_poll_timeout for polling BUSY_BIT
v2 -> v3:
- Modified commit description to include build issues reported by Kernel
test robot <lkp@intel.com> which are fixed in this patch
v1 -> v2:
- Resolve build issue reported by kernel test robot <lkp@intel.com>
Kumaravel Thiagarajan (2):
misc: microchip: pci1xxxx: Add support to read and write into PCI1XXXX
OTP via NVMEM sysfs
misc: microchip: pci1xxxx: Add support to read and write into PCI1XXXX
EEPROM via NVMEM sysfs
MAINTAINERS | 2 +
drivers/misc/mchp_pci1xxxx/Kconfig | 1 +
drivers/misc/mchp_pci1xxxx/Makefile | 2 +-
.../misc/mchp_pci1xxxx/mchp_pci1xxxx_otpe2p.c | 443 ++++++++++++++++++
4 files changed, 447 insertions(+), 1 deletion(-)
create mode 100644 drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_otpe2p.c
--
2.34.1
next reply other threads:[~2023-07-01 7:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-01 7:08 Kumaravel Thiagarajan [this message]
2023-07-01 7:08 ` [PATCH RESEND v13 char-misc-next 1/2] misc: microchip: pci1xxxx: Add support to read and write into PCI1XXXX OTP via NVMEM sysfs Kumaravel Thiagarajan
2023-07-01 7:08 ` [PATCH RESEND v13 char-misc-next 2/2] misc: microchip: pci1xxxx: Add support to read and write into PCI1XXXX EEPROM " Kumaravel Thiagarajan
[not found] <20230620143520.858-1-vaibhaavram.tl@microchip.com>
2023-06-23 8:31 ` [PATCH RESEND v13 char-misc-next 0/2] Add OTP/EEPROM functionality to the PCI1XXXX switch Greg KH
2023-07-01 7:08 ` VaibhaavRam.TL
2023-07-01 7:18 ` Greg KH
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=20230701070819.3992094-1-kumaravel.thiagarajan@microchip.com \
--to=kumaravel.thiagarajan@microchip.com \
--cc=UNGLinuxDriver@microchip.com \
--cc=arnd@arndb.de \
--cc=gregkh@linuxfoundation.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michael@walle.cc \
--cc=tharunkumar.pasumarthi@microchip.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;
as well as URLs for NNTP newsgroup(s).