Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion drivers/iommu/apple-dart-cio.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,8 @@ static bool apple_dart_cio_atc_port(struct apple_dart *dart)
{
struct device_node *parent = dart->dev->of_node->parent;

return parent && of_machine_is_compatible("apple,j714s") &&
return parent && (of_machine_is_compatible("apple,j714s") ||
of_machine_is_compatible("apple,j716c")) &&
(of_device_is_compatible(parent, "apple,t6050-usb4-acio") ||
of_node_name_prefix(parent, "pcie-tunnel-"));
}
Expand Down
5 changes: 4 additions & 1 deletion drivers/iommu/apple-dart-v27-admission.inc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/* Track real clients from probe; lease acquisition still validates every owner. */
static bool apple_dart_v27_provider(struct device *dev, resource_size_t base)
{
static const resource_size_t ids[] = {
Expand All @@ -9,7 +10,9 @@ static bool apple_dart_v27_provider(struct device *dev, resource_size_t base)
unsigned int i;

if (!IS_ENABLED(CONFIG_APPLE_SOC_SLEEP) ||
!of_machine_is_compatible("apple,j714s") ||
!(of_machine_is_compatible("apple,j714s") ||
(of_machine_is_compatible("apple,j716c") &&
of_machine_is_compatible("apple,t6050"))) ||
!of_device_is_compatible(dev->of_node, "apple,t6050-dart"))
return false;
for (i = 0; i < ARRAY_SIZE(ids); i++)
Expand Down
Loading