From patchwork Mon Sep 11 08:19:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Adolfsson X-Patchwork-Id: 13379010 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EA576EE7FF4 for ; Mon, 11 Sep 2023 08:20:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233676AbjIKIUD (ORCPT ); Mon, 11 Sep 2023 04:20:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234471AbjIKIUD (ORCPT ); Mon, 11 Sep 2023 04:20:03 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52C55118 for ; Mon, 11 Sep 2023 01:19:57 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-500b66f8b27so7124065e87.3 for ; Mon, 11 Sep 2023 01:19:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1694420395; x=1695025195; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ZgoHp4sSbdLPnwsP7QBEFkRKlD8fQKCxSLeR/YtKKwc=; b=ZyjBhxd/4CH0ce0+zqDz4fqROmajy8086/Sw88k2Glm3NBnek5E/bSp796qDR7Sn/1 VHDimH1/nbwJfHprTCbG9eevCMibjpxI2uGyCYC3z2jyzz2vFCjzNdWXxtdslcAb01Kp CAxdbkd1kdeXX8gLnu+QZhITl36K+w05+ef/I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694420395; x=1695025195; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZgoHp4sSbdLPnwsP7QBEFkRKlD8fQKCxSLeR/YtKKwc=; b=PHMT2z9EAJ1NboZytYkeWa3SL5miNN3fnl/dYrfG/45oXKC3PR/XnEN0tMiddifkqW uNn2oMz3t9TeBeuAbE9VQjMdBzys7T0Yku8YKNbf3lhU7bQLwcl4pO+jxMzrJEObwWNH lpv3+DuG41Oj7Y/ke131vD+UdDRSQdHNOSQc7oxbng1RkofWAFCLxOtzkiG4gkCQsf0p WjLgi7sVCFZJ0ZkdcPFyjNRHNP9xWSlNu5FXFDMmg3awQWS2PwlKHFbbxOd9JV69Hkn6 xIrKyvyx7gF6CrVUnaWa4YNRUbCX9hFmy604RNOuxeac9pEe11j8ldQKf1YoRwlCNfkk xzAg== X-Gm-Message-State: AOJu0YzKpU18m5G8HuANamxHVfWshrLE5SWWQZO/D+p91rvMeqt/awrL 8x1o4AHcj0GpmZQ3i6dN1jQ4RAzYYsBPpiJYMSbVow== X-Google-Smtp-Source: AGHT+IGKXkVlvpzb1jXGc7GPA/z62m6pR7a/3NtlCutcvnuu34bb7zCIn6QwlQhJ2uEpgzghSPTdTA== X-Received: by 2002:a05:6512:3f8:b0:501:bd77:a4b with SMTP id n24-20020a05651203f800b00501bd770a4bmr6358700lfq.9.1694420395351; Mon, 11 Sep 2023 01:19:55 -0700 (PDT) Received: from localhost ([2620:0:1043:12:a329:942b:177a:d4d]) by smtp.gmail.com with UTF8SMTPSA id z28-20020ac25dfc000000b00500cede2786sm1268411lfq.65.2023.09.11.01.19.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 Sep 2023 01:19:54 -0700 (PDT) From: Stefan Adolfsson X-Google-Original-From: Stefan Adolfsson To: Hans Verkuil Cc: Mauro Carvalho Chehab , Benson Leung , Guenter Roeck , Reka Norman , linux-media@vger.kernel.org, chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org, Stefan Adolfsson Subject: [PATCH v2] media: cros-ec-cec: Add Constitution to the match table Date: Mon, 11 Sep 2023 10:19:21 +0200 Message-ID: <20230911081921.3515928-1-sadolfsson@google.com> X-Mailer: git-send-email 2.42.0.283.g2d96d420d3-goog MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org From: Stefan Adolfsson Constitution has two HDMI ports which support CEC: Port B is EC port 0 Port A is EC port 1 This patch depends on "media: cros-ec-cec: Add Dibbi to the match table". Signed-off-by: Stefan Adolfsson --- Changes in v2: Use a NULL-terminated conns array for the match table entry drivers/media/cec/platform/cros-ec/cros-ec-cec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/cec/platform/cros-ec/cros-ec-cec.c b/drivers/media/cec/platform/cros-ec/cros-ec-cec.c index 21361eff50ff..85431af65224 100644 --- a/drivers/media/cec/platform/cros-ec/cros-ec-cec.c +++ b/drivers/media/cec/platform/cros-ec/cros-ec-cec.c @@ -296,6 +296,7 @@ struct cec_dmi_match { static const char *const fizz_conns[] = { "Port B", NULL }; static const char *const dibbi_conns[] = { "Port D", "Port B", NULL }; +static const char *const constitution_conns[] = { "Port B", "Port A", NULL }; static const struct cec_dmi_match cec_dmi_match_table[] = { /* Google Fizz */ @@ -316,6 +317,8 @@ static const struct cec_dmi_match cec_dmi_match_table[] = { { "Google", "Lisbon", "0000:00:02.0", fizz_conns }, /* Google Dibbi */ { "Google", "Dibbi", "0000:00:02.0", dibbi_conns }, + /* Google Constitution */ + { "Google", "Constitution", "0000:00:02.0", constitution_conns }, }; static struct device *cros_ec_cec_find_hdmi_dev(struct device *dev,