Received: by 10.213.65.68 with SMTP id h4csp1718445imn; Mon, 19 Mar 2018 11:20:29 -0700 (PDT) X-Google-Smtp-Source: AG47ELtBr7Xj0lsGCNwbLyBMOSGOmzc0W2tvsIJvQ+Y83rMgjgn+HnQeC69BckA2zbOPGV02hhXN X-Received: by 10.98.189.24 with SMTP id a24mr11110504pff.125.1521483629839; Mon, 19 Mar 2018 11:20:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521483629; cv=none; d=google.com; s=arc-20160816; b=DLRMzP3haDBDJ7yA30Q/y+NbQjfhbprmW+rwtpfmCR3Sv/U1HzAxsdPeDPhy8Cj/wW yr9oj5OtJeKBGKcybMaGc6CB/AFjYP7X3usmJ7KI3VyDpR+wdabmpmwGGwsfFuyYthS/ GkHbECP49sOdTJ7UHeQdjhnKzoCIHFkNh7vO0PE+iw3q9ALbbmObAJCFY66QOongXrXn ZAgSOtdwk/CDiPKIiBVuZ32IZyyU48pUngmifB/p6cuc/iZxu8vvO8IhFIBM/UDqO6MU RAkMPrkEPe0rps4WVv3bihD5kZaPHVra8jUFk2C5J9O71t2vlvjlHIq0sZ3mtppezDyY pcNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=uSFhdWT74IFcn7guKWJq/6oQUDS2qOK5MOaLqaNUT5M=; b=yWkupm72IvYBjp+ByyI7h1Jw75VOv7FJHnlxF9B7unDkpbVgf4C99blp12Sh0V3CPP /l60V2156LsLqYSnAXo6wnlG+uJSf48W62p8K+8Aqx/TaUNNmErJoVFz3Iqg4wdgU/1c Yh68bUFj06+ACisRWmY98PhZPdjaPy3E5jJKaaLj8Q3NtVrraSRuAB8CZ+j2A+NUgbWQ GNyjMaoqsiiJO4AP1mL7FxsvxrU9DgELN+QaipMnHK/z96sdpTumyya318R1ZdUT8CjC 0pQVOiSWvFua0su/4pATlI+5ib5BE+oxgyaVmabQmmHDvxGPOWxoMSX98yl3LxAeukRQ HJ2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b59-v6si381639plb.529.2018.03.19.11.20.15; Mon, 19 Mar 2018 11:20:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S969205AbeCSSRu (ORCPT + 99 others); Mon, 19 Mar 2018 14:17:50 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:45646 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S969066AbeCSSRo (ORCPT ); Mon, 19 Mar 2018 14:17:44 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 72CC41244; Mon, 19 Mar 2018 18:17:43 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Florian Fainelli , Srinath Mannam , Felipe Balbi Subject: [PATCH 4.4 133/134] usb: gadget: bdc: 64-bit pointer capability check Date: Mon, 19 Mar 2018 19:06:56 +0100 Message-Id: <20180319171908.434936208@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319171849.024066323@linuxfoundation.org> References: <20180319171849.024066323@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Srinath Mannam commit c8e4e5bdb62a5ac6f860ebcaaf7b467b62f453f1 upstream. Corrected the register to check the 64-bit pointer capability state. 64-bit pointer implementation capability was checking in wrong register, which causes the BDC enumeration failure in 64-bit memory address. Fixes: efed421a94e6 ("usb: gadget: Add UDC driver for Broadcom USB3.0 device controller IP BDC") Reviewed-by: Florian Fainelli Signed-off-by: Srinath Mannam Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman --- drivers/usb/gadget/udc/bdc/bdc_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/usb/gadget/udc/bdc/bdc_core.c +++ b/drivers/usb/gadget/udc/bdc/bdc_core.c @@ -475,7 +475,7 @@ static int bdc_probe(struct platform_dev bdc->dev = dev; dev_dbg(bdc->dev, "bdc->regs: %p irq=%d\n", bdc->regs, bdc->irq); - temp = bdc_readl(bdc->regs, BDC_BDCSC); + temp = bdc_readl(bdc->regs, BDC_BDCCAP1); if ((temp & BDC_P64) && !dma_set_mask_and_coherent(dev, DMA_BIT_MASK(64))) { dev_dbg(bdc->dev, "Using 64-bit address\n");