@@ -550,7 +550,6 @@ static struct acpi_iort_node *iort_find_dev_node(struct device *dev)
550
550
node = iort_get_iort_node (dev -> fwnode );
551
551
if (node )
552
552
return node ;
553
-
554
553
/*
555
554
* if not, then it should be a platform device defined in
556
555
* DSDT/SSDT (with Named Component node in IORT)
@@ -641,13 +640,13 @@ static int __maybe_unused iort_find_its_base(u32 its_id, phys_addr_t *base)
641
640
/**
642
641
* iort_dev_find_its_id() - Find the ITS identifier for a device
643
642
* @dev: The device.
644
- * @req_id : Device's requester ID
643
+ * @id : Device's ID
645
644
* @idx: Index of the ITS identifier list.
646
645
* @its_id: ITS identifier.
647
646
*
648
647
* Returns: 0 on success, appropriate error value otherwise
649
648
*/
650
- static int iort_dev_find_its_id (struct device * dev , u32 req_id ,
649
+ static int iort_dev_find_its_id (struct device * dev , u32 id ,
651
650
unsigned int idx , int * its_id )
652
651
{
653
652
struct acpi_iort_its_group * its ;
@@ -657,7 +656,7 @@ static int iort_dev_find_its_id(struct device *dev, u32 req_id,
657
656
if (!node )
658
657
return - ENXIO ;
659
658
660
- node = iort_node_map_id (node , req_id , NULL , IORT_MSI_TYPE );
659
+ node = iort_node_map_id (node , id , NULL , IORT_MSI_TYPE );
661
660
if (!node )
662
661
return - ENXIO ;
663
662
@@ -680,19 +679,20 @@ static int iort_dev_find_its_id(struct device *dev, u32 req_id,
680
679
*
681
680
* Returns: the MSI domain for this device, NULL otherwise
682
681
*/
683
- struct irq_domain * iort_get_device_domain (struct device * dev , u32 req_id )
682
+ struct irq_domain * iort_get_device_domain (struct device * dev , u32 id ,
683
+ enum irq_domain_bus_token bus_token )
684
684
{
685
685
struct fwnode_handle * handle ;
686
686
int its_id ;
687
687
688
- if (iort_dev_find_its_id (dev , req_id , 0 , & its_id ))
688
+ if (iort_dev_find_its_id (dev , id , 0 , & its_id ))
689
689
return NULL ;
690
690
691
691
handle = iort_find_domain_token (its_id );
692
692
if (!handle )
693
693
return NULL ;
694
694
695
- return irq_find_matching_fwnode (handle , DOMAIN_BUS_PCI_MSI );
695
+ return irq_find_matching_fwnode (handle , bus_token );
696
696
}
697
697
698
698
static void iort_set_device_domain (struct device * dev ,
0 commit comments