Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp67622ybg; Mon, 27 Jul 2020 23:40:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFBeSAVCjxjfFYaFW6ghYSmplEIvZSvuLd9ALPl1K+qL+nOyDpFTaBP5RzyVlDCcN78Nbd X-Received: by 2002:a17:906:7698:: with SMTP id o24mr18133222ejm.182.1595918430973; Mon, 27 Jul 2020 23:40:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595918430; cv=none; d=google.com; s=arc-20160816; b=wdnP3TXCBl2uky+QB2e1fzY+aBF5C8hEf0kXjZTeERM8fm1MnjzCdKgDDbQXw0Qi5t esEAdD6yHWrqlNTRaAz3sOJf9mt19R1yanHB7XnQUEVsn79/EFmTH3tEQBIlL2tjPlne Q+u6MS8gJKUSwutclV2n/0bzie/M701xj29pjh7iHDmGAJ3OlCkiZWfPJiuOKeH+G+qo XypjHBl9J7w+8zMLkjY/3fqyLME9zWdQ3gW20B+Xp7jghy8EOlQykxlkQt4808NUe+7f eg5HrAXhtsO5TAlHfIjD1md8glmAgGmbzeOu+qDDjN9EDhznd/WZ4ldTRfB3LxoaOr0c 5Bsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=qmwJq+3D0GJBCPkFrePoSga3huVJSD32b8tD9JrjayE=; b=uWSTSpEw3/4Yvn5sM5XyLQj963ZjH8sjyljnSnML4PK5PhYb0yyrKeX8KhTrTbylsw 7C/2fmH8QaCbRTQpb8XkGv+z+5tc2GdwF4fEioxC/0Vw0F7UdSiDpnTygc36PAbAfdU5 Y8SzjzF734ZH7eZF+LMxj7/8eWEBzKNLpOjCF6LTO4K2a7hy5JZ4jEFNCCdmutKBtDmR RDLgxMzL8etQqF6AaPSeKy5LRkSBThiPddTc/TQuHNkEq7B9GULUqLYL/zRrNs5Q0bGq +R5p63v00+TJnraBOFbSPP5SQkcDPYxxX6ctGWzqb+DnNpwBcHn/nM+gXqF8tE/aOhn+ IaGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=uUHsgiAx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w13si1991716edr.565.2020.07.27.23.40.09; Mon, 27 Jul 2020 23:40:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=uUHsgiAx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728191AbgG1Gis (ORCPT + 99 others); Tue, 28 Jul 2020 02:38:48 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:36104 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726790AbgG1Gir (ORCPT ); Tue, 28 Jul 2020 02:38: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 06S6SICR018009; Tue, 28 Jul 2020 08:38:33 +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=qmwJq+3D0GJBCPkFrePoSga3huVJSD32b8tD9JrjayE=; b=uUHsgiAxcAanxVtP5Odl9kdz1oPfAkJWPq2wW1/g/KbENSD2L1SHsBTMmRvUWlzX913R t+cY/ypnzs9W1YsQYWOd1KDX/dvTc3B+pdtGhkU+xwmpW+CZrSx6MMbymGbXXtjQbhA+ rfJuLslFm2PqncFsHlB/pZxvZ4sdjIIjZcV/2jKYGWkZFi4fXtnoEwFCS1UNVPoZRKAL t5TikiJbCLp9XzjwDyfE+hDU7xFKGGHB51RxUK6ETf3SNAqLOJa6d7YVNcvySsjjLt8w x07wbRpVDV+LvHKggX+JFUGSjzXC1kNTiGuWCPHZ5IrjNl+jZDVe1HOFpDudacnyWGin ew== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 32ga71vqg2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Jul 2020 08:38:33 +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 C51E610002A; Tue, 28 Jul 2020 08:38:32 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag3node3.st.com [10.75.127.9]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id B4FFB210F96; Tue, 28 Jul 2020 08:38:32 +0200 (CEST) Received: from localhost (10.75.127.45) by SFHDAG3NODE3.st.com (10.75.127.9) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Tue, 28 Jul 2020 08:38:32 +0200 From: Alain Volmat To: , CC: , , , , , , , , Subject: [PATCH 0/2] Error handling fixes in stm32-dcmi driver Date: Tue, 28 Jul 2020 08:37:56 +0200 Message-ID: <1595918278-9724-1-git-send-email-alain.volmat@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG7NODE3.st.com (10.75.127.21) To SFHDAG3NODE3.st.com (10.75.127.9) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-07-28_01:2020-07-27,2020-07-28 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This serie implements fixes in error path of the stm32-dcmi driver. As part of it, it also fixes the way video device is handled in order to ensure that it is only created when the attached sensor is well initialized. (current implementation leads to having a video device always created and but never deleted upon removal of the module if sensor initialization is failing) Alain Volmat (2): media: stm32-dcmi: create video dev within notifier bound media: stm32-dcmi: fix probe error path & module remove drivers/media/platform/stm32/stm32-dcmi.c | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-)