Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp22691imm; Thu, 26 Jul 2018 13:09:16 -0700 (PDT) X-Google-Smtp-Source: AAOMgpda1b1GlHN03T1slZuw8A83QgYIeLe11dSx7A9M5ivfQNucrp7GvTW6LZbJbg6vNoB2IiM7 X-Received: by 2002:a62:9645:: with SMTP id c66-v6mr3566456pfe.56.1532635756425; Thu, 26 Jul 2018 13:09:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532635756; cv=none; d=google.com; s=arc-20160816; b=sUKN+10vkumDI9E2kcMG5Z9TCiFhCqyCiAUSCAEUPPrwYHk/WF7LJFOTNWzcLi3dmH B8VOQEV4zIJagfTXVUW6QPhwQfcectr4hFTnv8WuHLDanDdmoLGG547bmHT9xYJi8DmM 8TXjQgglLaytpe1711DHaNFTD4+5XMen6xELaQ1etBjooSsCPt1KBKlM55EPFf+WbkoN 9CsTjmxC+VTgiYwWPWbp7Pbk+hlSFjUf8eMFu+u7WK3tRVqFYSZNjsJgW5qO/21rQ1DL nwZrnYRu31qsPRISHMdWv1vYJnaeGHBE0Qk9xu2EYsh26DrO3eKFOrmi9Qr1MIxLGhv+ FFJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=Wc5hbhavH7L2NkclXtN89Ag9ST2Hc6CGNYH6SJz0Sjs=; b=jmaseKpnpuQEMW74pk89nX8B6tys3muLdCgn8GigplhTZ0MlOqr2pasl7+gavbRAes t5O2ZENyzF+lo7UAJ0Ynf0bQ6RuxymfOC0BRmk8y6zfqJ7WTQGugK+Mx7jb1PU/JGwUi pQJ9h63auClBktCL27UkHWfSYC83r8QwIEeYqHr0xKK9c+u+yDN8Yzoo2ru6UoTt3Kan AKmHBnbFx/tCKiW7BviBiyd6KTLJwEWI/ge75uMZq1TxrsVu9iDcZsK+w9cEuHHLYQNY NC/R+uTkOyYo9jb/FUcZHalpFcuecEeAlw9nsPtLmbvOY0Uk00cc7A5xg+6obqLx/30G efWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="J/2EgAKp"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i15-v6si2186338pfk.146.2018.07.26.13.09.01; Thu, 26 Jul 2018 13:09:16 -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; dkim=pass header.i=@chromium.org header.s=google header.b="J/2EgAKp"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731740AbeGZV0b (ORCPT + 99 others); Thu, 26 Jul 2018 17:26:31 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:36416 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731545AbeGZV03 (ORCPT ); Thu, 26 Jul 2018 17:26:29 -0400 Received: by mail-pl0-f68.google.com with SMTP id e11-v6so1289698plb.3 for ; Thu, 26 Jul 2018 13:08:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Wc5hbhavH7L2NkclXtN89Ag9ST2Hc6CGNYH6SJz0Sjs=; b=J/2EgAKpJggjM+FxQO4ZigL5pOsa2VS81Zd4JTat8gkRSe4+w+e67RkxPndSCVr9s7 UWbWWIF9A8qeoHVZawq/yoqmkuv2MVhjaHQi8KGSCgDqBp3Eta0y5zQGH2w/N0Ms34Vq M+Hhu0wAXOBFW+hBTFs57X8w1Wi+5PT/mZJNQ= 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:mime-version:content-transfer-encoding; bh=Wc5hbhavH7L2NkclXtN89Ag9ST2Hc6CGNYH6SJz0Sjs=; b=DAwcIb0LI84xKJP3xh7oHfw3Zmxi2YB/E+YvyWpzj6ZKcs6zCJSWvPXjQeYneY6Fbv qN7XK3bCwRhh0Ia/our5q4vc5Lx9/qXuopRpoOUVM7hQ0+DbT2YXs9V+OvpT7q55OK4S TunG88ge+9uRkJIGegC8mfTezCeeitWDb/QUEthOyDnkQvrquQz2m48JkvnsqaETOod0 jpZi6hALCPcDFJ3MDppDJ4ESS2oZqyXMyRT2Fsu3jVio8zKsrbiyPpSDA7YTymLFJEpC DDJXjbsKLBQ8FhHvbPCeTR4YXctsVUf0BzTy/9LnAHG+oNtnKYnAxvrE/CUet+iHla0W Fg5Q== X-Gm-Message-State: AOUpUlFoPUOIZtnwY3PhUK2alhFjHMOkPwxf1lgdiKJLcnRL5FYONVbh 4gEey8d+hsNKrlsXnNbd8D/g7g== X-Received: by 2002:a17:902:294a:: with SMTP id g68-v6mr3361812plb.58.1532635684415; Thu, 26 Jul 2018 13:08:04 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:0:1000:1501:38e4:86fe:ec0c:4007]) by smtp.gmail.com with ESMTPSA id u11-v6sm5784169pfd.117.2018.07.26.13.08.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Jul 2018 13:08:03 -0700 (PDT) From: Douglas Anderson To: balbi@kernel.org, hminas@synopsys.com, gregkh@linuxfoundation.org Cc: stefan.wahren@i2se.com, grigor.tovmasyan@synopsys.com, Bruno Herrera , Zhangfei Gao , john.stultz@linaro.org, Stephen Warren , Jerome Brunet , Douglas Anderson , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [REPOST PATCH 4/4] usb: dwc2: Turn on uframe_sched on "stm32f4x9_fsotg" platforms Date: Thu, 26 Jul 2018 13:07:30 -0700 Message-Id: <20180726200730.18290-5-dianders@chromium.org> X-Mailer: git-send-email 2.18.0.345.g5c9ce644c3-goog In-Reply-To: <20180726200730.18290-1-dianders@chromium.org> References: <20180726200730.18290-1-dianders@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There's no reason to have the uframe scheduler off on dwc2. Running with uframe_sched = False is equivalent to saying "I don't want to run the correct code, I want to run the old and incorrect code". The uframe scheduler has been off on stm32f4x9_fsotg since commit e35b135055e2 ("usb: dwc2: Add support for STM32F429/439/469 USB OTG HS/FS in FS mode (internal PHY)"). That commit is pretty recent, so it's unclear to me why the uframe scheduler was left off. Hopefully it's because someone copied it from other parameters and didn't think to try it? Presumably if everyone is good w/ the uframe_sched turned back on we can kill all the old and crufty non-uframe sched code. Signed-off-by: Douglas Anderson --- drivers/usb/dwc2/params.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/dwc2/params.c b/drivers/usb/dwc2/params.c index 93380f7c32b4..7be35bcde713 100644 --- a/drivers/usb/dwc2/params.c +++ b/drivers/usb/dwc2/params.c @@ -131,7 +131,6 @@ static void dwc2_set_stm32f4x9_fsotg_params(struct dwc2_hsotg *hsotg) p->max_packet_count = 256; p->phy_type = DWC2_PHY_TYPE_PARAM_FS; p->i2c_enable = false; - p->uframe_sched = false; p->activate_stm_fs_transceiver = true; } -- 2.18.0.345.g5c9ce644c3-goog