Skip to contentSkip to conversation

cxl: fix spelling mistakes

PATCH In review Randy Dunlap 4 participants 4 messages Jan 25, 2023 – Jan 26, 2023 CXL

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 cxl: fix spelling mistakes

Correct spelling mistakes (reported by codespell).

Cc Alison Schofield <[email protected]>
Cc Vishal Verma <[email protected]>
Cc Ira Weiny <[email protected]>
Cc Ben Widawsky <[email protected]>
Cc Dan Williams <[email protected]>

---
v2: add corrections for other source-code spelling errors (Alison)

 drivers/cxl/Kconfig       |    2 +-
 drivers/cxl/acpi.c        |    2 +-
 drivers/cxl/core/port.c   |    2 +-
 drivers/cxl/core/region.c |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
drivers/cxl/Kconfig +1 -1
diff -- a/drivers/cxl/Kconfig b/drivers/cxl/Kconfig
@@ -116,7 +116,7 @@ config CXL_REGION_INVALIDATION_TEST
 	depends on CXL_REGION
 	help
 	  CXL Region management and security operations potentially invalidate
-	  the content of CPU caches without notifiying those caches to
+	  the content of CPU caches without notifying those caches to
 	  invalidate the affected cachelines. The CXL Region driver attempts
 	  to invalidate caches when those events occur.  If that invalidation
 	  fails the region will fail to enable.  Reasons for cache
drivers/cxl/acpi.c +1 -1
diff -- a/drivers/cxl/acpi.c b/drivers/cxl/acpi.c
@@ -19,7 +19,7 @@ struct cxl_cxims_data {
 
 /*
  * Find a targets entry (n) in the host bridge interleave list.
- * CXL Specfication 3.0 Table 9-22
+ * CXL Specification 3.0 Table 9-22
  */
 static int cxl_xor_calc_n(u64 hpa, struct cxl_cxims_data *cximsd, int iw,
 			  int ig)
drivers/cxl/core/port.c +1 -1
diff -- a/drivers/cxl/core/port.c b/drivers/cxl/core/port.c
@@ -1137,7 +1137,7 @@ static struct cxl_port *find_cxl_port_at
 }
 
 /*
- * All users of grandparent() are using it to walk PCIe-like swich port
+ * All users of grandparent() are using it to walk PCIe-like switch port
  * hierarchy. A PCIe switch is comprised of a bridge device representing the
  * upstream switch port and N bridges representing downstream switch ports. When
  * bridges stack the grand-parent of a downstream switch port is another
drivers/cxl/core/region.c +1 -1
diff -- a/drivers/cxl/core/region.c b/drivers/cxl/core/region.c
@@ -399,7 +399,7 @@ static ssize_t interleave_granularity_st
 	 * When the host-bridge is interleaved, disallow region granularity !=
 	 * root granularity. Regions with a granularity less than the root
 	 * interleave result in needing multiple endpoints to support a single
-	 * slot in the interleave (possible to suport in the future). Regions
+	 * slot in the interleave (possible to support in the future). Regions
 	 * with a granularity greater than the root interleave result in invalid
 	 * DPA translations (invalid to support).
 	 */
maintainer Reviewed-by on v2 1/1
#1 lore raw
Quoted 11 lines · Randy Dunlap

Correct spelling mistakes (reported by codespell).

Cc Alison Schofield <[email protected]>
Cc Vishal Verma <[email protected]>
Cc Ira Weiny <[email protected]>
Cc Ben Widawsky <[email protected]>
Cc Dan Williams <[email protected]>

---
v2: add corrections for other source-code spelling errors (Alison)

Thanks Randy,

Quoted 55 lines
 drivers/cxl/Kconfig       |    2 +-
 drivers/cxl/acpi.c        |    2 +-
 drivers/cxl/core/port.c   |    2 +-
 drivers/cxl/core/region.c |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff -- a/drivers/cxl/Kconfig b/drivers/cxl/Kconfig

drivers/cxl/Kconfig +1 -1
@@ -116,7 +116,7 @@ config CXL_REGION_INVALIDATION_TEST
 	depends on CXL_REGION
 	help
 	  CXL Region management and security operations potentially invalidate
-	  the content of CPU caches without notifiying those caches to
+	  the content of CPU caches without notifying those caches to
 	  invalidate the affected cachelines. The CXL Region driver attempts
 	  to invalidate caches when those events occur.  If that invalidation
 	  fails the region will fail to enable.  Reasons for cache

diff -- a/drivers/cxl/acpi.c b/drivers/cxl/acpi.c

drivers/cxl/acpi.c +1 -1
@@ -19,7 +19,7 @@ struct cxl_cxims_data {
 
 /*
  * Find a targets entry (n) in the host bridge interleave list.
- * CXL Specfication 3.0 Table 9-22
+ * CXL Specification 3.0 Table 9-22
  */
 static int cxl_xor_calc_n(u64 hpa, struct cxl_cxims_data *cximsd, int iw,
 			  int ig)

diff -- a/drivers/cxl/core/port.c b/drivers/cxl/core/port.c

drivers/cxl/core/port.c +1 -1
@@ -1137,7 +1137,7 @@ static struct cxl_port *find_cxl_port_at
 }
 
 /*
- * All users of grandparent() are using it to walk PCIe-like swich port
+ * All users of grandparent() are using it to walk PCIe-like switch port
  * hierarchy. A PCIe switch is comprised of a bridge device representing the
  * upstream switch port and N bridges representing downstream switch ports. When
  * bridges stack the grand-parent of a downstream switch port is another

diff -- a/drivers/cxl/core/region.c b/drivers/cxl/core/region.c

drivers/cxl/core/region.c +1 -1
@@ -399,7 +399,7 @@ static ssize_t interleave_granularity_st
 	 * When the host-bridge is interleaved, disallow region granularity !=
 	 * root granularity. Regions with a granularity less than the root
 	 * interleave result in needing multiple endpoints to support a single
-	 * slot in the interleave (possible to suport in the future). Regions
+	 * slot in the interleave (possible to support in the future). Regions
 	 * with a granularity greater than the root interleave result in invalid
 	 * DPA translations (invalid to support).
 	 */
maintainer Reviewed-by on v2 1/1
#2 lore raw
In reply to Randy Dunlap
Quoted 9 lines · Randy Dunlap

Correct spelling mistakes (reported by codespell).

Cc Alison Schofield <[email protected]>
Cc Vishal Verma <[email protected]>
Cc Ira Weiny <[email protected]>
Cc Ben Widawsky <[email protected]>
Cc Dan Williams <[email protected]>
Quoted 8 lines

---
v2: add corrections for other source-code spelling errors (Alison)

 drivers/cxl/Kconfig       |    2 +-
 drivers/cxl/acpi.c        |    2 +-
 drivers/cxl/core/port.c   |    2 +-
 drivers/cxl/core/region.c |    2 +-

 4 files changed, 4 insertions(+), 4 deletions(-)

Looks good,

Quoted 49 lines

diff -- a/drivers/cxl/Kconfig b/drivers/cxl/Kconfig

drivers/cxl/Kconfig +0 -0
@@ -116,7 +116,7 @@ config CXL_REGION_INVALIDATION_TEST

        depends on CXL_REGION
        help
          CXL Region management and security operations potentially invalidate -         the content of CPU caches without notifiying those caches to +         the content of CPU caches without notifying those caches to invalidate the affected cachelines. The CXL Region driver attempts to invalidate caches when those events occur.  If that invalidation fails the region will fail to enable.  Reasons for cache diff -- a/drivers/cxl/acpi.c b/drivers/cxl/acpi.c

drivers/cxl/acpi.c +0 -0
@@ -19,7 +19,7 @@ struct cxl_cxims_data {


 /*
  * Find a targets entry (n) in the host bridge interleave list.
- * CXL Specfication 3.0 Table 9-22
+ * CXL Specification 3.0 Table 9-22
  */
 static int cxl_xor_calc_n(u64 hpa, struct cxl_cxims_data *cximsd, int iw, int ig)
diff -- a/drivers/cxl/core/port.c b/drivers/cxl/core/port.c

drivers/cxl/core/port.c +0 -0
@@ -1137,7 +1137,7 @@ static struct cxl_port *find_cxl_port_at
  }


 /*
- * All users of grandparent() are using it to walk PCIe-like swich port
+ * All users of grandparent() are using it to walk PCIe-like switch port
  * hierarchy. A PCIe switch is comprised of a bridge device representing the
  * upstream switch port and N bridges representing downstream switch ports. When
  * bridges stack the grand-parent of a downstream switch port is another diff -- a/drivers/cxl/core/region.c b/drivers/cxl/core/region.c

drivers/cxl/core/region.c +1 -1
@@ -399,7 +399,7 @@ static ssize_t interleave_granularity_st
          * When the host-bridge is interleaved, disallow region granularity !=
          * root granularity. Regions with a granularity less than the root
          * interleave result in needing multiple endpoints to support a single
-        * slot in the interleave (possible to suport in the future). Regions
+        * slot in the interleave (possible to support in the future). Regions
          * with a granularity greater than the root interleave result in invalid
          * DPA translations (invalid to support).
          */
#3 lore raw
In reply to Randy Dunlap
Quoted 11 lines · Randy Dunlap

Correct spelling mistakes (reported by codespell).

Cc Alison Schofield <[email protected]>
Cc Vishal Verma <[email protected]>
Cc Ira Weiny <[email protected]>
Cc Ben Widawsky <[email protected]>
Cc Dan Williams <[email protected]>

---
v2: add corrections for other source-code spelling errors (Alison)

Applied for 6.3, thanks Randy!