Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1670162ybl; Wed, 8 Jan 2020 22:59:40 -0800 (PST) X-Google-Smtp-Source: APXvYqwznkQM3Y3i88sPhnh0ZOdlBijmEmN9jdyxxQ1fWShqTehM59zxiIRquw4a/e+8mOAL42Be X-Received: by 2002:a9d:6d10:: with SMTP id o16mr7579349otp.28.1578553180651; Wed, 08 Jan 2020 22:59:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578553180; cv=none; d=google.com; s=arc-20160816; b=xg/hSEnXtUI65xgbKje+GMLVVbNiLhhlKZSAb1ysLbCe18z8f9WK7Oj64D7We5hECN /cSOoKhB4RaMZdOVZFMP2bISU47k/5aLNyAgw1Ji/gyZnEmujFjFM8jcGCvsMEMCFNPr K6OFmJP2xcLcVlsLXSBoCiRcoctmJBrLvP4W2rrwv3J4BAc8hhUiFsbYuYY8LyWPGqPp emKozOZso0O/EBZ3m2HmnCe3A8icIEh7aZ254OSoxL0Wsvyu5YyEETKu7aa6z+o2G8fk zL+oP6yzMTsisfixMkjnw3ASUiqnNbnoZ9iEbjuhr/GA5DIuK4c41mfnwCdhlDIcgIzV IFgw== 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 :content-language:in-reply-to:mime-version:date:message-id:from :references:cc:to:subject; bh=8mgfXd/XdYrrhHydeDhsHpqIzt1t8pkiGORtS7jzUyA=; b=L5G5Uo7DGxmVsbIIz4KvF13Kt6Uoag3mm0c+qBSeuNLo+NnKO7QOw5r2eLDhilYztR wfkXGMxm2e5xYNqJqeHF1GsjuK3ARFOVyf7yo//CupMVDNLcVg1d2ReWx2BcbMUrhdSN A0xbWUEVWx/2pkKY71EK+bu89HvAwx1/UjpzjxkBDuxIfwWxQgQGJSS80Nc0ctVii31u vFzeKGrkoaMbq0B5oBQITmvMAxY4rq5xVm1IoauGcCmHGk5RweVKcs4H3N1GEKIivVaw vTojlpcbCVjeDE6EVcQ8poBtrk41qoW/ZX8uUKii1OzqgIxL3GNbPC1W9bJnkIqRovzd 5mJg== 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 r26si3303160otc.163.2020.01.08.22.59.28; Wed, 08 Jan 2020 22:59:40 -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 S1728182AbgAIG6p (ORCPT + 99 others); Thu, 9 Jan 2020 01:58:45 -0500 Received: from mail.manjaro.org ([176.9.38.148]:37720 "EHLO manjaro.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728105AbgAIG6o (ORCPT ); Thu, 9 Jan 2020 01:58:44 -0500 Received: from localhost (localhost [127.0.0.1]) by manjaro.org (Postfix) with ESMTP id 4F46036E4E03; Thu, 9 Jan 2020 07:58:43 +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 INa9G9XjTyTz; Thu, 9 Jan 2020 07:58:40 +0100 (CET) Subject: Re: [PATCH 1/1] drm/rockchip: fix integer type used for storing dp data rate and lane count To: =?UTF-8?Q?Heiko_St=c3=bcbner?= , Tobias Schramm Cc: David Airlie , Sandy Huang , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org References: <20200108223949.355975-1-t.schramm@manjaro.org> <20200108223949.355975-2-t.schramm@manjaro.org> <2028959.b8b8FNkPgY@diego> From: Tobias Schramm Message-ID: <2b02f9e1-5aa0-9d21-16e4-251fffbb736a@manjaro.org> Date: Thu, 9 Jan 2020 07:56:05 +0100 MIME-Version: 1.0 In-Reply-To: <2028959.b8b8FNkPgY@diego> Content-Type: text/plain; charset=utf-8 Content-Language: en-US-large Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 09.01.20 um 01:15 schrieb Heiko Stübner: > Am Mittwoch, 8. Januar 2020, 23:39:49 CET schrieb Tobias Schramm: >> commit 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 both the number of lanes and the data >> rate to unsigned int. >> >> Signed-off-by: Tobias Schramm >> --- >> drivers/gpu/drm/rockchip/cdn-dp-core.h | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/gpu/drm/rockchip/cdn-dp-core.h b/drivers/gpu/drm/rockchip/cdn-dp-core.h >> index 83c4586665b4..806cb0b08982 100644 >> --- a/drivers/gpu/drm/rockchip/cdn-dp-core.h >> +++ b/drivers/gpu/drm/rockchip/cdn-dp-core.h >> @@ -94,8 +94,8 @@ struct cdn_dp_device { >> struct video_info video_info; >> struct cdn_dp_port *port[MAX_PHY]; >> u8 ports; >> - u8 max_lanes; >> - u8 max_rate; >> + unsigned int max_lanes; > > although I would think u8 should be enough for max_lanes? > There shouldn't be be more than 255 dp lanes? True. I'll test and send a v2. Thanks, Tobias > > Heiko > >> + unsigned int max_rate; >> u8 lanes; >> int active_port; >> >> > > > > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel >