Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2212874ybt; Sun, 21 Jun 2020 12:35:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbwuWqA7Gy5dzwMdbFscAQ7I3cSV1/+AzjjH/jut4qNhPyNPNPEVCYfRLvOQ2VXz0otUY0 X-Received: by 2002:a17:906:495a:: with SMTP id f26mr12227107ejt.329.1592768141979; Sun, 21 Jun 2020 12:35:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592768141; cv=none; d=google.com; s=arc-20160816; b=fcG5QjV2Y0oam+tC+RjOzzHX7yvtWLD0U9uXcO6aYwY88md5WiA3NFv19Qteoy89R7 fQCk5YIt8DBkdrusJ1lSeN3CzjcsX6fvWXmaaQz1F047sQBz8ogyCOaoOooZzM1NuDXu W1vG+UaHq3b4WRUyN5fJqkgL9I5ghz7TjvoQ4RqD9uUO7yalvrBW36UxpSklofEYehrh 1lmmRfFTNNG688tluCXMdVzeiflOtbjvhoDe/ImdnC1t2Jo6ysAJhPuOY8QZT8fycti2 QkFx6/JjoxylBtgJHa6/RBwEOWATP2xM5bcTE2MJLMfNVrDLRWToJ/hGvBLCNh9idXLg Ytwg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8V6HFmLfGm9H0h60UuqXdO7H0Hr/Mksem7jzlgy8U7w=; b=gZJh3o+NAzpUNziGlywjwI++ESUuBTcYeDIDGdWFY1XH/PFfsbZPUcWV9QLNCVkd1D /Fz9JQ6qbF0C5UhoLYTApUj2asbTL8fvFpz+pjUEP86q1C1L8uRMbzIoNZgKeSXldmal /660stKnwdIa6IW6THg6YQAOANYvBkHpxLCu2ctjLdntc/7B6zlUztG5rDejo0juTijr ys21yx46ulYKqH3Mo1KfCru3unRZlGS20Zkj3t2wko0R/gqMwlo9Onjo8tUJ8UG81Z52 B8x4PzSzGF2U8ZbKXUepT4JYGuGVbSkAM1ngKeCc4Hx+QUe3yGtHHilmjpfdMd++WOcs kidw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uZ3XMOQ4; 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 j8si8369577edp.99.2020.06.21.12.35.19; Sun, 21 Jun 2020 12:35:41 -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=uZ3XMOQ4; 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 S1730675AbgFUTdL (ORCPT + 99 others); Sun, 21 Jun 2020 15:33:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730670AbgFUTdK (ORCPT ); Sun, 21 Jun 2020 15:33:10 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4057DC061796 for ; Sun, 21 Jun 2020 12:33:10 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id s88so7383067pjb.5 for ; Sun, 21 Jun 2020 12:33:10 -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:content-transfer-encoding:in-reply-to; bh=8V6HFmLfGm9H0h60UuqXdO7H0Hr/Mksem7jzlgy8U7w=; b=uZ3XMOQ4CZBG1jROGxZneTOAF/aHCdQeyVlB3ZvRPBwfRRELY87Zy/FrPPzIzbtjeh ZSWzeilRJ+ltWjl6Wf8XjC9YNwgPUsO+ASAyoEpi37Hdt+3QAoXCC++PIZTbJa+8GGpT ztxtBduTxsquEyTofbr7TcgqSWVtLd7onuIkpBAvohocO81okO6x/h7Iv1zDYrwdr0Z2 kJ0J4Pqwssy9Ok05g+TqqC9JqKfzAcE1Dj26Qt1C8YWblqqz3/BxVrgLkk6V9ppyP0Tm U1HmZNDGhHKG9qiukpFLS4kOR8UXxsshrJCRpDGH0Gvo4YSruUMZxSH4zyFR1N0DauXC 3IPA== 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:content-transfer-encoding :in-reply-to; bh=8V6HFmLfGm9H0h60UuqXdO7H0Hr/Mksem7jzlgy8U7w=; b=LHxAHX6jU/sykw2WT73WZnxCORkxCZgdHEaoyTpyP4lMQuF0avaitTjwWETj6Z/O2t 2Au26igWC8htYDex6WwtweF9lb4jXFgTUixRYWddqkWqEua29sqnYiw6fZRWLvdp0Xlf tnh/uiGt9hhb1+TZcIMm96wDATVQP3IweCC2qBq1X/xTUIZGisApa/ZYWPg5ptz5RSoO kxjnyw9JWJiNqjE5fT+5M9xJUYA772IEU/D1XxwKlRwtDRYQxgwCR9xzoGLQOrrP9lIO G2SD7PbmV3PAiJUpB0Hd3N3vW0GFfpkF0u1W65LmGGQ6Q3bElGAR9RybCNlvl2LlgiGf T++w== X-Gm-Message-State: AOAM533tw9OfR7tQu2Klovb1iJTIsd9yDzqmxq/ZWDrRtVb5upheLYlI QwOX41vfbR4DoWrGY200gv7T9CbRcJU= X-Received: by 2002:a17:90a:c250:: with SMTP id d16mr14494880pjx.60.1592767989562; Sun, 21 Jun 2020 12:33:09 -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 q68sm11641137pjc.30.2020.06.21.12.33.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jun 2020 12:33:08 -0700 (PDT) Date: Sun, 21 Jun 2020 12:30:22 -0700 From: Bjorn Andersson To: Paul Cercueil Cc: Suman Anna , Ohad Ben-Cohen , Arnaud Pouliquen , od@zcrc.me, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Mathieu Poirier Subject: Re: [PATCH v7 4/5] remoteproc: ingenic: Added remoteproc driver Message-ID: <20200621193022.GA149351@builder.lan> References: <20200515104340.10473-1-paul@crapouillou.net> <20200515104340.10473-4-paul@crapouillou.net> <8cdcf5ef-1268-89f6-b229-ac711a80b790@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 12 Jun 04:47 PDT 2020, Paul Cercueil wrote: > Le jeu. 11 juin 2020 =E0 19:21, Suman Anna a =E9crit : > > On 6/11/20 5:21 PM, Paul Cercueil wrote: > > > Le jeu. 11 juin 2020 =E0 16:47, Suman Anna a =E9crit : > > > > On 5/15/20 5:43 AM, Paul Cercueil wrote: [..] > > > > > diff --git a/drivers/remoteproc/ingenic_rproc.c > > > > > =7F=7F=7Fb/drivers/remoteproc/ingenic_rproc.c [..] > > > > > + /* The clocks must be enabled for the firmware to be > > > > > loaded in =7F=7F=7FTCSM */ > > > > > + ret =3D clk_bulk_prepare_enable(ARRAY_SIZE(vpu->clks), > > > > > vpu->clks); > > > > > + if (ret) { > > > > > + dev_err(dev, "Unable to start clocks\n"); > > > > > + return ret; > > > > > + } > > > >=20 > > > > You are enabling the clocks directly here and also trying to > > > > manage =7F=7Fthem through pm_runtime callbacks again. > > >=20 > > > Yes. The clocks need to be enabled in the probe. > >=20 > > For the preferred non CONFIG_PM case now and lack of > > prepare/unprepare(). >=20 > I want to make it clear that I'm not against having .prepare/.unprepare, = but > I want to see what maintainers have to say. >=20 I think it's perfectly reasonable to enable all the resources here and then if CONFIG_PM isn't set you just leave them enabled throughout. Regards, Bjorn