Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2362870rdb; Wed, 21 Feb 2024 05:35:56 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWtXZ+xG0zXTIfGKZv56FufQ5ebo0+y+ALEOiqGwchdbIEBimpMEJhYQkCb/0PTeMp56tGLmDYeQuYxHukeMEvp9epEaX/+TnjqVKblaQ== X-Google-Smtp-Source: AGHT+IHiD5DZzpWAdbc+PM3Bk9qk1PXEYXC5cROoX2g9m83LZV2UtIRRFumy2mpvsENosG6ChGTH X-Received: by 2002:a05:620a:472c:b0:787:903c:3dbc with SMTP id bs44-20020a05620a472c00b00787903c3dbcmr1090194qkb.26.1708522556099; Wed, 21 Feb 2024 05:35:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708522556; cv=pass; d=google.com; s=arc-20160816; b=qN/3InZ1cTJ3iQPhz6VI5/HAl8aftRd9G/9JbF69tHU8+DOJwunW3cJn5zjEwTqxet 3IGOuev8vIWUxYVo2/4jXoh86Bkz4fjZNnM1vc3STNS6j8dOfPJQIhp3yeTxatLm/ESE XJPuQar+1keH2gYoC1ghp08Zg7YzLevITBvUsKEQpJdqSoV3kTorP4oQg22i56srfHCN U9bzl/NGFj7HMw+zV574vsdURTyNTbcQiTB2NHOV/2EH8+KHfHgvaoQma+aNey+hBd7C PonL5919Ms19XSbuoJAtkxcQbkgZu6RnzcCaYaYZ5vzLHqGbq41GRq35D/RncpvhxKnl d3Xw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id; bh=OW7YVtir2GpEi5kS3VdSpHeGPS5EM5sM3WvoUZ9FVRI=; fh=xoU4voQLXXsLetlDbs6amjII252IJDIpeoICpZMR1F0=; b=dTAP6nvaz4NdHy4+vMGyt2audcxzAEl68T4kFS3KiSweK1ZrUNPrqYcVVqU94aaiJv tObJuQjhulPXg+JPjV3YSmxBBOncBg+Ck9L29fpeonPznJqlZ6HhehBWUpvfKdgZgOSb ugWTwPZ7XSzKXMMt4g3YpJ97Sorhy/mO7tkhx8a6IuTnrqd8jgfcj0KaKyiqUjLtEqAI 7UD7ltPHwJKc0kJuRU0qgXmNqsZuveLw2V6Pp+TvLHuHMNjr8kmiexZXvDs4JiExgieq +5gVZjDph21E2+mWL8D5E+iNpv2eWkqupRTMGKrReV0z7ZLSLoyVK+SmD+hKQ7CUa21b n9GQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-74805-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74805-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id h17-20020a05620a245100b00785d710f4e5si6591586qkn.349.2024.02.21.05.35.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 05:35:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74805-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-74805-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74805-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id BC5CB1C22B36 for ; Wed, 21 Feb 2024 13:35:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0CC5B7C0B8; Wed, 21 Feb 2024 13:35:05 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2EC327B3EA for ; Wed, 21 Feb 2024 13:35:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708522504; cv=none; b=Up+ovXPRcWervmiNpUUpq9DjmUm1cBlY9MNeDZ90y8H1HXpEaJj9GutGjSp9fj18cF87aE6K3BYhbOTz9wV5gKkXi5FOJKWjgixtML9G/Abo+y+iVlaralEkx3o+DdbAcXpny5t8CWs0KP8oxPOoAm71Hq1XPqf6BdZc6/X4rUw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708522504; c=relaxed/simple; bh=zqql2sXx3i2yN008ue+WEu6k8Gl5CMT7NyPCC0UJ8ns=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=jyJOcU8IlrzB4Qj19vPUTnhnJN8T6YGVVXTpWUO2Zw78xubtsigPOdMFM9SUk2wY5GM9Pt1lfKdta5quIfiY4S5KEX3F5NrxapeuZVOpvND8oVXtLXn75pPlC84TKi7S7PdnEXE0upHuiTWFHOosiGQ3usNEFgi5TVS5aOV+Te0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rcmkJ-0004t7-E2; Wed, 21 Feb 2024 14:34:47 +0100 Received: from [2a0a:edc0:0:900:1d::4e] (helo=lupine) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rcmkH-0023Bm-UM; Wed, 21 Feb 2024 14:34:45 +0100 Received: from pza by lupine with local (Exim 4.96) (envelope-from ) id 1rcmkH-0009YG-2o; Wed, 21 Feb 2024 14:34:45 +0100 Message-ID: <1cf19cf23ffd88d9ffb673e8f382f3b1d24545bb.camel@pengutronix.de> Subject: Re: [PATCH v2 20/20] media: venus: pm_helpers: Use reset_bulk API From: Philipp Zabel To: Konrad Dybcio , Stanimir Varbanov , Vikash Garodia , Bryan O'Donoghue , Andy Gross , Bjorn Andersson , Mauro Carvalho Chehab , Dikshita Agarwal Cc: Marijn Suijten , Stanimir Varbanov , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 21 Feb 2024 14:34:45 +0100 In-Reply-To: References: <20230911-topic-mars-v2-0-3dac84b88c4b@linaro.org> <20230911-topic-mars-v2-20-3dac84b88c4b@linaro.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org On Mi, 2024-02-14 at 22:20 +0100, Konrad Dybcio wrote: > On 14.02.2024 14:31, Philipp Zabel wrote: > > Hi Konrad, > >=20 > > On Fr, 2024-02-09 at 22:10 +0100, Konrad Dybcio wrote: > > > All of the resets are toggled together. Use the bulk api to save on s= ome > > > code complexity. > > >=20 > > > The delay between resets is now correctly determined by the reset > > > framework. > >=20 > > If this is a recent change, could you reference the commit? >=20 > It's a series that recently landed in -next [1] Missing link? > [...] >=20 > >=20 > > Since VIDC_RESETS_NUM_MAX is only 2, I don't think a separate > > allocation is worth it. >=20 > It's 2 today, anyway. I wanted to keep it flexible If this is expected to grow, fine. > [...] >=20 > > > + ret =3D reset_control_bulk_reset(res->resets_num, core->resets); > > > + if (ret) > > > + dev_err(core->dev, "Failed to toggle resets: %d\n", ret); > > > =20 > > > -err: > > > return ret; > >=20 > > Could be simplified to: > >=20 > > return reset_control_bulk_reset(res->resets_num, core- > > > resets); >=20 > I intentionally kept the if (ret) to print a specific error message > in case the call fails, this driver doesn't go a good job of telling > the user/developer what went wrong. Oh, ok. regards Philipp