From patchwork Thu Oct 23 20:34:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 5142971 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id BBC91C11AC for ; Thu, 23 Oct 2014 20:34:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2EE3120220 for ; Thu, 23 Oct 2014 20:34:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DEE482010E for ; Thu, 23 Oct 2014 20:34:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933011AbaJWUeR (ORCPT ); Thu, 23 Oct 2014 16:34:17 -0400 Received: from mail-lb0-f179.google.com ([209.85.217.179]:47618 "EHLO mail-lb0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932231AbaJWUeQ (ORCPT ); Thu, 23 Oct 2014 16:34:16 -0400 Received: by mail-lb0-f179.google.com with SMTP id l4so1488224lbv.24 for ; Thu, 23 Oct 2014 13:34:15 -0700 (PDT) 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:mime-version:content-transfer-encoding:content-type; bh=bREGQVWNwbATV2JFuNeP+tul5fH84BqLdGJo6jpzBlo=; b=BHJozIJlAoHTN/SNpTmsty2lkg8C9KpiYBxZok+oIjguvy2ZetqFaPOwdH0HkowXrb alUDUJwM/icRw0ByEqCSSqTsW0v40IidKiT8tCD1iAMW3Z68wttxHvook9VO2v6D7UzQ SQTWJtDLdYpbambUQGQpCUcII1DG3/yN07RckxGXgKIhCE9IqNqziRlow0dj2JVfJ66S gKk8rXq9GBCB1guc01LLtkNZElQcmpbTHGK/iKx/C2W5Ew5BGkZBAhiXFFN+IL7bUx6p 5kGDIp2EsiUwm453LbyhN0d4Bp/SVS/qzqnExLpfSmJ0bU13/nwLYxkH+ceDnyZHGHvs LNSA== X-Gm-Message-State: ALoCoQna8y0O8eu2/IFrXCi+mi5snK9EKsHvC/YzDzS29HUWsrwLxCNyTKwZTWzZCsWnjRu2Q/6G X-Received: by 10.153.5.33 with SMTP id cj1mr83441lad.36.1414096455330; Thu, 23 Oct 2014 13:34:15 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp30-10.pppoe.mtu-net.ru. [81.195.30.10]) by mx.google.com with ESMTPSA id p18sm1134531lal.48.2014.10.23.13.34.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Oct 2014 13:34:14 -0700 (PDT) From: Sergei Shtylyov To: balbi@ti.com, linux-usb@vger.kernel.org Cc: gregkh@linuxfoundation.org, linux-omap@vger.kernel.org Subject: [PATCH] omap2430: use MUSB_DEVCTL_BDEVICE Date: Fri, 24 Oct 2014 00:34:12 +0400 Message-ID: <3162760.hUohyUNsZE@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.1 (Linux/3.16.6-200.fc20.x86_64; KDE/4.14.1; x86_64; ; ) MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 The OMAP2+ MUSB glue layer still uses a bare number for the DEVCTL.B-Device bit in one place, while there's #define MUSB_DEVCTL_BDEVICE for that. Signed-off-by: Sergei Shtylyov --- The patch is against the 'next' branch of Felipe Balbi's 'usb.git' repo. drivers/usb/musb/omap2430.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-omap" 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/musb/omap2430.c =================================================================== --- usb.orig/drivers/usb/musb/omap2430.c +++ usb/drivers/usb/musb/omap2430.c @@ -162,7 +162,8 @@ static void omap2430_musb_set_vbus(struc * Wait for the musb to set as A device to enable the * VBUS */ - while (musb_readb(musb->mregs, MUSB_DEVCTL) & 0x80) { + while (musb_readb(musb->mregs, MUSB_DEVCTL) & + MUSB_DEVCTL_BDEVICE) { mdelay(5); cpu_relax();