]> git.karo-electronics.de Git - linux-beck.git/commitdiff
firewire: core: add CSR RESET_START support
authorClemens Ladisch <clemens@ladisch.de>
Thu, 10 Jun 2010 06:25:46 +0000 (08:25 +0200)
committerClemens Ladisch <clemens@ladisch.de>
Thu, 10 Jun 2010 06:25:46 +0000 (08:25 +0200)
This implements the RESET_START register (as a dummy) to make the Base
1394 Test Suite happy.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
drivers/firewire/core-transaction.c

index 16ffa27d23b747033c08ddc85ac0b1449291fb7d..0034229dfd140317a24703d2c4c01e32e58a5070 100644 (file)
@@ -1034,6 +1034,11 @@ static void handle_registers(struct fw_card *card, struct fw_request *request,
                        rcode = RCODE_TYPE_ERROR;
                break;
 
+       case CSR_RESET_START:
+               if (tcode != TCODE_WRITE_QUADLET_REQUEST)
+                       rcode = RCODE_TYPE_ERROR;
+               break;
+
        case CSR_CYCLE_TIME:
                if (TCODE_IS_READ_REQUEST(tcode) && length == 4)
                        *data = cpu_to_be32(card->driver->