From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 B26A03F0ABA for ; Fri, 10 Jul 2026 11:11:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783681906; cv=none; b=I6ma8NmOgyj8kij/0KhTWU9MOXeYH1fZwy1/cmfr/3UKGWhnoK8KfCcOsyDzcJoPtCseqeOOTbmvd37y2WyPCp1mLmGKNICshBwmezK9IHHSX6FHCoytV4Nk1c+cimVa7rbLrvrGS2F2TpcHz8WtU1HZ01TmcrGXh37fCrSLR4k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783681906; c=relaxed/simple; bh=XRtbJZiwC5+dvOIlhFLQOncAV3aOyVN3Ev/NvvBYz8w=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=rf7h/cUHZfN45UJnIK/Rh/L2vsT/wlypwd5KNtGH+/3Qh6XtRSTrLnidVY5SNG4OfGB3mqFa6B38rVt4ogQCgu9JGBRsOgAfThn0BE8bV5o7TRlwVsW4qG/aoxB8SmuIi/TOsIROO2K9Uj4cof0kYAukkdQ/6qm9Z48Efy4OgdY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JjvEe2zl; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JjvEe2zl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C81F31F000E9; Fri, 10 Jul 2026 11:11:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1783681905; bh=FWsMMSo+PuYNJAxtmSkVQANGL2vkRG4i/767vV3G3MA=; h=From:To:Subject:Date; b=JjvEe2zlYokJyTozhnh22cQKpuWa/HdkASvt4C8XiawN7qu6DEIIFCF1CQnlx6012 jT9IskCaYojr6ac1U7RPhs4F7cRBLmyQ2oh1DiM04Qd4n1rCFHhCH4wfdnjMdwRpq2 DOD8shwAVi2EllBkxA2OEgzjfrKJtJZHD6p2Uwwpi5YozbXCR/QauTRxlg9IM/Hhi8 H8P0dg6JPlStd/KJxTwU+A+yGGdAesukis/7IWDDXbGXFQINJSQfsCISAcm9gHRipS PbD6U/WGHr3ExoDp/6af/2KFo0Xkrw/tYRWDKRpp6w1e6jmxyxFCZO67KRoWQCoPNa sYsiyhdr5PNRw== From: Hans Verkuil To: linux-media@vger.kernel.org Subject: [PATCH 0/8] media: cec/core: fixes and improvements Date: Fri, 10 Jul 2026 13:07:28 +0200 Message-ID: X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Various cec core fixes and improvements. Most notably the concept of 'core events' was dropped to simplify the code and allow for more STATE_CHANGE events. Also the process to claim a logical address was improved: retry polling if a poll timed out or aborted instead of bailing out, and if it was not possible to claim a logical address, then expose that to userspace through a new flag. A new error injection debugfs entry was added as well to allow testing timeouts. A separate patch for cec-compliance will be posted that tests this with the vivid driver. Regards, Hans Hans Verkuil (8): media: cec/core: max_retries -> max_attempts media: cec/core: drop ABORTED/TIMEOUT check media: cec/core: handle core events like normal events media: cec/core: drop cec_post_state_event call media: cec/core: flush stale STATE_CHANGE events media: cec/core: add a new CEC_LOG_ADDRS_FL_CONFIG_FAILED flag media: cec/core: cec-pin: toggle rx_toggle when arb lost media: cec/core: add error-inj-tx-timeouts debugfs entry .../media/cec/cec-ioc-adap-g-log-addrs.rst | 7 ++ drivers/media/cec/core/cec-adap.c | 85 ++++++++++++------- drivers/media/cec/core/cec-api.c | 5 +- drivers/media/cec/core/cec-core.c | 31 +++++++ drivers/media/cec/core/cec-pin.c | 10 ++- include/media/cec.h | 4 +- include/uapi/linux/cec.h | 2 + 7 files changed, 107 insertions(+), 37 deletions(-) -- 2.53.0