]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
sparc64: specify the device class in VIO version info. packet
authorJag Raman <jag.raman@oracle.com>
Fri, 23 Jun 2017 18:58:30 +0000 (14:58 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Jun 2017 20:43:11 +0000 (13:43 -0700)
Specify the class of VIO device in the version info. packet. The device's
class identifies the type of VIO device, whether it's DISK, CONSOLE,
NETWORK, etc... This packet is used in the handshake between the
client and server for this device.

Signed-off-by: Jagannathan Raman <jag.raman@oracle.com>
Reviewed-by: Liam Merwick <liam.merwick@oracle.com>
Reviewed-by: Shannon Nelson <shannon.nelson@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/viohs.c

index ea28cb7118bd6f6d5865ea24785b00fb260ab1a5..68e952a7bcdbe7736592d7467c7b2d1aceddd75c 100644 (file)
@@ -286,6 +286,7 @@ static int process_ver_info(struct vio_driver_state *vio,
                        ver.minor = vap->minor;
                pkt->minor = ver.minor;
                pkt->tag.stype = VIO_SUBTYPE_ACK;
+               pkt->dev_class = vio->dev_class;
                viodbg(HS, "SEND VERSION ACK maj[%u] min[%u]\n",
                       pkt->major, pkt->minor);
                err = send_ctrl(vio, &pkt->tag, sizeof(*pkt));