]> Git Repo - qemu.git/commitdiff
hw/ssi/imx_spi.c: Remove MSGDATA register support
authorJean-Christophe Dubois <[email protected]>
Mon, 9 Jan 2017 11:40:23 +0000 (11:40 +0000)
committerPeter Maydell <[email protected]>
Mon, 9 Jan 2017 11:50:23 +0000 (11:50 +0000)
From the documentation it is not clear what this SPI register is about.

Moreover, neither linux driver nor xvisor driver are using this SPI register.

For now we just remove it and issue a log on register write access.

Signed-off-by: Jean-Christophe Dubois <[email protected]>
Message-id: 20170107122047[email protected]
Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Peter Maydell <[email protected]>
hw/ssi/imx_spi.c

index e4e395fa679e2daaf15b5d02d227d25c4fc4ca27..b66505ca4954d054a0a90f32e5823db3dddf47f4 100644 (file)
@@ -320,9 +320,6 @@ static void imx_spi_write(void *opaque, hwaddr offset, uint64_t value,
                       TYPE_IMX_SPI, __func__);
         break;
     case ECSPI_TXDATA:
-    case ECSPI_MSGDATA:
-        /* Is there any difference between TXDATA and MSGDATA ? */
-        /* I'll have to look in the linux driver */
         if (!imx_spi_is_enabled(s)) {
             /* Ignore writes if device is disabled */
             break;
@@ -380,6 +377,14 @@ static void imx_spi_write(void *opaque, hwaddr offset, uint64_t value,
         }
 
         break;
+    case ECSPI_MSGDATA:
+        /* it is not clear from the spec what MSGDATA is for */
+        /* Anyway it is not used by Linux driver */
+        /* So for now we just ignore it */
+        qemu_log_mask(LOG_UNIMP,
+                      "[%s]%s: Trying to write to MSGDATA, ignoring\n",
+                      TYPE_IMX_SPI, __func__);
+        break;
     default:
         s->regs[index] = value;
 
This page took 0.026763 seconds and 4 git commands to generate.