Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3969339ybi; Mon, 29 Jul 2019 16:30:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUFw3bKYFEB3m8d5kyOpJS21bLUJMalbX4fPt7L/5bPXesgBx2R0Wd5Lqp/sWxwKJI4Ucu X-Received: by 2002:a63:e010:: with SMTP id e16mr100130567pgh.285.1564443059387; Mon, 29 Jul 2019 16:30:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564443059; cv=none; d=google.com; s=arc-20160816; b=R81ZjRYIXakSjbJWtl9O5fasdezeiCOVW6WKwpUWDZrYAsktRQh/MkCw8PkB5DJrOS ujF/97RLMS9IbUbNp0CVbEGjcF/KgDzGus/+4DUoiixS+tuCS858JQn15oZYQe4OCWTb z94mo4fzgjRZfwdOUUviAQr3PoRRaZvyK9IhasHGh5H5XyTPansWQal0Sw49+QLICx3o oIwmdO/bblYTT2INojffSJHIh6YTSeBA3WC+wHQu8GcSZ8KPoQ0Q0Hm9Rw/ITXE+S2Sg 6UeMT/r2H4FS85BmOWT8YKa81Irfgi2evN6WPI3z5/SCz0bWRBCFXMZT6KdOOnHnu4Bl qphQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=g4sDIW+ZP5IimhArHNp80WLQ9eyBKtu3HgEDS7rQC04=; b=y/dOmYEYF75k84n50hy1XDrJKIUpS+Nefpy0La0cz+FxcqfpP/uoU4OE154np+ACzE J9zEmWVMoHlbw8MPW+br8qjgP2fk+w00rVgQ0YPlD42Xj65t5Y6C3YBM9bgOyyxrotgv 48aumkDuUwTTtXNcPCwFt4LQ7v0DTZfD9oWJBUlI4usWE1ZhceeEWN9dYwO/x2JMgE2R czV1Vq4Wdnr/nh8hdZAPQ4+/ZXM9Q1Wtfgcw57ZC2HT5eQOXMJdr3P664VN2RRWI7FJl lMgZMTlzPfvhLN5TfFx2gsLaHh3DqZGyPh4LGKgfjMoJw3ABBUZcbFpJ38XXKvHjH5G6 4VkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Vml1v06p; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bo17si9907312pjb.35.2019.07.29.16.30.34; Mon, 29 Jul 2019 16:30:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Vml1v06p; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729671AbfG2TZi (ORCPT + 99 others); Mon, 29 Jul 2019 15:25:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:37932 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729660AbfG2TZg (ORCPT ); Mon, 29 Jul 2019 15:25:36 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2C31221655; Mon, 29 Jul 2019 19:25:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564428335; bh=Ri8Lf7KuVoUcz8vIt4dVavL3u7/BioDQ0jRea6h2ctc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vml1v06pcpQFQ6wAM+Rk3UKALyddp3I+Mpl7SU8xRZZGLrRdF9fFXpaD1SrevNSNV oE9Hpk0yAmzDa9fTU6jSRqCG75rNQB1BLkbi+3rJCCxabhdMl4vUnVvjyIsh5xL8fc AmllCVJgX7k4rE4L9ep5PNBBU2M2EaDi4KijsShM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kieran Bingham , Laurent Pinchart , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 4.14 043/293] media: fdp1: Support M3N and E3 platforms Date: Mon, 29 Jul 2019 21:18:54 +0200 Message-Id: <20190729190826.082257146@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190820.321094988@linuxfoundation.org> References: <20190729190820.321094988@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 4e8c120de9268fc26f583268b9d22e7d37c4595f ] New Gen3 R-Car platforms incorporate the FDP1 with an updated version register. No code change is required to support these targets, but they will currently report an error stating that the device can not be identified. Update the driver to match against the new device types. Signed-off-by: Kieran Bingham Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/platform/rcar_fdp1.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/media/platform/rcar_fdp1.c b/drivers/media/platform/rcar_fdp1.c index 3245bc45f4a0..a889332d5d30 100644 --- a/drivers/media/platform/rcar_fdp1.c +++ b/drivers/media/platform/rcar_fdp1.c @@ -261,6 +261,8 @@ MODULE_PARM_DESC(debug, "activate debug info"); #define FD1_IP_H3_ES1 0x02010101 #define FD1_IP_M3W 0x02010202 #define FD1_IP_H3 0x02010203 +#define FD1_IP_M3N 0x02010204 +#define FD1_IP_E3 0x02010205 /* LUTs */ #define FD1_LUT_DIF_ADJ 0x1000 @@ -2369,6 +2371,12 @@ static int fdp1_probe(struct platform_device *pdev) case FD1_IP_H3: dprintk(fdp1, "FDP1 Version R-Car H3\n"); break; + case FD1_IP_M3N: + dprintk(fdp1, "FDP1 Version R-Car M3N\n"); + break; + case FD1_IP_E3: + dprintk(fdp1, "FDP1 Version R-Car E3\n"); + break; default: dev_err(fdp1->dev, "FDP1 Unidentifiable (0x%08x)\n", hw_version); -- 2.20.1