Skip to contentSkip to conversation

firmware: fix typos in comments

PATCH Applied Hemanth Selam 5 participants 7 messages Sep 4 – Sep 6

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover firmware: fix typos in comments

This corrects 2 misspellings in comments. Each is a separate patch so that any one of them can be dropped without touching the rest.

Nothing outside comments changes. Every touched C file was checked by dropping its comments, replacing each string literal with a placeholder and collapsing whitespace; what remained was identical before and after, so the compiled code cannot differ.

The mistakes were found with scripts/checkpatch.pl against the list in scripts/spelling.txt. The scanning, the edits and the changelogs were produced with Cursor running the claude-opus-5 model, from a request to find and fix spelling mistakes across the tree, and every correction was then re-checked by the comparison described above. Words that name an identifier were left alone deliberately, even when they read as typos, because correcting the prose would make the comment disagree with the code it describes.

Tested by building x86_64 defconfig at v7.3-rc1-269-gbc35965f6940, which is clean. Nothing else was built, so any patch touching code that x86_64 defconfig does not compile has been read but not compiled.

Hemanth Selam (2):
firmware: fix typo "upto" in comments
perf: fix typo "binded" in comment

 drivers/firmware/ti_sci.c   | 4 ++--
 drivers/perf/dwc_pcie_pmu.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
Signature · 1 line
2.48.1
#1 lore raw

PATCH 1/2 firmware: fix typo "upto" in comments

Correct "upto" to "up to", reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.

Assisted-by Cursor:claude-opus-5
---
 drivers/firmware/ti_sci.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/firmware/ti_sci.c +2 -2
index cc747ab0237f..94104edba9a0 100644
@@ -4050,7 +4050,7 @@ static const struct ti_sci_desc ti_sci_pmmc_k2g_desc = {
 	.default_host_id = 2,
 	/* Conservative duration */
 	.max_rx_timeout_ms = 1000,
-	/* Limited by MBOX_TX_QUEUE_LEN. K2G can handle upto 128 messages! */
+	/* Limited by MBOX_TX_QUEUE_LEN. K2G can handle up to 128 messages! */
 	.max_msgs = 20,
 	.max_msg_size = 64,
 };
@@ -4060,7 +4060,7 @@ static const struct ti_sci_desc ti_sci_pmmc_am654_desc = {
 	.default_host_id = 12,
 	/* Conservative duration */
 	.max_rx_timeout_ms = 10000,
-	/* Limited by MBOX_TX_QUEUE_LEN. K2G can handle upto 128 messages! */
+	/* Limited by MBOX_TX_QUEUE_LEN. K2G can handle up to 128 messages! */
 	.max_msgs = 20,
 	.max_msg_size = 60,
 };
Signature · 1 line
2.48.1
#2 lore raw

Re: [PATCH 1/2] firmware: fix typo "upto" in comments

Quoted 4 lines · Hemanth Selam

Correct "upto" to "up to", reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.

Please fix subject line of patch

see rest of contributions
git log drivers/firmware/ti_sci.c

Quoted 28 lines
Assisted-by Cursor:claude-opus-5
---
 drivers/firmware/ti_sci.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/firmware/ti_sci.c +2 -2
index cc747ab0237f..94104edba9a0 100644
@@ -4050,7 +4050,7 @@ static const struct ti_sci_desc ti_sci_pmmc_k2g_desc = {
 	.default_host_id = 2,
 	/* Conservative duration */
 	.max_rx_timeout_ms = 1000,
-	/* Limited by MBOX_TX_QUEUE_LEN. K2G can handle upto 128 messages! */
+	/* Limited by MBOX_TX_QUEUE_LEN. K2G can handle up to 128 messages! */
 	.max_msgs = 20,
 	.max_msg_size = 64,
 };
@@ -4060,7 +4060,7 @@ static const struct ti_sci_desc ti_sci_pmmc_am654_desc = {
 	.default_host_id = 12,
 	/* Conservative duration */
 	.max_rx_timeout_ms = 10000,
-	/* Limited by MBOX_TX_QUEUE_LEN. K2G can handle upto 128 messages! */
+	/* Limited by MBOX_TX_QUEUE_LEN. K2G can handle up to 128 messages! */
 	.max_msgs = 20,
 	.max_msg_size = 60,
 };
#3 lore raw

PATCH 2/2 perf: fix typo "binded" in comment

In reply to Hemanth Selam

Correct "binded" to "bound", reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.

Assisted-by Cursor:claude-opus-5
---
 drivers/perf/dwc_pcie_pmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/perf/dwc_pcie_pmu.c +1 -1
index 6b9ed59de26e..e2435ccc04ca 100644
@@ -639,7 +639,7 @@ static void dwc_pcie_pmu_remove_cpuhp_instance(void *hotplug_node)
 }
 
 /*
- * Find the binded DES capability device info of a PCI device.
+ * Find the bound DES capability device info of a PCI device.
  * @pdev: The PCI device.
  */
 static struct dwc_pcie_dev_info *dwc_pcie_find_dev_info(struct pci_dev *pdev)
Signature · 1 line
2.48.1
#4 lore raw

Re: [PATCH 2/2] perf: fix typo "binded" in comment

Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 6 lines

Correct "binded" to "bound", reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.

Assisted-by Cursor:claude-opus-5

Sashiko has reviewed this patch and found no issues. It looks great!

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
maintainer Reviewed-by on v1 2/2
#5 lore raw

Re: [PATCH 2/2] perf: fix typo "binded" in comment

In reply to Hemanth Selam
Quoted 15 lines · Hemanth Selam

Correct "binded" to "bound", reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.

Assisted-by Cursor:claude-opus-5
---
  drivers/perf/dwc_pcie_pmu.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/perf/dwc_pcie_pmu.c +0 -0
index 6b9ed59de26e..e2435ccc04ca 100644

drivers/perf/dwc_pcie_pmu.c static void dwc_pcie_pmu_remove_cpuhp_instance(void *hotplug_node) · line 645

Quoted 8 lines
drivers/perf/dwc_pcie_pmu.c +1 -1
@@ -639,7 +639,7 @@ static void dwc_pcie_pmu_remove_cpuhp_instance(void *hotplug_node)
  }
 
  /*
- * Find the binded DES capability device info of a PCI device.
+ * Find the bound DES capability device info of a PCI device.
   * @pdev: The PCI device.
   */
  static struct dwc_pcie_dev_info *dwc_pcie_find_dev_info(struct pci_dev *pdev)

LGTM.

Thanks.
Shuai

maintainer Applied
#6 lore raw

Re: (subset) [PATCH 0/2] firmware: fix typos in comments

In reply to Hemanth Selam

Hi Hemanth Selam,

Quoted 9 lines · Hemanth Selam

This corrects 2 misspellings in comments. Each is a separate patch so that any one of them can be dropped without touching the rest.

Nothing outside comments changes. Every touched C file was checked by dropping its comments, replacing each string literal with a placeholder and collapsing whitespace; what remained was identical before and after, so the compiled code cannot differ.

[...]

Next time, please send the patches independently so that relevant maintainers can pick things up. I have also fixed the $subject to be more inline with existing commits.

I have applied the following to branch ti-drivers-soc-next on [1]. Thank you!

[1/2] firmware: fix typo "upto" in comments

      commit: 5c58f5e2d5a0088c3a8857a3d8fdea798782e1f9

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent up the chain during the next merge window (or sooner if it is a relevant bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/ti/linux.git

Signature · 4 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
https://ti.com/opensource