Skip to contentSkip to conversation

hw/ssi/sifive_spi.c: spelling: reigster

PATCH Applied Michael Tokarev 6 participants 6 messages Nov 5, 2022 – Jan 16, 2023 SiFive drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/ssi/sifive_spi.c: spelling: reigster

Fixes 0694dabe9763847f3010b54ab3ec7d367d2f0ff0
---
 hw/ssi/sifive_spi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/ssi/sifive_spi.c +1 -1
index 03540cf5ca..1b4a401ca1 100644
@@ -267,7 +267,7 @@ static void sifive_spi_write(void *opaque, hwaddr addr,
     case R_RXDATA:
     case R_IP:
         qemu_log_mask(LOG_GUEST_ERROR,
-                      "%s: invalid write to read-only reigster 0x%"
+                      "%s: invalid write to read-only register 0x%"
                       HWADDR_PRIx " with 0x%x\n", __func__, addr << 2, value);
         break;
 
Signature · 1 line
2.30.2
Reviewed-by Stefan Weil on v1 1/1
#1 lore raw

Am 05.11.22 um 12:53 schrieb Michael Tokarev:

Quoted 11 lines
Fixes 0694dabe9763847f3010b54ab3ec7d367d2f0ff0
---
  hw/ssi/sifive_spi.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
hw/ssi/sifive_spi.c +0 -0
index 03540cf5ca..1b4a401ca1 100644

hw/ssi/sifive_spi.c static void sifive_spi_write(void *opaque, hwaddr addr, · line 273

Quoted 8 lines
hw/ssi/sifive_spi.c +1 -1
@@ -267,7 +267,7 @@ static void sifive_spi_write(void *opaque, hwaddr addr,
      case R_RXDATA:
      case R_IP:
          qemu_log_mask(LOG_GUEST_ERROR,
-                      "%s: invalid write to read-only reigster 0x%"
+                      "%s: invalid write to read-only register 0x%"
                        HWADDR_PRIx " with 0x%x\n", __func__, addr << 2, value);
          break;
 
Reviewed-by on v1 1/1
#2 lore raw
In reply to Michael Tokarev
Quoted 3 lines · Michael Tokarev
Fixes 0694dabe9763847f3010b54ab3ec7d367d2f0ff0

Alistair

Quoted 21 lines
---
 hw/ssi/sifive_spi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/ssi/sifive_spi.c +1 -2
index 03540cf5ca..1b4a401ca1 100644
@@ -267,7 +267,7 @@ static void sifive_spi_write(void *opaque, hwaddr addr,
     case R_RXDATA:
     case R_IP:
         qemu_log_mask(LOG_GUEST_ERROR,
-                      "%s: invalid write to read-only reigster 0x%"
+                      "%s: invalid write to read-only register 0x%"
                       HWADDR_PRIx " with 0x%x\n", __func__, addr << 2, value);
         break;
 
--

2.30.2

Reviewed-by Acked-by on v1 1/1
#3 lore raw
In reply to Michael Tokarev
Quoted 1 line · On Sat, 05 Nov 2022 04:53:29 PDT (-0700), [email protected] wrote:
Fixes 0694dabe9763847f3010b54ab3ec7d367d2f0ff0

Not sure if I missed something in QEMU land, but those are usually listed more like

Fixes 0694dabe97 ("hw/ssi: Add SiFive SPI controller support")

Checkpatch isn't failing, though. Either way

Thanks!

Quoted 17 lines
---
 hw/ssi/sifive_spi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/ssi/sifive_spi.c +1 -1
index 03540cf5ca..1b4a401ca1 100644
@@ -267,7 +267,7 @@ static void sifive_spi_write(void *opaque, hwaddr addr,
     case R_RXDATA:
     case R_IP:
         qemu_log_mask(LOG_GUEST_ERROR,
-                      "%s: invalid write to read-only reigster 0x%"
+                      "%s: invalid write to read-only register 0x%"
                       HWADDR_PRIx " with 0x%x\n", __func__, addr << 2, value);
         break;
#4 lore raw
Quoted 6 lines · Palmer Dabbelt
Quoted 1 line · On Sat, 05 Nov 2022 04:53:29 PDT (-0700), [email protected] wrote:
Fixes 0694dabe9763847f3010b54ab3ec7d367d2f0ff0

Not sure if I missed something in QEMU land, but those are usually listed more like

Fixes 0694dabe97 ("hw/ssi: Add SiFive SPI controller support")

MST suggested once to try to restrict the 'Fixes:' tag to bug / regressions, as it might help downstream distributions to filter commits to cherry-pick.

Since it might be useful to have the offending commit sha1 in the description, when it is simply an omission or improvement I use the an inline form instead of a tag:

Fixes the typo introduced in commit 0694dabe97 ("hw/ssi: Add SiFive SPI controller support").

Although in this particular use-case it is not really useful ;)

Another example:

When adding <the feature> in commit <sha1 ("<subject>")>, we forgot to fill the API prototype description. Do it now.

Regards,

Phil.

#5 lore raw
In reply to Michael Tokarev

Le 05/11/2022 à 12:53, Michael Tokarev a écrit :

Quoted 11 lines
Fixes 0694dabe9763847f3010b54ab3ec7d367d2f0ff0
---
  hw/ssi/sifive_spi.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
hw/ssi/sifive_spi.c +0 -0
index 03540cf5ca..1b4a401ca1 100644

hw/ssi/sifive_spi.c static void sifive_spi_write(void *opaque, hwaddr addr, · line 273

Quoted 8 lines
hw/ssi/sifive_spi.c +1 -1
@@ -267,7 +267,7 @@ static void sifive_spi_write(void *opaque, hwaddr addr,
      case R_RXDATA:
      case R_IP:
          qemu_log_mask(LOG_GUEST_ERROR,
-                      "%s: invalid write to read-only reigster 0x%"
+                      "%s: invalid write to read-only register 0x%"
                        HWADDR_PRIx " with 0x%x\n", __func__, addr << 2, value);
          break;
 

Applied to my trivial-patches branch.

Thanks,
Laurent