Message ID | 20240219-adv7511-cec-edid-v3-0-445aed2f1cd7@bang-olufsen.dk |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-71942-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp22792dyc; Mon, 19 Feb 2024 12:25:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVvUdtZZ9TJ0SCXZo+x+/GexdpYT1G9fg3Up67gHKWfuZfZ2YRujhewjEw+THueTj17Wq54k29DluIPyA5/NPKlItWepg== X-Google-Smtp-Source: AGHT+IG2PlUD6nJyVpug3hLimRRXfswphOBAFb4/Pgpegvwr0//0NerjxTPDh1yrQcNTzMfmpHb2 X-Received: by 2002:a05:6a00:3241:b0:6e0:4556:4a1a with SMTP id bn1-20020a056a00324100b006e045564a1amr10116574pfb.33.1708374305663; Mon, 19 Feb 2024 12:25:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708374305; cv=pass; d=google.com; s=arc-20160816; b=k37XLjvCk98D3CrMgQtN079IQmz9LJ8zXXJVPokU0DH61iL2pQaLNzOnFvOLYjwbW6 JIHSvDCUjLBdC00RKpyTQpms3KdXaA5lChMSYQkP+oOjIw06DSlVMyi3BFEMPyppNi9b 8/gH2l9bQCnpiauVoCvYVD0pZX6oUgUFMLZyCHSZvLsp+hCbha4QlRVETzJnf9KiUM6a ugsaEcLOWw1vXsuKVtz5Pb/zWU4o+pgAypqx6WpQtCt8CyMFWU33vvZp9h6qnmzamltf UAyclcC+evY/XA0x+VCT+txq74tU1TBw3LIl2SaqBYKmlcQz5ZgIduu9Fy2TH2SUJeKe wWTQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=mguEP1Gv9Bi8kebx8E+Cy9id6Us4gzQ3hJk5w5gRw5A=; fh=ydulqYqzRgtodS6f6e63tjxzqAXo+nDD8TuQAI7qv6o=; b=kR3EDi+pQBlUfPFnNdeg/aB3gpEeko9F0su1Kpt1lTjcZi3X3IFDeLcX8baZWbkwUB TzjE1EAKYcEUqAxbhbc1S/NZ0459aZId11X+fSUrhE43FluRM9WkITfWhieLCkbVske5 SUy38G6VfevS+386wW++ESCJ2mAXiOKKegk4ar5A/dLY7PwblNPyTUJl16d+rjQIHVeX ecxaLA0EsLFi5AswPM1jVHPe45smYZ4eARCcl5435zUJ9w/1wfppBEQl43PCP61MflAW ruGL01221cpMxJhyk0fRdri6JL3uWgr7eOKZSEcxpLZtuqMbVQYBdvP88JuKEE2Zglme ++Gg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@pqrs.dk header.s=key1 header.b="1v/SkDNa"; arc=pass (i=1 spf=pass spfdomain=pqrs.dk dkim=pass dkdomain=pqrs.dk); spf=pass (google.com: domain of linux-kernel+bounces-71942-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71942-ouuuleilei=gmail.com@vger.kernel.org" Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id y15-20020aa7804f000000b006e086ac9d5dsi4973287pfm.105.2024.02.19.12.25.05 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 12:25:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71942-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@pqrs.dk header.s=key1 header.b="1v/SkDNa"; arc=pass (i=1 spf=pass spfdomain=pqrs.dk dkim=pass dkdomain=pqrs.dk); spf=pass (google.com: domain of linux-kernel+bounces-71942-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71942-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id D9219B243AA for <ouuuleilei@gmail.com>; Mon, 19 Feb 2024 20:13:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 57E64537FE; Mon, 19 Feb 2024 20:13:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pqrs.dk header.i=@pqrs.dk header.b="1v/SkDNa" Received: from out-182.mta0.migadu.com (out-182.mta0.migadu.com [91.218.175.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4FCEC374DD for <linux-kernel@vger.kernel.org>; Mon, 19 Feb 2024 20:13:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708373593; cv=none; b=IyPctfC5rzUYz9w2oVQ1CEu8qJHn6uZseVqVI92shf14ufsaMaXZ+qwpzEI36Obh0YhV/hIyWJKWqg3dnxoRwSPXjL2NBhAArrhHxt7Q/nwxywpQUJByIYKOlAUtdi352oLSt/an8lAWsnMZTDHCmunR6Ht/DqtWqae8MLAZfds= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708373593; c=relaxed/simple; bh=GiZmlgeKTMCkZ8D5oBlu3UrTyPPfMRdiZij9U/zUGGw=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=YF82Fp6TnMfCY2I0NFVAojtUh1k4kWGCJcBY4dD91YinN1b3NVdcl+G0L7kFTwNIi8t3GDNe4SQkLwyPsCeMGAMlsnyM2Ku5kFFKHR0r3Qeu6k/hSB3LoeEpuaV1kovuAxP1iGMk6Htu0Idm95pXv7D7A37QqPwEdm/91SEky3Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pqrs.dk; spf=pass smtp.mailfrom=pqrs.dk; dkim=pass (2048-bit key) header.d=pqrs.dk header.i=@pqrs.dk header.b=1v/SkDNa; arc=none smtp.client-ip=91.218.175.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pqrs.dk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pqrs.dk X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pqrs.dk; s=key1; t=1708373586; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mguEP1Gv9Bi8kebx8E+Cy9id6Us4gzQ3hJk5w5gRw5A=; b=1v/SkDNaRggd3fhA6WuwSDFAXz2yqhhxP+RTeyhMfS32xGBW49Y+SICHJmMpMws41ocvO3 wizWAyQxKKIpy7A16tNchfnITb7cgnoWufGqWtuyW/gvUKXL+gbUdEqs4S4eQNG6ED6t7f WmF3R3Ae2WhdlrgEDCU0CZ8ytfT830+a49eFMRF69LO33GFILL8AXvOEVWGPx+PJ8RAwbp 80V5h55xysVvMr5NxY4nigRB+h16xDcAtIH+7TB9usSOAvE/0mx0ilMC2GaPYBRc6WgBSR 2bIx/dL3R2xkNiHev9T3GadTCg1Wzexf7mfxi0MDSG/2j5+L8FKjMqJkdeoeSg== From: =?utf-8?q?Alvin_=C5=A0ipraga?= <alvin@pqrs.dk> Subject: [PATCH v3 0/2] drm/bridge: adv7511: get edid in hpd_work to update CEC phys address Date: Mon, 19 Feb 2024 21:12:57 +0100 Message-Id: <20240219-adv7511-cec-edid-v3-0-445aed2f1cd7@bang-olufsen.dk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAEq202UC/33OwQrCMAyA4VcZORtpOsvUk+8hHro2cUXZpNWij L273S4eFI9/IF8yQuIYOMG+GiFyDikMfYl6VYHrbH9mDL40aKVrUrRB63NjiNCxQ/bBo0hjWl9 bt9M7KGu3yBKeC3k8le5Cug/xtVzINE//YJmQ0JqtY8uqNQ0f2vIEDteHJO7X/gIzmfWHIf2L0 ahQFBtmK16c/mamaXoDUMpTf/0AAAA= To: Andrzej Hajda <andrzej.hajda@intel.com>, Neil Armstrong <neil.armstrong@linaro.org>, Robert Foss <rfoss@kernel.org>, Laurent Pinchart <Laurent.pinchart@ideasonboard.com>, Jonas Karlman <jonas@kwiboo.se>, Jernej Skrabec <jernej.skrabec@gmail.com>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Hans Verkuil <hverkuil-cisco@xs4all.nl> Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, =?utf-8?q?Alvin_=C5=A0ipraga?= <alsi@bang-olufsen.dk> X-Migadu-Flow: FLOW_OUT X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791359592261731466 X-GMAIL-MSGID: 1791360295796291966 |
Series |
drm/bridge: adv7511: get edid in hpd_work to update CEC phys address
|
|
Message
Alvin Šipraga
Feb. 19, 2024, 8:12 p.m. UTC
This series fixes a small bug where the CEC adapter could have an
invalid CEC address even though we got a hotplug connect and could have
read it.
Signed-off-by: Alvin Šipraga <alsi@bang-olufsen.dk>
---
Changes in v3:
- rebase on latest drm-misc-fixes
- remove redundant NULL check before kfree()
- collect Robert's Reviewed-by
- Link to v2: https://lore.kernel.org/r/20231124-adv7511-cec-edid-v2-0-f0e5eeafdfc2@bang-olufsen.dk
Changes in v2:
- Rearrange driver code to avoid the previous prototype of
adv7511_get_edid(), per Laurent's feedback
- Free the returned EDID to prevent a memory leak, per Jani's comment
- Link to v1: https://lore.kernel.org/r/20231014-adv7511-cec-edid-v1-1-a58ceae0b57e@bang-olufsen.dk
---
Alvin Šipraga (2):
drm/bridge: adv7511: rearrange hotplug work code
drm/bridge: adv7511: get edid in hpd_work to update CEC phys address
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 153 ++++++++++++++++-----------
1 file changed, 89 insertions(+), 64 deletions(-)
---
base-commit: 335126937753844d36036984e96a8f343538a778
change-id: 20231014-adv7511-cec-edid-ff75bd3ac929