From patchwork Wed Sep 7 21:35:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 9320003 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 709B5607D3 for ; Wed, 7 Sep 2016 21:37:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7E17C29330 for ; Wed, 7 Sep 2016 21:37:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 72BF129432; Wed, 7 Sep 2016 21:37:32 +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=-4.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, 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 3C81E2942D for ; Wed, 7 Sep 2016 21:37:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935721AbcIGVhG (ORCPT ); Wed, 7 Sep 2016 17:37:06 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:35688 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757361AbcIGVfh (ORCPT ); Wed, 7 Sep 2016 17:35:37 -0400 Received: by mail-pa0-f53.google.com with SMTP id b2so9996554pat.2 for ; Wed, 07 Sep 2016 14:35:37 -0700 (PDT) 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=yuGWYD9Ipt5FxiWlrxUF1phrYtxKoCT7qNIfCaNmBaY=; b=iSux/lx5io8dG/fCCFWxLjhM6wIPPufSS09yhyCubUfSijM9QwbfyHtkqqDwwUDxDH nIUp7yuIx88D5xgio8cFazMQf/L4JFko+tjIq7UPPLGiBpHMwNrlXO+OrWYVNJHVmk2Q WpAQsYvGrFzd2HLtmSIQIDq/VVsMg76tMv/18= 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:in-reply-to :references; bh=yuGWYD9Ipt5FxiWlrxUF1phrYtxKoCT7qNIfCaNmBaY=; b=Ba7+X4tlUdwMQ8KuwYjGh62fpStU4Tshl8/mhXNIWc8iLu/RxlpsYV5J6KIiG2S3vi 9kHm1ou97qnhSKh2RBFGDT85vXd985CHMLIux1AWYXPbrOMUQXCM2X/mcsJd4LlPUJaf HKGC9WYWl2TlEnwuwq1gpKuTbDT6aIs7IHMqpnTf7wzwAeNIyCcqoSHg9iVpx/0hTUie e79NQE/4jOwyFZM9UpOjO2dKupdsQLyW8jN3LwBLl/lRXQv9Pe5Yj7FVGfM9l6GqJukV q/PbpOKH5QYQSlAbkzM50Q33KSfVkLFHvYx1wtxG8mL7B/NYB+9eU4uxfRDbjP/5noi6 nZVA== X-Gm-Message-State: AE9vXwPp1sbsbIwR8Ads4TptlOzeDRGAWk9aqP9dT0fiD7iTQNo3dG9PESEEt8faK6nlEODn X-Received: by 10.66.76.106 with SMTP id j10mr7607104paw.65.1473284136952; Wed, 07 Sep 2016 14:35:36 -0700 (PDT) Received: from localhost.localdomain (ip68-101-172-78.sd.sd.cox.net. [68.101.172.78]) by smtp.gmail.com with ESMTPSA id 75sm51015417pfw.92.2016.09.07.14.35.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Sep 2016 14:35:36 -0700 (PDT) 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 v4 12/22] usb: chipidea: msm: Rely on core to override AHBBURST Date: Wed, 7 Sep 2016 14:35:09 -0700 Message-Id: <20160907213519.27340-13-stephen.boyd@linaro.org> X-Mailer: git-send-email 2.9.0.rc2.8.ga28705d In-Reply-To: <20160907213519.27340-1-stephen.boyd@linaro.org> References: <20160907213519.27340-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, };