From patchwork Wed Dec 28 22:56:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 9490727 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8727462AB0 for ; Wed, 28 Dec 2016 23:00:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6FC3426242 for ; Wed, 28 Dec 2016 23:00:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6449D26490; Wed, 28 Dec 2016 23:00:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3038726242 for ; Wed, 28 Dec 2016 23:00:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752270AbcL1W5d (ORCPT ); Wed, 28 Dec 2016 17:57:33 -0500 Received: from mail-pf0-f170.google.com ([209.85.192.170]:33331 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752235AbcL1W53 (ORCPT ); Wed, 28 Dec 2016 17:57:29 -0500 Received: by mail-pf0-f170.google.com with SMTP id d2so60121770pfd.0 for ; Wed, 28 Dec 2016 14:57:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KWu7gpe6+dzc9sAJuCvLRD5GzeTaamMmNMYxCT3AWr8=; b=L2HQW8lIClprXVDstRjI3cvUxhQy+3mqmDY5ihGTnuGXe7guzxezzyb4iBpE5PNkoL fytdpTwnRYQGBMe4VMYmEMI0JdTRBISMki77VpWJ601qGnNz0gb1kdwOkLbI6NEpC88Y EC2L3PmOz05wZHVJRXXk3ZqF16HpGnVRGnAr8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=KWu7gpe6+dzc9sAJuCvLRD5GzeTaamMmNMYxCT3AWr8=; b=X6wjh08MINevjNBtFqupv6W4c8I9culQm5MVuUygnaMIJ8xHr8evAt9mnWj/949YaC Cnhlfu+N5b7fGbSH3shNI8C1QX5/lJMPRImGqud+FpL2TM5lkSftlP/78IhJ3wX3J93I 7cOhXuY1qaklm3MgNNRsAJlVkqpb7s5ALQy4seWSJctifGoiqrT0jKQh7nISx4PZVPBQ Z18VdvbrmBCjvL8aAjK+q4CHsjpMn3M4z7UwgezeYvKDlPQAEszP0X5HUGEgwpTGhANG pKaYAavcyVmLtreUQyKhxJjZD43Q+7d4NAWifwiz6wSLL/Tmaa05OBqJbt9pn2YPytBa Jcgw== X-Gm-Message-State: AIkVDXJ/j5y9DyJABbw/9Gifosmo1wG+zYAGd3sQQpPhpmQMzwkcEMM9JlPpszlhm4m7+ISp X-Received: by 10.84.194.37 with SMTP id g34mr82305288pld.36.1482965848818; Wed, 28 Dec 2016 14:57:28 -0800 (PST) Received: from localhost.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id x4sm100355741pgc.14.2016.12.28.14.57.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Dec 2016 14:57:28 -0800 (PST) From: Stephen Boyd To: linux-usb@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Andy Gross , Bjorn Andersson , Neil Armstrong , Arnd Bergmann , Felipe Balbi , Peter Chen , Greg Kroah-Hartman Subject: [PATCH v6 13/25] usb: chipidea: msm: Rely on core to override AHBBURST Date: Wed, 28 Dec 2016 14:56:59 -0800 Message-Id: <20161228225711.698-14-stephen.boyd@linaro.org> X-Mailer: git-send-email 2.10.0.297.gf6727b0 In-Reply-To: <20161228225711.698-1-stephen.boyd@linaro.org> References: <20161228225711.698-1-stephen.boyd@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The core framework already handles setting this parameter with a platform quirk. Add the appropriate flag so that we always set AHBBURST to 0. Technically DT should be doing this, but we always do it for msm chipidea devices so setting the flag in the driver works just as well. If the burst needs to be anything besides 0, we expect the 'ahb-burst-config' dts property to be present. Acked-by: Peter Chen Cc: Greg Kroah-Hartman Signed-off-by: Stephen Boyd --- drivers/usb/chipidea/ci_hdrc_msm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/chipidea/ci_hdrc_msm.c b/drivers/usb/chipidea/ci_hdrc_msm.c index 89c1a02d69b5..719b20caf88e 100644 --- a/drivers/usb/chipidea/ci_hdrc_msm.c +++ b/drivers/usb/chipidea/ci_hdrc_msm.c @@ -24,7 +24,6 @@ static void ci_hdrc_msm_notify_event(struct ci_hdrc *ci, unsigned event) switch (event) { case CI_HDRC_CONTROLLER_RESET_EVENT: dev_dbg(dev, "CI_HDRC_CONTROLLER_RESET_EVENT received\n"); - writel(0, USB_AHBBURST); /* use AHB transactor, allow posted data writes */ writel(0x8, USB_AHBMODE); usb_phy_init(ci->usb_phy); @@ -47,7 +46,8 @@ static struct ci_hdrc_platform_data ci_hdrc_msm_platdata = { .name = "ci_hdrc_msm", .capoffset = DEF_CAPOFFSET, .flags = CI_HDRC_REGS_SHARED | - CI_HDRC_DISABLE_STREAMING, + CI_HDRC_DISABLE_STREAMING | + CI_HDRC_OVERRIDE_AHB_BURST, .notify_event = ci_hdrc_msm_notify_event, };