From patchwork Thu May 8 08:19:04 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kells Ping X-Patchwork-Id: 888736 Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1299C233735 for ; Thu, 8 May 2025 08:22:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746692552; cv=none; b=FUU154exWF+oGI9IedM646l2lqxKsHIByXOGaS44Br//8WFTA79SwdXQhWKhU5zjJEhtBjEzdT/pvAvk29XfBrRGB46fkE51rhXqLq/zFK7vtgq+8HMwU5l/tfDNEC3KEyMPToz0rkzEZ2/zOlz+3V5Iqk3og2vV9jHC2CxNH0I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746692552; c=relaxed/simple; bh=b3KQHbcle90b43aec774WIneNV4nZ170I27rWBYWVls=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=WO4c0Pt1eh6a7keapqhTMAw5aIfqlJx00gCJbSNnYYVD6V/SeVRxJH+/HNK4ja3hTdpPkQwK2Z4ZzVOsmbSZ+Q5fT1c04WH1SPv/LJFIPjoGN1psM2AZL1VsJiYiW4xiWcmFsut4cefVgeBMRCvBjtGMs2lMjRa/6O0ZasrDiwQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=quanta.corp-partner.google.com; spf=pass smtp.mailfrom=quanta.corp-partner.google.com; dkim=pass (2048-bit key) header.d=quanta-corp-partner-google-com.20230601.gappssmtp.com header.i=@quanta-corp-partner-google-com.20230601.gappssmtp.com header.b=No3iuEuJ; arc=none smtp.client-ip=209.85.210.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=quanta.corp-partner.google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quanta.corp-partner.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quanta-corp-partner-google-com.20230601.gappssmtp.com header.i=@quanta-corp-partner-google-com.20230601.gappssmtp.com header.b="No3iuEuJ" Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-7411f65811cso113163b3a.1 for ; Thu, 08 May 2025 01:22:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quanta-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1746692550; x=1747297350; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mimeEgxpLLLBSpau4R5LqHxy90HrqVEPJpvVRXqSVB0=; b=No3iuEuJ+JE6ijNT7wGW/xIEobi2Y75jiXsksP0KPuRTskKFOsvI4MyCfZ0zNRekps GZ2IJEKPVOjLaoh0HckkubCO3sGQEnUPgmYbEtHFYQn/8RUFD8ZBIaWFo+z1QW1IBjol tixxm8VqnzdEtkoy1WX9QUDEC6BTXJz8xjywRlBu3B4Kn8R0p3DCwzhQ+bfPS5qXr5US xnA5WuDhQFvUlv8y5EwOBtwfk0Uog2ard1/ZZny4pRnGc221YTIJVmsAlYxYn4tn+eHR GYBYiJfx7W7po+3QWCqZp4c2Y/ecjQQ7XGL9q38S2QIw2DZhT1Vt6WSEfqTCBbmH/aUr Eh0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746692550; x=1747297350; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mimeEgxpLLLBSpau4R5LqHxy90HrqVE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C7ZtjQ8Be9/mnnHoybztapFsLeeWUiuanwzBOsdq80SzYVfbDhXjL5n1g== X-Received: by 2002:a05:6a20:d80a:b0:1f5:591b:4f7a with SMTP id adf61e73a8af0-2148d88b926mr9160923637.38.1746692550391; Thu, 08 May 2025 01:22:30 -0700 (PDT) Received: from kells-Predator-PTX17-71.lan (211-75-10-161.hinet-ip.hinet.net. [211.75.10.161]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b1fb3c3d6bcsm10879881a12.61.2025.05.08.01.22.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 May 2025 01:22:30 -0700 (PDT) From: Kells Ping To: LKML Cc: groeck@chromium.org, Kells Ping , Benson Leung , Hans Verkuil , Mauro Carvalho Chehab , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , chrome-platform@lists.linux.dev, linux-media@vger.kernel.org Subject: [PATCH 2/2] [v3] media: platform: cros-ec: Add Dirks to the match table Date: Thu, 8 May 2025 16:19:04 +0800 Message-Id: <20250508161334.2.I4b139dfca0cbb20f0c9096a40b47f097f40ec235@changeid> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250508081904.632442-1-kells.ping@quanta.corp-partner.google.com> References: <20250508081904.632442-1-kells.ping@quanta.corp-partner.google.com> Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The Google Dirks device uses the same approach as the Google Brask which enables the HDMI CEC via the cros-ec-cec driver. Signed-off-by: Kells Ping --- Changes in v3: update ports native driver cec is port 0. bitbang driver cec is port 1. --- drivers/media/cec/platform/cros-ec/cros-ec-cec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 a8d31c3126f8..81b4524c69f4 100644 --- a/drivers/media/cec/platform/cros-ec/cros-ec-cec.c +++ b/drivers/media/cec/platform/cros-ec/cros-ec-cec.c @@ -298,6 +298,7 @@ struct cec_dmi_match { static const char *const port_b_conns[] = { "Port B", NULL }; static const char *const port_db_conns[] = { "Port D", "Port B", NULL }; static const char *const port_ba_conns[] = { "Port B", "Port A", NULL }; +static const char *const port_ab_conns[] = { "Port A", "Port B", NULL }; static const char *const port_d_conns[] = { "Port D", NULL }; static const struct cec_dmi_match cec_dmi_match_table[] = { @@ -330,7 +331,7 @@ static const struct cec_dmi_match cec_dmi_match_table[] = { /* Google Dita */ { "Google", "Dita", "0000:00:02.0", port_db_conns }, /* Google Dirks */ - { "Google", "Dirks", "0000:00:02.0", port_db_conns }, + { "Google", "Dirks", "0000:00:02.0", port_ab_conns }, }; static struct device *cros_ec_cec_find_hdmi_dev(struct device *dev,