From patchwork Fri May 12 10:15:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 9723847 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E7C37600CB for ; Fri, 12 May 2017 10:16:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DD0F3287FB for ; Fri, 12 May 2017 10:16:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D1AAE2880A; Fri, 12 May 2017 10:16:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6FD98287FB for ; Fri, 12 May 2017 10:16:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933112AbdELKQK (ORCPT ); Fri, 12 May 2017 06:16:10 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:34354 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933039AbdELKQH (ORCPT ); Fri, 12 May 2017 06:16:07 -0400 Received: by mail-wm0-f68.google.com with SMTP id d127so12874670wmf.1; Fri, 12 May 2017 03:16:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=IQ4BImttnVoxPbG0XPjDnDvX0Z87IMVVTtkie1jjN/A=; b=aPFe4NghZlV/n6FjZn55XFknr62hqxOJoxxIWTl+oCij0mmqF8tenwsolOwpwvB5+2 qW4JqFWzznOaxCm0mYaYF9UEhRmpkD9evlfaRaJzxdHf2Z80lrrUMruZBZkKEcapDsA3 2NQKn2UKAGasdGVrcV1fwX+TLH7wR5NFZQNibmsvIRY/bfcYKBOjfzkfI4ba7zw36WZy EIXL+DtnWmGRG0qSE56V88pFZCY0OWIMSw4NMNG7K4b88E89VlQRh+KCHfFbWcncmYSN hEgwA06C0u/RYmAb4Iu/RoapS7UyW8zA4hYA9EKetUCvMFqojEs9s8UP54YaVJUVze7J b9Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=IQ4BImttnVoxPbG0XPjDnDvX0Z87IMVVTtkie1jjN/A=; b=oFsN4nFM7zchy6ErabUJps7iCi9ToElifjpaVzc0DGxLGXykjDpZ9W3l+FXvZKl3xM n23UEXgSrwHjSdo03Oehw5D+UftqZBbhLTL1UVPl77J6nplzEKYGPGmUwPIPqa/9PdXQ YOQHVfVAkX/sNBnzkbIjUacqZ2y9fLJ4PoS5S1KlaJD/eO1fkPaCdnSsJ7sFWIME4ty9 ZjiqrZeEc00fZFjhJj1cAL7A5i7svJtAf6oKmV3l2X9n7WWQBXoUFQsspXWbGL1bYeCx up5XdrJ34kT2k7nHxtpMNhYFGngUxIAKxPnSn+r3dK/zLfvwyrxtg9wEF9Btiugow7rn oE2g== X-Gm-Message-State: AODbwcDRz6MbxRNOwkqFzXOs09IPDJrRC5qCxKuTxtLkMaqakIbCR0Q2 Ywe4HlATljKbRw== X-Received: by 10.25.17.96 with SMTP id g93mr950583lfi.129.1494584166328; Fri, 12 May 2017 03:16:06 -0700 (PDT) Received: from xi.terra (c-42c8e255.07-184-6d6c6d4.cust.bredbandsbolaget.se. [85.226.200.66]) by smtp.gmail.com with ESMTPSA id u24sm492868ljd.34.2017.05.12.03.16.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 May 2017 03:16:05 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.89) (envelope-from ) id 1d97c8-0000Yl-Bk; Fri, 12 May 2017 12:16:00 +0200 From: Johan Hovold To: Amitkumar Karwar , Nishant Sarmukadam , Ganapathi Bhat , Xinming Hu Cc: Kalle Valo , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Johan Hovold Subject: [PATCH] wireless: mwifiex: add missing USB-descriptor endianness conversion Date: Fri, 12 May 2017 12:15:55 +0200 Message-Id: <20170512101555.2111-1-johan@kernel.org> X-Mailer: git-send-email 2.13.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add the missing endianness conversions to a debug statement printing the USB device-descriptor bcdUSB field during probe. Signed-off-by: Johan Hovold --- drivers/net/wireless/marvell/mwifiex/usb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/marvell/mwifiex/usb.c b/drivers/net/wireless/marvell/mwifiex/usb.c index 2f7705c50161..debd6216366a 100644 --- a/drivers/net/wireless/marvell/mwifiex/usb.c +++ b/drivers/net/wireless/marvell/mwifiex/usb.c @@ -424,7 +424,8 @@ static int mwifiex_usb_probe(struct usb_interface *intf, card->intf = intf; pr_debug("info: bcdUSB=%#x Device Class=%#x SubClass=%#x Protocol=%#x\n", - udev->descriptor.bcdUSB, udev->descriptor.bDeviceClass, + le16_to_cpu(udev->descriptor.bcdUSB), + udev->descriptor.bDeviceClass, udev->descriptor.bDeviceSubClass, udev->descriptor.bDeviceProtocol);