From patchwork Sun Jan 18 22:44:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 5654301 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 085A6C058D for ; Sun, 18 Jan 2015 22:44:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 407CE2034E for ; Sun, 18 Jan 2015 22:44:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 75BB220304 for ; Sun, 18 Jan 2015 22:44:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751575AbbARWoU (ORCPT ); Sun, 18 Jan 2015 17:44:20 -0500 Received: from mail-la0-f44.google.com ([209.85.215.44]:65353 "EHLO mail-la0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751557AbbARWoQ (ORCPT ); Sun, 18 Jan 2015 17:44:16 -0500 Received: by mail-la0-f44.google.com with SMTP id hz20so3699057lab.3 for ; Sun, 18 Jan 2015 14:44:15 -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=uEjA9bC7hUH5/g6p+s9j+oeWaXxFXZXT5ve1gGNyYds=; b=jfpFt1KGPWNlyEW0QDMV/hNIdEp0OTlVmAPf8eK9z7AAHt4GkMwx+cjOA9OyxBFo+p jqyznPq59+m+/PKu8BF52LOda2MlKHVQSF5olRQHflZH6WPKpQV4IwXwZ3yOXj7ZKcA9 8UTiGJ1OSD2Ih91tSV1OOCA2H7wZZBXpEIGgT6j8FGomM4trfbUVq3Euyij6RMJXPpmp 0I18r8CPZ0q8jq3WpBgREWt1t0Uc6w5xvVeKMHP/FXNFO3jrR1rYDsXZ/Cc144g7sf/7 SqY8FPmkiU7ur2bUGyUHx7bmW4lI1st1cTYmq1hlHubRJ2+dmPvlEUmeQFTok6vgEc3y uSXA== X-Gm-Message-State: ALoCoQkqIY4QtU+BU3XpBMyDzt5stmXscaFLg/GdHoTR/LqqePup6jES2GjSElXuBS35/uazSAzE X-Received: by 10.112.142.201 with SMTP id ry9mr26884026lbb.4.1421621055116; Sun, 18 Jan 2015 14:44:15 -0800 (PST) Received: from wasted.cogentembedded.com (ppp31-21.pppoe.mtu-net.ru. [81.195.31.21]) by mx.google.com with ESMTPSA id e7sm2596533lbq.33.2015.01.18.14.44.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Jan 2015 14:44:14 -0800 (PST) From: Sergei Shtylyov To: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, stern@rowland.harvard.edu, kgene@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 12/23] ohci-s3c2410: use HUB_CHAR_* Date: Mon, 19 Jan 2015 01:44:12 +0300 Message-ID: <2189806.lsQmK0PScD@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-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@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=unavailable 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 numbers to set the 'wHubCharacteristics' field of the Hub Descriptor while the values are #define'd in . While at it, stop setting already set HUB_CHAR_INDV_PORT_LPSM once again. Signed-off-by: Sergei Shtylyov --- drivers/usb/host/ohci-s3c2410.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" 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/host/ohci-s3c2410.c =================================================================== --- usb.orig/drivers/usb/host/ohci-s3c2410.c +++ usb/drivers/usb/host/ohci-s3c2410.c @@ -249,14 +249,14 @@ static int ohci_s3c2410_hub_control( */ desc->wHubCharacteristics &= ~cpu_to_le16(HUB_CHAR_LPSM); - desc->wHubCharacteristics |= cpu_to_le16(0x0001); + desc->wHubCharacteristics |= cpu_to_le16( + HUB_CHAR_INDV_PORT_LPSM); if (info->enable_oc) { desc->wHubCharacteristics &= ~cpu_to_le16( HUB_CHAR_OCPM); desc->wHubCharacteristics |= cpu_to_le16( - 0x0008 | - 0x0001); + HUB_CHAR_INDV_PORT_OCPM); } dev_dbg(hcd->self.controller, "wHubCharacteristics after 0x%04x\n",