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.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham 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 5A248C18E7D for ; Wed, 22 May 2019 09:55:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2417F206BA for ; Wed, 22 May 2019 09:55:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729087AbfEVJzz (ORCPT ); Wed, 22 May 2019 05:55:55 -0400 Received: from lb2-smtp-cloud8.xs4all.net ([194.109.24.25]:43625 "EHLO lb2-smtp-cloud8.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727464AbfEVJzz (ORCPT ); Wed, 22 May 2019 05:55:55 -0400 Received: from tschai.fritz.box ([46.9.252.75]) by smtp-cloud8.xs4all.net with ESMTPA id TNyQhNk4I0YQeTNyThvAkR; Wed, 22 May 2019 11:55:53 +0200 From: Hans Verkuil To: linux-media@vger.kernel.org Subject: [PATCHv2 0/7] cec: various improvements Date: Wed, 22 May 2019 11:55:43 +0200 Message-Id: <20190522095550.22026-1-hverkuil-cisco@xs4all.nl> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4wfDK62QxbSs0xclRzFDPKODNAwOEdBzM+1/kqW6iG0vK1t9o4iX4ADFPmW6Zg9q6P85X2Q0t3hpTJDI5l/7jU4O0JwlYL8aAedeLQZNUuimPA1yY7EgOt yunHCRPzvtiWhdtRdBDF0dmuKw9e5PHoiaGG+UCD4cNEhNrwlS6QZdwbK2qezNBd9YRD1q2C4QEY2g== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org This series adds a new CEC_MSG_FL_RAW flag to skip all CEC message checks and transmit the raw message (if called as root). This is useful when debugging issues with other dubious CEC implementations. It also relaxes an initiator check for Ping and Image/Text View On messages when there is no HPD. Currently the initiator is required to be 0xf, but this is not actually specified anywhere in the CEC specification, and there are indications that some displays ignore messages with initiator 0xf. Regards, Hans Changes since v1: - Added patch 'cec-ioc-g-mode.rst: be more specific when EPERM is returned' - CEC_MSG_FL_RAW now needs CAP_SYS_RAWIO instead of CAP_NET_ADMIN. - Improved the cec-ioc-receive.rst documentation. Hans Verkuil (7): cec: cec_transmit_msg_fh: do sanity checks first cec: move check from cec_transmit to cec_transmit_msg_fh cec: add CEC_MSG_FL_RAW flag and msg_is_raw helper function cec-ioc-receive.rst: document CEC_MSG_FL_RAW cec: support CEC_MSG_FL_RAW cec: allow any initiator for Ping and Image/Text View On cec-ioc-g-mode.rst: be more specific when EPERM is returned .../media/uapi/cec/cec-ioc-g-mode.rst | 3 +- .../media/uapi/cec/cec-ioc-receive.rst | 15 ++- drivers/media/cec/cec-adap.c | 112 +++++++++++------- drivers/media/cec/cec-api.c | 8 -- drivers/media/cec/cec-priv.h | 5 + include/uapi/linux/cec.h | 1 + 6 files changed, 94 insertions(+), 50 deletions(-) -- 2.20.1