Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4322486ybl; Mon, 26 Aug 2019 08:44:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqz4NbH6wt8K9xcvQh4ht0CLo8mB9f3ofLrCBtT8ppMimQB6pMqjQeEmOuB7Bu1WTbPTxhDv X-Received: by 2002:a65:49cc:: with SMTP id t12mr15900318pgs.83.1566834279816; Mon, 26 Aug 2019 08:44:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566834279; cv=none; d=google.com; s=arc-20160816; b=fj8wzgP61+kaiG0QnlCcgOf1lRgmS+2cCHKE3irvgekALqEgSXL7ijAz9E6Ql5n1Rc i/SL0OpqOg7OOAaCbkIHVQpe8+/2I5zS1GM50AWgUGzz+EcYHWiLKK/O+kwcrKUYTAQr MA6O4fvu2vqVJkY7cb/Ifjd4NvXI0l/7LgUjE/kKPVZn28Iwa+Rj9ib7LI8GQqEi5Ff9 k+Bp3zZfDejc0Q5QlSFZjfxyNSpSknqlZn+rQVFRfYMHO76tcWCWxYrgrcffuR6YgjCP Pdj3Sy1evixF0yLzX1wnlyiacxA64C74rmmoGQr/r4Ww1Lbvg3VI+C/9NolimfQc6V9w M67g== 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=tifbBOCihyi3euWjUK2dmnc9nxcr5SJrbcCSflAOoU8=; b=QhKSnKwrbDGAD3yWmRAxYoiXy6aaxW7hlxLHvbxk+sqsTTm5ohHEEzfdRK6e+fKo8y /MOh7XUKEhZwGh92ODLV0yps3gOLe6st3Hi6Sw364QhnPaNH9LQmh7TAyojZZuPPaYXf YSAOsVySfoh0gEw6+8Il/5GVNUakX62UInicl47YSQ0/C6SuMP/vsWoICUG2oYXiFEJ1 5zS7xN6x/Jx7s/eMLUXXsPFr6562uLVDpHFsHwN7cuAn4NF3XBxBIcVrqHUpdZb3yRRe qZpa0ECPqpKGgXpILERsUaOZYzAnl1FeSJtYG2yZr7FajNtKU0MOTEH44qOR7Kg6MA86 fIqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=S8XFXpgE; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e129si9417918pgc.344.2019.08.26.08.44.25; Mon, 26 Aug 2019 08:44:39 -0700 (PDT) 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=S8XFXpgE; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733228AbfHZPjh (ORCPT + 99 others); Mon, 26 Aug 2019 11:39:37 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:53111 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733182AbfHZPj1 (ORCPT ); Mon, 26 Aug 2019 11:39:27 -0400 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x7QFPxev018386; Mon, 26 Aug 2019 17:39:20 +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=tifbBOCihyi3euWjUK2dmnc9nxcr5SJrbcCSflAOoU8=; b=S8XFXpgE1a63XmxAh8nMqPjuQfMFYB2N3TTvQS7qbZkf0UHhuRkPfT/7MSJmwSjvX4Vu urGKqCn6XZWDEmTuZMPOvaky0r+BzIdAp432ZlS8I5OaiL1GYGoPg+lREiVMHHcozFXq 37c1jw542Ti4bkCL2AQ698QSUNAMXgGT8QdNo38tgJVI6b1Sd6uIUv4P8c74Bxr1J22Q Rl2s74rsq11A1NwvdGVitQnt7bU8uvbGTCyPwS3o3Z9puxEk6+h0Zte8huY6PN9QW6cs ICY6B7TVjLa5ZjEUwI406HmBHMivWrUGFgTI2pk1GVi0oBX93QpYp3BHWHUQopwGyiZf mg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2uju0vmgja-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 26 Aug 2019 17:39:20 +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 6A9E918C; Mon, 26 Aug 2019 15:39:00 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas22.st.com [10.75.90.92]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id BFD532BE677; Mon, 26 Aug 2019 17:38:34 +0200 (CEST) Received: from SAFEX1HUBCAS21.st.com (10.75.90.45) by Safex1hubcas22.st.com (10.75.90.92) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 26 Aug 2019 17:38:34 +0200 Received: from localhost (10.201.23.25) by Webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 26 Aug 2019 17:38:31 +0200 From: Fabien Dessenne To: Maxime Coquelin , Alexandre Torgue , Ohad Ben-Cohen , Bjorn Andersson , , , , CC: Fabien Dessenne , Loic Pallardy , Arnaud Pouliquen Subject: [PATCH] remoteproc: stm32: manage the get_irq probe defer case Date: Mon, 26 Aug 2019 17:38:29 +0200 Message-ID: <1566833909-16644-1-git-send-email-fabien.dessenne@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.201.23.25] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-08-26_08:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Manage the -EPROBE_DEFER error case for "wdg" IRQ. Signed-off-by: Fabien Dessenne --- drivers/remoteproc/stm32_rproc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/remoteproc/stm32_rproc.c b/drivers/remoteproc/stm32_rproc.c index 1c95913..2cf4b29 100644 --- a/drivers/remoteproc/stm32_rproc.c +++ b/drivers/remoteproc/stm32_rproc.c @@ -517,6 +517,9 @@ static int stm32_rproc_parse_dt(struct platform_device *pdev) int err, irq; irq = platform_get_irq(pdev, 0); + if (irq == -EPROBE_DEFER) + return -EPROBE_DEFER; + if (irq > 0) { err = devm_request_irq(dev, irq, stm32_rproc_wdg, 0, dev_name(dev), rproc); -- 2.7.4