@@ -178,8 +178,8 @@ static int rcar_pcie_config_access(struct rcar_pcie_host *host,
178178 * space, it's generally only accessible when in endpoint mode.
179179 * When in root complex mode, the controller is unable to target
180180 * itself with either type 0 or type 1 accesses, and indeed, any
181- * controller initiated target transfer to its own config space
182- * result in a completer abort.
181+ * controller- initiated target transfer to its own config space
182+ * results in a completer abort.
183183 *
184184 * Each channel effectively only supports a single device, but as
185185 * the same channel <-> device access works for any PCI_SLOT()
@@ -775,7 +775,7 @@ static int rcar_pcie_enable_msi(struct rcar_pcie_host *host)
775775 if (err )
776776 return err ;
777777
778- /* Two irqs are for MSI, but they are also used for non-MSI irqs */
778+ /* Two IRQs are for MSI, but they are also used for non-MSI IRQs */
779779 err = devm_request_irq (dev , msi -> irq1 , rcar_pcie_msi_irq ,
780780 IRQF_SHARED | IRQF_NO_THREAD ,
781781 rcar_msi_bottom_chip .name , host );
@@ -792,7 +792,7 @@ static int rcar_pcie_enable_msi(struct rcar_pcie_host *host)
792792 goto err ;
793793 }
794794
795- /* disable all MSIs */
795+ /* Disable all MSIs */
796796 rcar_pci_write_reg (pcie , 0 , PCIEMSIIER );
797797
798798 /*
@@ -892,6 +892,7 @@ static int rcar_pcie_inbound_ranges(struct rcar_pcie *pcie,
892892 dev_err (pcie -> dev , "Failed to map inbound regions!\n" );
893893 return - EINVAL ;
894894 }
895+
895896 /*
896897 * If the size of the range is larger than the alignment of
897898 * the start address, we have to use multiple entries to
@@ -903,6 +904,7 @@ static int rcar_pcie_inbound_ranges(struct rcar_pcie *pcie,
903904
904905 size = min (size , alignment );
905906 }
907+
906908 /* Hardware supports max 4GiB inbound region */
907909 size = min (size , 1ULL << 32 );
908910
0 commit comments