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=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no 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 1B392C07E95 for ; Wed, 7 Jul 2021 15:05:23 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C4BDC61CC0 for ; Wed, 7 Jul 2021 15:05:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C4BDC61CC0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=emersion.fr Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4042D6E190; Wed, 7 Jul 2021 15:05:22 +0000 (UTC) Received: from mail-4322.protonmail.ch (mail-4322.protonmail.ch [185.70.43.22]) by gabe.freedesktop.org (Postfix) with ESMTPS id 637276E193 for ; Wed, 7 Jul 2021 15:05:20 +0000 (UTC) Date: Wed, 07 Jul 2021 15:05:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail3; t=1625670317; bh=rZAPUdAYpWrluzUYeNpUT2MZcVIIb1mgZTtYpre2bl4=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=NQvPeNUcOT8PPyld4n5saLgskJfEZvUk1zw2DU/RfCLnuhVrc0c44YCoId5Q895bo jJTLIwCU3nPIye/e8KJos+p/AX0xJoKzU1rvQcajXZL46JM+8dLrhmuknzilDWGvoG dgW2RyaOA8yRpVHQ3NCRPQB0NS4U0hhwmffoCXioe01mo4RiKme1c8aHLNBW1TX8Wx IfkQfrM9U1sCRHXuXQXSE2vqS2TltNEQFqAzhMOfgsrIWhjdDlyQedL4hGR2FDBXGS 1dy2TYBi5vVh+jHHOQGSvd+IVeWSTrHZmfD761Aka3OkDXNblB51j80kS6WIgrKMpJ jKFdjltflZK1w== To: Lee Shawn C From: Simon Ser Subject: Re: [PATCH] drm/dp: follow DP link CTS spec to read link status back Message-ID: In-Reply-To: <20210707150042.6376-1-shawn.c.lee@intel.com> References: <20210707150042.6376-1-shawn.c.lee@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Simon Ser Cc: Jani Nikula , Cooper Chiou , William Tseng , dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" > +=09=09=09=09 DP_LINK_STATUS_SIZE + 2); Suggestion: use sizeof(full_link_stat) here instead to avoid this getting out-of-sync with the real array size?