From patchwork Sun Aug 15 02:49:13 2021 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: 12437047 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1CF6C4338F for ; Sun, 15 Aug 2021 02:49:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A5A0361002 for ; Sun, 15 Aug 2021 02:49:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233716AbhHOCuO (ORCPT ); Sat, 14 Aug 2021 22:50:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230079AbhHOCuO (ORCPT ); Sat, 14 Aug 2021 22:50:14 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18379C0613CF for ; Sat, 14 Aug 2021 19:49:45 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id f5so18555317wrm.13 for ; Sat, 14 Aug 2021 19:49:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ragnatech-se.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5ChIbjxPC/3cMynWSf7mvKQOps95HwYUJwOFzuOj4DI=; b=O0WtdZXzwKh3+1sHDaKVnzN6oIAE5Lqx0/h2SMV/XCxoFzP4wKTu9VLjM48cXEEriv 6OVyDean67NXOJTx/Ie2R2v8SjWqhlSymmpZr39IUtDhWd2aUjf8XNVkrTh8fEacvHZA 2fVWSh38HGAYDhPI0eeDOqAF8aJ+2Bg8X9GRSPn1s/Jm9Z0jX3gFKDR8zF+rKjQ4a4Jo pE1DVDHGEX4RktvjWmDqlq9FghdBDUDeh2u0KNer0I0FelnmNqW3KQfAnnD9B8y4l4kG Qs9EvEYaoVyUJRaV+47qFYdHDlGCwVLE3Ssbk/55OQiIq23SI4jTibaE/Tnhz/CASrnC RKQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5ChIbjxPC/3cMynWSf7mvKQOps95HwYUJwOFzuOj4DI=; b=Fi2oZNmIruLcqY4B6TiqFvzZzlUshQDR9/Sn4wP09lLDf4VghsjgB6C8N+yLHPGUVe n1I8an3U7Bv7JABRX24a/CMSIqILKVXFzez5WldmiQVhFP6lDwGeqrd639N+N4QHrqMe iO296Mjw1SvJIBsja/g5DgUgaEZs9vbbeSvDUP6KTNX6h3QtyhVPM4FFybEu3dK/AeNP IAbbZJuWNZivvnv90cNAB2wbxe/s87FoASbFxTAJPtr/Pe76901ABtRjlItpXCOhia2f HmEowRo+GUUoRGL3wvGfAU0m87rC6IhJ8+jXrh9VStvfKVWKwPZCJWNseOE1mLu+T72k 1L7w== X-Gm-Message-State: AOAM533dx7EhfFS9YfXATmwslJpTLtXAO73Zd5rbSUj8Ux4PPmO76Zgl a0FEtGBxu4ov7ADgYjCU1XbzYA== X-Google-Smtp-Source: ABdhPJyqjCVOlRlhVSd1rLnh5SyLGI8AgdsMhIV5kMB6qIFDHyAlpHRmiBgJCaKT81Au5sHlehQkyQ== X-Received: by 2002:a5d:508d:: with SMTP id a13mr10883227wrt.172.1628995782912; Sat, 14 Aug 2021 19:49:42 -0700 (PDT) Received: from bismarck.berto.se (p54ac5892.dip0.t-ipconnect.de. [84.172.88.146]) by smtp.googlemail.com with ESMTPSA id h9sm5866342wmb.35.2021.08.14.19.49.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Aug 2021 19:49:42 -0700 (PDT) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: Hans Verkuil , linux-media@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= Subject: [PATCH 0/2] rcar-csi2: Serialize format cfg and improve mutex handling Date: Sun, 15 Aug 2021 04:49:13 +0200 Message-Id: <20210815024915.1183417-1-niklas.soderlund+renesas@ragnatech.se> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Hello Hans, This series improves the mutex handling of the R-Car CSI-2 driver. While working with other drivers it have surfaced that drivers are responsible to serialize format configuration. Patch 1/2 adds a bit of housekeeping to the mutex used in the driver while patch 2/2 adds the format serialization. The series is based on the latest media-tree and tested on M3-N and H3 ES2.0 without any regressions found. Niklas Söderlund (2): media: rcar-csi2: Cleanup mutex on remove and fail media: rcar-csi2: Serialize access to set_fmt and get_fmt drivers/media/platform/rcar-vin/rcar-csi2.c | 25 +++++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-)