From patchwork Sun Jan 30 23:58:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Scally X-Patchwork-Id: 15299 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 52EF3BDCBF for ; Sun, 30 Jan 2022 23:59:12 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 5EC5E609E4; Mon, 31 Jan 2022 00:59:11 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="R+kuABtg"; dkim-atps=neutral Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 310BB60986 for ; Mon, 31 Jan 2022 00:59:08 +0100 (CET) Received: by mail-wr1-x431.google.com with SMTP id m14so21835260wrg.12 for ; Sun, 30 Jan 2022 15:59:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=w0T9EcKMpQUVHCpgvBm4+xMsufqtQ6UT10jHk3vORD0=; b=R+kuABtgCl3FMxDyxw9I8pPuCBuFIZqnzmqPi7FsQIW6P5Hg09ySwXKlTBnsXp9xlM pYBEfehgI/0jyxXOEKxQnpCGcT4Jkhi3jd3pPvGkyMXFCGz+4myzTtHm+m8vEtHkISGC h/gd+Ttk6jKDn8RQKY1+YvmWj9YrH3Dn/ZKc8cdvQ/9O5gFb5c1/XHGXqyjaFvoW30+0 w/iWId/zKjg2HRNJpXQ6FY+lhokvoC2ia0TXZkzfkzhdyoah1ZKZr2C7lRz924vLFzNt YLVI4jBPviByhK4aoqHYwlazfFAJ3mIM0v1UEVcP/875jAg8msV/74fXcg0Xt1iP7qlU Tiaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=w0T9EcKMpQUVHCpgvBm4+xMsufqtQ6UT10jHk3vORD0=; b=p1xWemv8M6Rg0QOYFIN3OuWvXDIishCGQL6lSQRviXZ26U5JBSsAdMRcLvTW9/PxPM Gh/8ohjHYV5iN8OKWTe6D2ozu2zUtJDilb1/7+OtlC679ElpLJKqOau3q9I1lRUE52EA DclDcLOwPme8uxrErdTJJxO3Z1+FRE08vbUH4fH2cMKEvBNGSDqxQUvmIijv57RXrwj4 /e/x/VfgiKiS8XwukDlwhL4RwjoWtY3SYKjNfaQ3LwmcgvFGhzDKWpRwKmF7FYDZqaqq Qzf5qQMRat22QExoSLXFTExcZHLNN4IpWa9IcyaG2/aalulR/aFTkRualdUO84iJeCWy sO3w== X-Gm-Message-State: AOAM532yduNmxZT1ZBy+rb5Up203rzgzF8mY36QKAcvwu8II2Y+ZuQXB dsA44vCljB9ArO0Pks4OAo4= X-Google-Smtp-Source: ABdhPJybaDovEa+FfJYHdDFeryAbCdBtmsrr6X9qpt2t18dQ/hIqOImMamQVlLcBeBjC++7Ummelhw== X-Received: by 2002:a5d:64e5:: with SMTP id g5mr6828398wri.162.1643587148012; Sun, 30 Jan 2022 15:59:08 -0800 (PST) Received: from localhost.localdomain (cpc141996-chfd3-2-0-cust928.12-3.cable.virginm.net. [86.13.91.161]) by smtp.gmail.com with ESMTPSA id 11sm11993663wrb.30.2022.01.30.15.59.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Jan 2022 15:59:07 -0800 (PST) From: Daniel Scally To: linux-media@vger.kernel.org, libcamera-devel@lists.libcamera.org Date: Sun, 30 Jan 2022 23:58:17 +0000 Message-Id: <20220130235821.48076-3-djrscally@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220130235821.48076-1-djrscally@gmail.com> References: <20220130235821.48076-1-djrscally@gmail.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 2/6] media: media.h: Add new media link type X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: sakari.ailus@linux.intel.com Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" To describe in the kernel the connection between devices and their supporting peripherals (for example, a camera sensor and the vcm driving the focusing lens for it), add a new type of media link to introduce the concept of these ancillary links. Signed-off-by: Daniel Scally Reviewed-by: Laurent Pinchart --- Changes since v1: - None changes since the rfc: - Split out into its own patch (mostly so it can be followed by patch #3, which corrects some media-core code that is otherwise broken by the new links) include/uapi/linux/media.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/media.h b/include/uapi/linux/media.h index 200fa8462b90..afbae7213d35 100644 --- a/include/uapi/linux/media.h +++ b/include/uapi/linux/media.h @@ -226,6 +226,7 @@ struct media_pad_desc { #define MEDIA_LNK_FL_LINK_TYPE (0xf << 28) # define MEDIA_LNK_FL_DATA_LINK (0 << 28) # define MEDIA_LNK_FL_INTERFACE_LINK (1 << 28) +# define MEDIA_LNK_FL_ANCILLARY_LINK (2 << 28) struct media_link_desc { struct media_pad_desc source;