From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS, T_DKIMWL_WL_HIGH,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 13F30C04AB2 for ; Thu, 9 May 2019 18:49:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DDDA52183F for ; Thu, 9 May 2019 18:49:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557427793; bh=e2WdOTtq1cWTYrUoe5cbqsxZTqaCYyB9YdErXWv3ZzU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=gsytK3PupX9yBfNDOX6wYREshBVJ8WbnhRB/ffEaYuaoz53q7ErtvxfMPx90Eu/8y WG0x3EOcgIVi/sjw545xLpzhN+kvrEZtNGdNtSpJOIBHt1544MKcDhzUfOBVJs+qUX FH/CBX/L5gWuQUlzFIJEwjo0FLeRl6QX8cte5OFM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728337AbfEIStw (ORCPT ); Thu, 9 May 2019 14:49:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:43246 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727883AbfEIStv (ORCPT ); Thu, 9 May 2019 14:49:51 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 060102182B; Thu, 9 May 2019 18:49:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557427790; bh=e2WdOTtq1cWTYrUoe5cbqsxZTqaCYyB9YdErXWv3ZzU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g6HdvjDg5KNDWtH23AjboUBlwte7V3ygFHS3ihMyXA0wTUsZ/P3ZUjPqTo7N6Abin MMxfY+1EER6vyuARRcdxFcyU4ApdfWrv4QkUxdnMR8fA+stTniG/A8h8IFpFhIc0Vx bsgyjSdgYwlTodK1Z2yxDXO90FS2LczQzGjIysHs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thinh Nguyen , Felipe Balbi Subject: [PATCH 4.19 51/66] usb: dwc3: Fix default lpm_nyet_threshold value Date: Thu, 9 May 2019 20:42:26 +0200 Message-Id: <20190509181307.014979807@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190509181301.719249738@linuxfoundation.org> References: <20190509181301.719249738@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thinh Nguyen commit 8d791929b2fbdf7734c1596d808e55cb457f4562 upstream. The max possible value for DCTL.LPM_NYET_THRES is 15 and not 255. Change the default value to 15. Cc: stable@vger.kernel.org Fixes: 80caf7d21adc ("usb: dwc3: add lpm erratum support") Signed-off-by: Thinh Nguyen Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman --- drivers/usb/dwc3/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -1214,7 +1214,7 @@ static void dwc3_get_properties(struct d u8 tx_max_burst_prd; /* default to highest possible threshold */ - lpm_nyet_threshold = 0xff; + lpm_nyet_threshold = 0xf; /* default to -3.5dB de-emphasis */ tx_de_emphasis = 1;