From patchwork Mon Aug 17 14:35:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 11718369 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7C4B014F6 for ; Mon, 17 Aug 2020 14:32:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6509620729 for ; Mon, 17 Aug 2020 14:32:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729045AbgHQOcI (ORCPT ); Mon, 17 Aug 2020 10:32:08 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:48911 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729043AbgHQOcH (ORCPT ); Mon, 17 Aug 2020 10:32:07 -0400 X-Originating-IP: 93.34.118.233 Received: from uno.lan (93-34-118-233.ip49.fastwebnet.it [93.34.118.233]) (Authenticated sender: jacopo@jmondi.org) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id C80F9C0008; Mon, 17 Aug 2020 14:32:01 +0000 (UTC) From: Jacopo Mondi To: linux-renesas-soc@vger.kernel.org, linux-media@vger.kernel.org, Mauro Carvalho Chehab Cc: Jacopo Mondi , Kieran Bingham , Laurent Pinchart , =?utf-8?q?Niklas_S?= =?utf-8?q?=C3=B6derlund?= , sakari.ailus@iki.fi, hverkuil@xs4all.nl, hyunk@xilinx.com, manivannan.sadhasivam@linaro.org Subject: [PATCH 0/4] media: i2c: max9286: Use remote endpoint image format Date: Mon, 17 Aug 2020 16:35:36 +0200 Message-Id: <20200817143540.247340-1-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org In order to prepare to support multiple camera modules, which deliver image streams in different formats, modify the max9286 driver in order to remote the hardcoded formats it currently exposes. The image formats, both for ACTIVE and TRY formats, are retrieved from the remote subdevices instead of being hard-coded. This series also dis-allow setting any format on the max9286 sink pads, as the format only depends on the remote end and the MAX9286 chip cannot perform any transformation of the image stream it de-serialize from GMSL bus. Thanks j Jacopo Mondi (4): media: i2c: max9286: Initialize try formats media: i2c: max9286: Get format from remote ends media: i2c: max9286: Do not allow changing format media: i2c: max9286: Remove cached formats drivers/media/i2c/max9286.c | 124 +++++++++++++++--------------------- 1 file changed, 51 insertions(+), 73 deletions(-) base-commit: f45882cfb152f5d3a421fd58f177f227e44843b9 --- 2.27.0