From patchwork Tue Jun 9 11:58:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 209552 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=-3.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=no 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 DED1DC433DF for ; Tue, 9 Jun 2020 11:59:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BA3BF20812 for ; Tue, 9 Jun 2020 11:59:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=st.com header.i=@st.com header.b="Y1tuZNnu" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729137AbgFIL7C (ORCPT ); Tue, 9 Jun 2020 07:59:02 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:19940 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728051AbgFIL6r (ORCPT ); Tue, 9 Jun 2020 07:58:47 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 059Br24P027366; Tue, 9 Jun 2020 13:58:30 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=TPxI/Mv8K3tdZYuVgGADE6W34oFKrPAwwDxlJkbFzfc=; b=Y1tuZNnu5a6efUw6/Dft/wGewHt4Irnk0K111FXosdcPTp6s4BWXKR6maDXsC4ObZ0+k 9OJirEg3qlt8s4Yj9vhD8LDrsBqxfQuAwxDaPKJEaIVSsHYHeroAL8iY3sD8b8aRjoCY 7N3MoxPXhggVy2Sg4y1ut5N4EgYiLaEGb/erz2FNP1QgOg5rFnMc4F0iWRxEHXsDfv+5 GaAIaoUtz0/4S93zDMwVnjvgcSiI9eaN7Z5PRAEdXKrVLEFghuq/HeQTCU+7j+vde4wJ B6SxFP9nACJzuYpQhUoj+M6Y5mSnfVZ4qRWr27bg6yFkofV1L/uvkS+6jpFv4p43nzeE aw== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 31h8ku8srs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 09 Jun 2020 13:58:30 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B2A52100034; Tue, 9 Jun 2020 13:58:28 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag3node3.st.com [10.75.127.9]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 8157E2ACA01; Tue, 9 Jun 2020 13:58:28 +0200 (CEST) Received: from localhost (10.75.127.49) by SFHDAG3NODE3.st.com (10.75.127.9) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Tue, 9 Jun 2020 13:58:27 +0200 From: Benjamin Gaignard To: , , , CC: , , , , , , , Benjamin Gaignard Subject: [PATCH v5 0/3] DCMI set minimum cpufreq requirement Date: Tue, 9 Jun 2020 13:58:22 +0200 Message-ID: <20200609115825.10748-1-benjamin.gaignard@st.com> X-Mailer: git-send-email 2.15.0 MIME-Version: 1.0 X-Originating-IP: [10.75.127.49] X-ClientProxiedBy: SFHDAG3NODE2.st.com (10.75.127.8) To SFHDAG3NODE3.st.com (10.75.127.9) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216, 18.0.687 definitions=2020-06-09_03:2020-06-09,2020-06-09 signatures=0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org This series allow to STM32 camera interface (DCMI) to require a minimum frequency to the CPUs before start streaming frames from the sensor. The minimum frequency requirement is provided in the devide-tree node. Setting a minimum frequency for the CPUs is needed to ensure a quick handling of the interrupts between two sensor frames and avoid dropping half of them. version 5: - add a mutex to protect dcmi_irq_notifier_notify() - register notifier a probe time version 4: - simplify irq affinity handling by using only dcmi_irq_notifier_notify() version 3: - add a cpumask field to track boosted CPUs - add irq_affinity_notify callback - protect cpumask field with a mutex Benjamin Gaignard (3): dt-bindings: media: stm32-dcmi: Add DCMI min frequency property media: stm32-dcmi: Set minimum cpufreq requirement ARM: dts: stm32: Set DCMI frequency requirement for stm32mp15x .../devicetree/bindings/media/st,stm32-dcmi.yaml | 8 ++ arch/arm/boot/dts/stm32mp151.dtsi | 1 + drivers/media/platform/stm32/stm32-dcmi.c | 137 +++++++++++++++++++-- 3 files changed, 138 insertions(+), 8 deletions(-)