From patchwork Sun Jan 18 22:59:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 5654321 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 843C3C058D for ; Sun, 18 Jan 2015 22:59:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 72C1E202F2 for ; Sun, 18 Jan 2015 22:59:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6853A201B4 for ; Sun, 18 Jan 2015 22:59:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751221AbbARW7N (ORCPT ); Sun, 18 Jan 2015 17:59:13 -0500 Received: from mail-la0-f41.google.com ([209.85.215.41]:38044 "EHLO mail-la0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751185AbbARW7N (ORCPT ); Sun, 18 Jan 2015 17:59:13 -0500 Received: by mail-la0-f41.google.com with SMTP id hv19so25945486lab.0 for ; Sun, 18 Jan 2015 14:59:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=f0jNSA/T3YI8oks1rBjQWThpFskRE+WvBxdNx0wqZAw=; b=hS1yfodCgqYporypzIdcA8NmbqR0JdDll6uedDiNuFKYoIlAoxTAys4I8NT6MfwkzT c8FxslgHwz8kjBFfSCLtvlIfjubMeX6EHy13IC5OCculz5oiVtBrPZpjgc6Dp7IP/t/1 hTu21j/SAx9H6kc1Kzfb/OXrEt+E4lx+ytZmLzJZXHUMjRnCMi7pel8zcBdZKRjAQxhQ bLJ2v0OjEtCxFmw3weJydoiqQQPw/Co3wKWySNhRUvhZyMuo00oLl9kUIzQSFIzDOCXN dk1OquN9doCSCIjwb0nK4f0YL9EPi6jtwgmD9X2iceuE5DsGIRfU8b2CGk5uhqu7rTM5 An+w== X-Gm-Message-State: ALoCoQlZ/dFETGuIx0t0i/wspxGQXx6Vl0ZboRiOOTDeyg+nAsFomrN4eoxOIR96TC6182PkIhKw X-Received: by 10.112.200.103 with SMTP id jr7mr26802103lbc.0.1421621951850; Sun, 18 Jan 2015 14:59:11 -0800 (PST) Received: from wasted.cogentembedded.com (ppp31-21.pppoe.mtu-net.ru. [81.195.31.21]) by mx.google.com with ESMTPSA id az15sm3186568lab.30.2015.01.18.14.59.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Jan 2015 14:59:11 -0800 (PST) From: Sergei Shtylyov To: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org Cc: linux-sh@vger.kernel.org Subject: [PATCH 21/23] renesas_usbhs: mod_host: use HUB_CHAR_* Date: Mon, 19 Jan 2015 01:59:09 +0300 Message-ID: <6740241.zUR9nh3WrW@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.3 (Linux/3.17.8-200.fc20.x86_64; KDE/4.14.3; x86_64; ; ) In-Reply-To: <4018572.5hhhepRR0W@wasted.cogentembedded.com> References: <4018572.5hhhepRR0W@wasted.cogentembedded.com> MIME-Version: 1.0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix using the bare number to set the 'wHubCharacteristics' field of the Hub Descriptor while the values are #define'd in . Signed-off-by: Sergei Shtylyov --- drivers/usb/renesas_usbhs/mod_host.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: usb/drivers/usb/renesas_usbhs/mod_host.c =================================================================== --- usb.orig/drivers/usb/renesas_usbhs/mod_host.c +++ usb/drivers/usb/renesas_usbhs/mod_host.c @@ -1234,7 +1234,8 @@ static int __usbhsh_hub_get_status(struc desc->bNbrPorts = roothub_id; desc->bDescLength = 9; desc->bPwrOn2PwrGood = 0; - desc->wHubCharacteristics = cpu_to_le16(0x0011); + desc->wHubCharacteristics = + cpu_to_le16(HUB_CHAR_INDV_PORT_LPSM | HUB_CHAR_NO_OCPM); desc->u.hs.DeviceRemovable[0] = (roothub_id << 1); desc->u.hs.DeviceRemovable[1] = ~0; dev_dbg(dev, "%s :: GetHubDescriptor\n", __func__);