Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3845323ybl; Mon, 3 Feb 2020 07:36:45 -0800 (PST) X-Google-Smtp-Source: APXvYqzJDQZsZw8UuRsV3hE8bP3fHgYw4JF2lqAhd8NJL1B0PPpeN8XDpZqEPHv8ZnmnPLMHCcwQ X-Received: by 2002:a54:450f:: with SMTP id l15mr15397304oil.126.1580744205450; Mon, 03 Feb 2020 07:36:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580744205; cv=none; d=google.com; s=arc-20160816; b=lqC30SzfBYCIxOMODDdahtVkCKcmjyPYjAcgLakUQV24u85giytRRnfroFU55ubfoR Ko2Sj3w7J+veghapKiQe1GJqtUEbJdW3IxrtoRVDdYbmn3tH3EcW31IM45Rj4frsDywi +FwUvevoYJQQb346nCETemyOTVbazpyvNpLH6qO9h+FprvrICpNDYvJQE8h27gIdvO+n RzFJyWIL63Ny+O4lb0CSvbunpqm5KgT4EiSK54zlN0sVcHVxbGfp20ZZc5dowRtl80DE InXr6rYpRN1y2F35LNFCMi8BpwSuj4B/P2sPebG4Ptw8V0ZNjQT4mp+xsnYpxOXMHDFD MZjQ== 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=Ig25JM6AtLTyb9X/mlnTXxZt7Y+zkIOmGtydqVrayJs=; b=BSLwTf653WUVrZI5Ox1w1NlS6Zqfhx18v70fU5aWOc4ZBPoXO4RS6YX9hyHj+P0Iwy 4bva3NCqRH2qNINHCnoWPlEgtnxPA0bxCAqIrsbjAk5yXLK/L8spriMBaXYWVLpMmdPu ZMBzQcW/zDFnYhjaI7yxwwvy8Gz8MvJDCbAY2EtGd97TanYsMXOhc4wTJbEapr9WWYEp EWdvVDgGIABF4q4afuFvwrbvHZVrCx99Z66tJHURpkurcBQGKmsgmmy/2TBJF8l0SS3j tjUzrOoKp+FwDLOeu19WaIM06X2NTOYgNJh8tQf6XnjhdsGD47/M9uzl0plHmtyLosq7 V1Dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=aSkQ4DYs; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d28si1359534oic.47.2020.02.03.07.36.33; Mon, 03 Feb 2020 07:36:45 -0800 (PST) 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=@st.com header.s=STMicroelectronics header.b=aSkQ4DYs; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728142AbgBCNvQ (ORCPT + 99 others); Mon, 3 Feb 2020 08:51:16 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:34066 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726561AbgBCNvQ (ORCPT ); Mon, 3 Feb 2020 08:51:16 -0500 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 013DlF9f029759; Mon, 3 Feb 2020 14:51:05 +0100 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=Ig25JM6AtLTyb9X/mlnTXxZt7Y+zkIOmGtydqVrayJs=; b=aSkQ4DYsgfbRahVkwk8D7CxrED9yYNQvDOnQJHucmtrL/zf+JUpP0VBGVdJn44iELHut tyLy54mwCouffI03OS2slRHBJ/luuxNZdzZ8Pg309EojHQiGnKuuvIse/do03yh9IrQT 0BPWT0dlwlqARNRqxR61/czTFdYsElGpxJPpReKmKlM3dabQaOBMWeWQdbQUfxHPrNr2 ojf8o/oIsBDIGW94igYVeE9iSdirO1aFim0N7lU4mS1qAwVnDaHy8TSOWmWOG3zeIjZK Pz9AbmANKFig0GOqbrPgqIXadBw3wBCuXxPg+y+CIWHBZXKEDGXBDaeYDWRrwa2kY71U BA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2xw13nh9f6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 03 Feb 2020 14:51:05 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 22EC210002A; Mon, 3 Feb 2020 14:51:05 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag6node3.st.com [10.75.127.18]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 122C02BC7CF; Mon, 3 Feb 2020 14:51:05 +0100 (CET) Received: from localhost (10.75.127.46) by SFHDAG6NODE3.st.com (10.75.127.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 3 Feb 2020 14:51:04 +0100 From: To: Mark Brown , Maxime Coquelin , Alexandre Torgue , , , , CC: , Subject: [PATCH 0/2] spi: stm32-qspi: rework probe error path Date: Mon, 3 Feb 2020 14:50:46 +0100 Message-ID: <20200203135048.1299-1-patrice.chotard@st.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG3NODE3.st.com (10.75.127.9) To SFHDAG6NODE3.st.com (10.75.127.18) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-03_04:2020-02-02,2020-02-03 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Patrice Chotard This series is fixing the probe error path of spi-stm32-qspi driver: - it allows to defer probe if reset controller driver is not yet probed. - if fixes the error path in releasing only allocated ressouces in case of error. Etienne Carriere (1): spi: stm32-qspi: defer probe for reset controller Lionel Debieve (1): spi: stm32-qspi: properly manage probe errors drivers/spi/spi-stm32-qspi.c | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) -- 2.17.1