Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1699421ybl; Wed, 8 Jan 2020 23:37:13 -0800 (PST) X-Google-Smtp-Source: APXvYqytclfQMq/++7/VH72Ybqi8vf7QCKzfxWwME5k9sOVgAtPA+2nxOfqnrZvw/k7AKefWm+hg X-Received: by 2002:a05:6808:30d:: with SMTP id i13mr1984306oie.144.1578555433255; Wed, 08 Jan 2020 23:37:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578555433; cv=none; d=google.com; s=arc-20160816; b=naiqAKeAiK/698rSY9501VdFsZi5VwP5mvnvaUPL/x4ImIoFbhqo+r0eFQejGGRxHz t1SfUiUAzabdWgIfdejbXyl3ivKyLNNgQA9QI9E45SkqH+gzqogKZ/HEV2irg11z3huX 4k9Sus4pY6pH0p1Flf3rK/mkQUiXFhXIM8UEQ7LCW1FreQDVKbRVU3hlzoqBIrEUkm9s g1tm8XlcwszTBtSDNMLsfDZNmdLerP/yk1EwwEMZhG6J3JIqt6h6eSDYeOD6TCOb7gNs GPzed4AzymKr+3aPx8X0YbgY/WQurlqFPathng7BuO+J549ELp4VzVb1+ROpun3utZZ0 rxDg== 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; bh=D8IcizUIBDos13wPA6bqSAU69sly+3Q5Q8csSTJutnA=; b=qo01t4JK6Rv7RT5VV4GMpnycpYrmNizy3FhjJQ0WuCJ0+WjVhdRmCszFWV0tH+mv5V tdDXYVNst1BJHg2ftpJPvRfQPOxxN3Ql4R+A0CSLv5uEa1WKi38srfsciL2tl3L+yd15 ozmd6SJgPdpPV1bio3nYl4pgKHDDhg4gHkT4v/DejJnvYIOVnNtj/+mq23KQSGzMlI/S 23AN/dkc8g6mhKocFuKgUQ66qnMAkT1cZrsSwlGLkgCe9pKjTNROl+9KZm8C1VsC22vm ANzaipeaxeW5LDxQPJjnAuFDZK71wTiE7vMP3lMZ+Gxc/lomMj/cxFRxOMHsR5MmmisY FAEA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q126si3214352oia.8.2020.01.08.23.37.00; Wed, 08 Jan 2020 23:37:13 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728303AbgAIHfB (ORCPT + 99 others); Thu, 9 Jan 2020 02:35:01 -0500 Received: from mail.manjaro.org ([176.9.38.148]:40564 "EHLO manjaro.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728164AbgAIHfA (ORCPT ); Thu, 9 Jan 2020 02:35:00 -0500 Received: from localhost (localhost [127.0.0.1]) by manjaro.org (Postfix) with ESMTP id 90B2136E4E25; Thu, 9 Jan 2020 08:34:59 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at manjaro.org Received: from manjaro.org ([127.0.0.1]) by localhost (manjaro.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hxXOWBz9kZNY; Thu, 9 Jan 2020 08:34:56 +0100 (CET) From: Tobias Schramm To: Sandy Huang , =?UTF-8?q?Heiko=20St=C3=BCbner?= , David Airlie , Daniel Vetter Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Tobias Schramm Subject: [PATCH v2 1/1] drm/rockchip: fix integer type used for storing dp data rate Date: Thu, 9 Jan 2020 08:31:29 +0100 Message-Id: <20200109073129.378507-2-t.schramm@manjaro.org> In-Reply-To: <20200109073129.378507-1-t.schramm@manjaro.org> References: <20200109073129.378507-1-t.schramm@manjaro.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 commmit 2589c4025f13 ("drm/rockchip: Avoid drm_dp_link helpers") changes the type of variables used to store the display port data rate and number of lanes to u8. However u8 is not sufficient to store the link data rate of the display port. This commit reverts the type of data rate to unsigned int. Signed-off-by: Tobias Schramm --- drivers/gpu/drm/rockchip/cdn-dp-core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/cdn-dp-core.h b/drivers/gpu/drm/rockchip/cdn-dp-core.h index 83c4586665b4..81ac9b658a70 100644 --- a/drivers/gpu/drm/rockchip/cdn-dp-core.h +++ b/drivers/gpu/drm/rockchip/cdn-dp-core.h @@ -95,7 +95,7 @@ struct cdn_dp_device { struct cdn_dp_port *port[MAX_PHY]; u8 ports; u8 max_lanes; - u8 max_rate; + unsigned int max_rate; u8 lanes; int active_port; -- 2.24.1