Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1050124ybk; Wed, 13 May 2020 22:01:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjHKF0gW8FmlCv/GyeiJ51yVvba4rhyiVUgvOueI2X63XC9Og9TsTRejCfcPCiKtHvTS7U X-Received: by 2002:a17:906:55c4:: with SMTP id z4mr2148324ejp.332.1589432488005; Wed, 13 May 2020 22:01:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589432487; cv=none; d=google.com; s=arc-20160816; b=hRRxffaS90Vxgsc06HuGNw1lqWDmtV9pBgYmwb/l7981nyBrUvJegZI8xrUhedyoEZ QGt8Ia87EuXXbjx0RAt8cMJBvtc/xzXsElz93yXBHF5fOqQ4nKITnJATpuTDmvoRWjYB b6YTBA420CcrEH72UA3Xr+QeLwvzw5uyhLzjbG+LjuZsrt9TFxnMvGrgZf37ea9oGnVT 7N4FzLSM9q+LLQRnpWsaw2K6GrR0d4imK1CZlT3PURDMvDUD3Zgc/xqcGFGsvtxGvIVk jHse9hj2YivrBSK6Zgs/zx70ZCVds/XkVnsw5rC8XjZj+0KkM5ZWIosS5UX+W10hPXu2 BSXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=XB9iR1Wtni03RNsjVOMYUq9aoFsWINR5LTN8xhVnTBE=; b=Xcv4skOBkw6bk4izU63HsM5LeZutoUh+O3QjqpRY153WN9g7p7xRjSB7bKRKvrjW20 t8/tAMAuI3C0VtuN3LoHAkZp2R50YswAAW9zlp/4hUBEhLixtjh7Y1gEBgNWTEZXX6nA tndPrXOED9u0e0fWTiKCKrohG7Lxj8nkosjVkLj3HBf60eBeSTx4AZeMrZcogHc7H5D8 tv4QFxz+FiZ34fZs+9is0NRAlSsZyk11+zgtSC9RQoduyUkwq8z3XMtEeInOaqopKWJ3 s5jJPnPEDHUXXCtsW/z9HvmUUnx0Zt3IrUZ3uAdrxmhXxiqXH0QAmDiYxsxsPvjVg7Qz og8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wjDd6XVS; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i2si1088747ejg.45.2020.05.13.22.01.05; Wed, 13 May 2020 22:01:27 -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=@linaro.org header.s=google header.b=wjDd6XVS; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726038AbgENE64 (ORCPT + 99 others); Thu, 14 May 2020 00:58:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725977AbgENE64 (ORCPT ); Thu, 14 May 2020 00:58:56 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E55FC061A0E for ; Wed, 13 May 2020 21:58:56 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id u5so760503pgn.5 for ; Wed, 13 May 2020 21:58:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=XB9iR1Wtni03RNsjVOMYUq9aoFsWINR5LTN8xhVnTBE=; b=wjDd6XVS335MCJz9fDAbV1AJWTNo6NfWf4m+5LBZrK5OZvhYRFS7xdg7rvVKwsStr0 0GZKzpEEeDPKMlo6yRynvB1Py/hJpE7BdKPYvhOHlY5iZPRmTLVKPxDGadQrq9288OTD bXmo47fVNu8lfa0j4e6PZ6phtHOTmgKaLvm7kUcLeS3nehSQ3dQXUoRyj+jvBcbrhnAN g7OSwaQxYwqJT54/+bQeyy/xEm0H8osNIoLSNDpPu5bGko684DCE+LjlRJNHZZ3Ydo5X fc4G9VljKI/7ZhlOFs+YM4Zf/bGUyIaMxZlmd0kHF0AdrH2gQKMoDs5ixQv/638Quu5V Eycw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=XB9iR1Wtni03RNsjVOMYUq9aoFsWINR5LTN8xhVnTBE=; b=BtKW4DY0VlIUNuD+J5aRuZK1hIEGZJb9qDNSxqKlXQvjEbtDOaEpc0wk+v+MchdDvB DK5zKFAZnGojNsBPnzJr/5a0oVlo/Dg1fGoL0IVMjS/a0FnJzlxo/1onozwn0gHywi2A mBEmiOguV8VRRT+3pZGvswdp6OWzds+twJJU/tpnmbx2rxNpK87uPqHcKdzAeY/gWTfX gHDbW4uSMyBAvRBEosGB/EQPIcd/FHloQXRF/ltrsfUd/xIA+KVHcGOshvCw6lqheT// HWA2CJdduk4dsg2QkXscK1NlvjJk5P3Rt/8qH7KT60ZUmkoK/YV8aJ+yY1AyrDF/w+tC /Mbw== X-Gm-Message-State: AOAM532xVgYF18kfeYdr67llkjYlB6QEFbu/oM6Vho+oqeQn396RUEKC eSPhFnx2SAsZ68SdODhMgV2CYg== X-Received: by 2002:a63:1557:: with SMTP id 23mr2564283pgv.104.1589432335637; Wed, 13 May 2020 21:58:55 -0700 (PDT) Received: from builder.lan (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id d203sm1052337pfd.79.2020.05.13.21.58.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 May 2020 21:58:55 -0700 (PDT) Date: Wed, 13 May 2020 21:57:24 -0700 From: Bjorn Andersson To: Mathieu Poirier Cc: ohad@wizery.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, loic.pallardy@st.com, arnaud.pouliquen@st.com, linux-remoteproc@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 02/12] remoteproc: stm32: Request IRQ with platform device Message-ID: <20200514045724.GH16107@builder.lan> References: <20200424202505.29562-1-mathieu.poirier@linaro.org> <20200424202505.29562-3-mathieu.poirier@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200424202505.29562-3-mathieu.poirier@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 24 Apr 13:24 PDT 2020, Mathieu Poirier wrote: > Request IRQ with platform device rather than remote proc in order to > call stm32_rproc_parse_dt() before rproc_alloc(). That way we can > know whether we need to synchronise with the MCU or not. > > Signed-off-by: Mathieu Poirier > Reviewed-by: Loic Pallardy Reviewed-by: Bjorn Andersson > --- > drivers/remoteproc/stm32_rproc.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/remoteproc/stm32_rproc.c b/drivers/remoteproc/stm32_rproc.c > index 91fd59af0ffe..1ac90adba9b1 100644 > --- a/drivers/remoteproc/stm32_rproc.c > +++ b/drivers/remoteproc/stm32_rproc.c > @@ -261,7 +261,8 @@ static int stm32_rproc_parse_fw(struct rproc *rproc, const struct firmware *fw) > > static irqreturn_t stm32_rproc_wdg(int irq, void *data) > { > - struct rproc *rproc = data; > + struct platform_device *pdev = data; > + struct rproc *rproc = platform_get_drvdata(pdev); > > rproc_report_crash(rproc, RPROC_WATCHDOG); > > @@ -553,7 +554,7 @@ static int stm32_rproc_parse_dt(struct platform_device *pdev) > > if (irq > 0) { > err = devm_request_irq(dev, irq, stm32_rproc_wdg, 0, > - dev_name(dev), rproc); > + dev_name(dev), pdev); > if (err) { > dev_err(dev, "failed to request wdg irq\n"); > return err; > -- > 2.20.1 >