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: 75707 Delivered-To: patch@linaro.org Received: by 10.140.106.11 with SMTP id d11csp526450qgf; Wed, 7 Sep 2016 14:37:21 -0700 (PDT) X-Received: by 10.66.72.8 with SMTP id z8mr27795929pau.141.1473284239788; Wed, 07 Sep 2016 14:37:19 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id lo4si43010147pab.269.2016.09.07.14.37.12; Wed, 07 Sep 2016 14:37:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935721AbcIGVhG (ORCPT + 8 others); 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 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(-) -- 2.9.0.rc2.8.ga28705d -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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, };