Skip to content

Commit 29a7020

Browse files
committed
Merge tag 'hisi-drivers-for-6.10' of https://github.com/hisilicon/linux-hisi into soc/drivers
HiSilicon driver updates for v6.10 - Add the check for obtaining complete port attribute in the HCCS driver - Replace MAILBOX dependency with PCC for the HCCS driver * tag 'hisi-drivers-for-6.10' of https://github.com/hisilicon/linux-hisi: soc: hisilicon: kunpeng_hccs: replace MAILBOX dependency with PCC soc: hisilicon: kunpeng_hccs: Add the check for obtaining complete port attribute Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]>
2 parents 7ec7695 + 95d6333 commit 29a7020

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

drivers/soc/hisilicon/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ menu "Hisilicon SoC drivers"
66
config KUNPENG_HCCS
77
tristate "HCCS driver on Kunpeng SoC"
88
depends on ACPI
9-
depends on MAILBOX
9+
depends on PCC
1010
depends on ARM64 || COMPILE_TEST
1111
help
1212
The Huawei Cache Coherence System (HCCS) is a multi-chip

drivers/soc/hisilicon/kunpeng_hccs.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,12 @@ static int hccs_get_all_port_attr(struct hccs_dev *hdev,
556556
start_id = rsp_head.next_id;
557557
}
558558

559+
if (left_buf_len != 0) {
560+
dev_err(hdev->dev, "failed to get the expected port number(%u) attribute.\n",
561+
size);
562+
return -EINVAL;
563+
}
564+
559565
return 0;
560566
}
561567

0 commit comments

Comments
 (0)