Received: by 10.213.65.68 with SMTP id h4csp1743045imn; Mon, 19 Mar 2018 12:02:22 -0700 (PDT) X-Google-Smtp-Source: AG47ELt1QiRaXPChjBWiIM3E3Y1CyhzCH/nz2tnEzsJTUpR3eT6Ik0O195AGaZaaRJwOYMBd0f6c X-Received: by 2002:a17:902:7c98:: with SMTP id y24-v6mr13633666pll.60.1521486142250; Mon, 19 Mar 2018 12:02:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521486142; cv=none; d=google.com; s=arc-20160816; b=a6D9SqPsWI1/idiUqHquz01BNhpHPWZzPH3cectcjbjmliuZwa7wJaYo7hg1RDlZur sipmxJh/Wz4UtJQnBQkjldyA1S2euWQBsIEs8tUl3t6bI5vkNEHFJkStz1AbII/a4/dg fMcqwfZllShADxvb/v5hMzYzESWjwIkCK/8x1QTCacO/t8QdLGq45xi6Y1r8tuXMEaqo Ztsh/7ur8z14kZFdVGfivtAfp7LU7ADaG5PLNuHfOrqmLj70LmBtUQuqnbSGNPSBN0PM d2vhZ5kVb4Tw6b4O73DExe1Vx3SVQS3BDZNzHdMs42G4/ARVGrt35MHR8vP7bG7eMZ0o J5Kw== 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=uh+k10GLligx4bglF1bgAB6zBxznwM/VWBePCTO+sFY=; b=k9vKVvmqNAL9Nh3gPylbq+lU1N2SWMl/bGeA38wcFUzj0ASrk2SI2euV7hwbb68uRJ QKRxGNoV7DwXfn6lglAPCIKZNyeRXhGGlprSoSoETVz+1AGTpGR/7jz9nKE54DSpnuxZ oyEnZ4iWFm5yQqdPDIQAFt6Xy96nDlFB0CWZP8nCKVnZsyorTEl9yY0dJQkR8xj+tlQE ZcDfJgg0S55I3IAEIuLdZwR3CIQgUi6Kj7VsTZ+/m2nNism8870LsojSqr7WqQ1jk1Da idxvddAP3VEOEl5+XbHMSa8SF2H4j5pQRUkspk31irBqbD7OvfDv5X8IxDpvwuUbFCeD Vb8A== 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 f66si393295pfd.138.2018.03.19.12.02.07; Mon, 19 Mar 2018 12:02:22 -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 S969981AbeCSS3C (ORCPT + 99 others); Mon, 19 Mar 2018 14:29:02 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:52362 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031771AbeCSS2q (ORCPT ); Mon, 19 Mar 2018 14:28:46 -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 97EE8F3E; Mon, 19 Mar 2018 18:28:45 +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.9 241/241] usb: gadget: bdc: 64-bit pointer capability check Date: Mon, 19 Mar 2018 19:08:26 +0100 Message-Id: <20180319180801.149222902@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319180751.172155436@linuxfoundation.org> References: <20180319180751.172155436@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.9-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");