[PATCH v3 0/6] Add some features and bugfix for kunpeng_hccs

From: Huisong Li
Date: Wed Aug 28 2024 - 07:01:09 EST


This series is aimed to support the low power feature and add used
HCCS types sysfs. And fix some bugfix to harden codes by the way.

---
v3:
- add Reviewed-by: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>.
- drop 'none' string print according to Jonathan's suggestion.
- early return in hccs_wait_serdes_adapt_completed.
- fix commit log in patch[2/6], patch[3/6] and patch[5/6]

v2:
- remove "this patch" words in commit log suggested by Krzyszto.
- use for_each_set_bit to replace the cycle scanning all HCCS IP.
- add a patch to rename the 'lane_mode' to 'max_lane_num' to make it
easy to see.
- add doc description into the code patch.
- rename the name of the low power interface.
- adjust the increasing and decreasing lane interface description.
- do not create available_inc_dec_lane_types when no HCCS type support
low power.
---

Huisong Li (6):
soc: hisilicon: kunpeng_hccs: Fix a PCC typo
soc: hisilicon: kunpeng_hccs: Return failure on having not die or port
information
soc: hisilicon: kunpeng_hccs: Add the check for base address and size
of shared memory
soc: hisilicon: kunpeng_hccs: Fix the 'lane_mode' field name in port
info structure to 'max_lane_num'
soc: hisilicon: kunpeng_hccs: Add used HCCS types sysfs
soc: hisilicon: kunpeng_hccs: Support low power feature for the
specified HCCS type

.../sysfs-devices-platform-kunpeng_hccs | 45 ++
drivers/soc/hisilicon/Kconfig | 7 +-
drivers/soc/hisilicon/kunpeng_hccs.c | 514 +++++++++++++++++-
drivers/soc/hisilicon/kunpeng_hccs.h | 33 +-
4 files changed, 580 insertions(+), 19 deletions(-)

--
2.22.0