From patchwork Fri Sep 14 02:13:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 10600247 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 969AC17D5 for ; Fri, 14 Sep 2018 02:14:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C330C2B6AE for ; Fri, 14 Sep 2018 02:14:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B78F22B6B2; Fri, 14 Sep 2018 02:14:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5BCE02B6AE for ; Fri, 14 Sep 2018 02:14:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728240AbeINH0g (ORCPT ); Fri, 14 Sep 2018 03:26:36 -0400 Received: from bin-mail-out-06.binero.net ([195.74.38.229]:8663 "EHLO bin-mail-out-06.binero.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728204AbeINH0g (ORCPT ); Fri, 14 Sep 2018 03:26:36 -0400 X-Halon-ID: def0a5c2-b7c3-11e8-b628-0050569116f7 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (unknown [89.233.230.99]) by bin-vsp-out-03.atm.binero.net (Halon) with ESMTPA id def0a5c2-b7c3-11e8-b628-0050569116f7; Fri, 14 Sep 2018 04:14:24 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: Laurent Pinchart , linux-media@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= Subject: [PATCH 0/3] rcar-vin: add support for UDS (Up Down Scaler) Date: Fri, 14 Sep 2018 04:13:42 +0200 Message-Id: <20180914021345.9277-1-niklas.soderlund+renesas@ragnatech.se> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, This series adds support for Renesas R-Car Gen3 VIN Up Down Scaler (UDS). Some VIN instances have access to a often shared UDS which can be used to scale the captured image up or down. If the scaler is shared it can only be used exclusively by one VIN at a time, switching in runtime and detection if a UDS are in use is supported in this series. If the user tries to start a capture on a VIN which would require the use of a scaler but that scaler is in use -EBUSY is returned. Patch 1/3 fix a format alignment issue found when working with UDS support. While patch 2/3 ands the UDS logic and 3/3 defines which VIN on which SoC have access to a UDS and how it's shared. The series is based on top of media-tree/master and is tested on R-Car Gen3 H3, M3-W, M3-N and Gen2 Koelsch (checking for regressions as Gen2 have no UDS). Niklas Söderlund (3): rcar-vin: align format width with hardware limits rcar-vin: add support for UDS (Up Down Scaler) rcar-vin: declare which VINs can use a Up Down Scaler (UDS) drivers/media/platform/rcar-vin/rcar-core.c | 18 +++ drivers/media/platform/rcar-vin/rcar-dma.c | 134 +++++++++++++++++++- drivers/media/platform/rcar-vin/rcar-v4l2.c | 15 +++ drivers/media/platform/rcar-vin/rcar-vin.h | 24 ++++ 4 files changed, 185 insertions(+), 6 deletions(-)