summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxiongweimin <xiongweimin@kylinos.cn>2026-07-14 10:44:45 +0800
committerWill Deacon <will@kernel.org>2026-07-22 12:31:31 +0000
commit57bd32b2affb1b7a2ef9e7002e14a6090b990f94 (patch)
tree0a0197c95fc2227039a7f581746ff72b761b7015
parentfef725df406129f638f112dcd1de05d7abeafa66 (diff)
iommu/amd: Fix grammar and typos in comments
Correct possessive "its", article before acpihid, and a couple of mangled sentences in IOMMU flush/irq comments. Signed-off-by: xiongweimin <xiongweimin@kylinos.cn> Reviewed-by: Ankit Soni <Ankit.Soni@amd.com> Signed-off-by: Will Deacon <will@kernel.org>
-rw-r--r--drivers/iommu/amd/iommu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/iommu/amd/iommu.c b/drivers/iommu/amd/iommu.c
index 563f9c2672d5..824a585dfc03 100644
--- a/drivers/iommu/amd/iommu.c
+++ b/drivers/iommu/amd/iommu.c
@@ -456,7 +456,7 @@ static void clone_aliases(struct amd_iommu *iommu, struct device *dev)
/*
* The IVRS alias stored in the alias table may not be
- * part of the PCI DMA aliases if it's bus differs
+ * part of the PCI DMA aliases if its bus differs
* from the original device.
*/
clone_alias(pdev, iommu->pci_seg->alias_table[pci_dev_id(pdev)], pdev);
@@ -505,7 +505,7 @@ static struct iommu_dev_data *find_dev_data(struct amd_iommu *iommu, u16 devid)
}
/*
-* Find or create an IOMMU group for a acpihid device.
+* Find or create an IOMMU group for an acpihid device.
*/
static struct iommu_group *acpihid_device_group(struct device *dev)
{
@@ -1268,7 +1268,7 @@ static void build_inv_dte(struct iommu_cmd *cmd, u16 devid)
/*
* Builds an invalidation address which is suitable for one page or multiple
- * pages. Sets the size bit (S) as needed is more than one page is flushed.
+ * pages. Sets the size bit (S) as needed if more than one page is flushed.
*/
static inline u64 build_inv_address(u64 address, u64 last)
{
@@ -3687,7 +3687,7 @@ static void fill_msi_msg(struct msi_msg *msg, u32 index)
/*
* The struct msi_msg.dest_mode_logical is used to set the DM bit
* in MSI Message Address Register. For device w/ 2K int-remap support,
- * this is bit must be set to 1 regardless of the actual destination
+ * this bit must be set to 1 regardless of the actual destination
* mode, which is signified by the IRTE[DM].
*/
if (FEATURE_NUM_INT_REMAP_SUP_2K(amd_iommu_efr2))