From: Jag Raman Date: Fri, 23 Jun 2017 18:58:30 +0000 (-0400) Subject: sparc64: specify the device class in VIO version info. packet X-Git-Tag: v4.13-rc1~93^2~2^2~10 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ac6bb0255430f701ea3723aac5dd06f528078567;p=karo-tx-linux.git sparc64: specify the device class in VIO version info. packet 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 Reviewed-by: Liam Merwick Reviewed-by: Shannon Nelson Signed-off-by: David S. Miller --- diff --git a/arch/sparc/kernel/viohs.c b/arch/sparc/kernel/viohs.c index ea28cb7118bd..68e952a7bcdb 100644 --- a/arch/sparc/kernel/viohs.c +++ b/arch/sparc/kernel/viohs.c @@ -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));