Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp89595rdb; Wed, 14 Feb 2024 13:46:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV3EdYd4lZ2Qjf8psa6k2FfNXt7YuCnvvNj1JUp1K20fUPWLGYk4K8YsFqwV9RvluQi6TXHOFCzWFzPVqixxCRfU3PPlV1S+kUCyQL3uQ== X-Google-Smtp-Source: AGHT+IEpTaPycuv6T9C0SaQDZt29fTno9CWa0kEfnPslVjLo6qb4mbpghF/yNunPMznXml/3w80Y X-Received: by 2002:a17:902:a513:b0:1d9:a5ec:30d2 with SMTP id s19-20020a170902a51300b001d9a5ec30d2mr3477776plq.12.1707947172033; Wed, 14 Feb 2024 13:46:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707947172; cv=pass; d=google.com; s=arc-20160816; b=LTwyQcDuGso82n35IOVtjoFyREkTQ9qRKiJve2ZrvG+zfBvX+UFIeW0EtwxKu+ZLU3 vtG2GvVgwb0jAy+7nCc9gyCEyF4gZzYgjhB9K7aSl8KXz1SAkX/PKYHy6rHPd8afEc5m BbyqgfYENAiJy6skxM3PAYKpT1ea4ABgW2+vXM/QW49oof6ruB0gj4Ys7bNNWCeUMH6R TES+JHo5G/zWFGyK0ThIIbmtTBOyPiPqNdc9dxcpN7VhRi9311MpyhcGGj3h57ni6JL0 99yTs3OhcS5uDi+QLZSL8g0HptOQpcOhyJj+lrLfrHvkUDps9mN/hBGi7kppmxptJh3/ Fkiw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=KOS2B7sbqxhq5r87RRG1TrTI32jzxgx2gbxZryh0k5k=; fh=0Gnp4aqQqqoqhZPweEBPS5lIsOgEPjJCqAocsHcAsZQ=; b=a/twDr2vL6Umw+iR4NFOZpte1QRCMhzBz9xmfE79EvYl+RqvRvRDC5QRtUNCuOQTzy vtSZvpj9sYRdEiNDl52s9qICYJkCAoKkUZFnVjqR7YN7oF5SSpfE3TC1AHD8OI5rBI/3 8fHQireqtl4dSqPr0sEap6NKbH4hXjEEIC7WaU81M7qYIW7sslLIbMwwAWpe/LAbQFaO NG+aRLz7a5JMak73nTq5kh49rJrBuwPzZDjycsK4JtTvhHiV1P6c+YPp2t3OJWrT7DYp EKk3epDdwXOsCeW8P18+2+0ynPzxXt4K5nfmU6S5NoC5nYIEbVcKsqWSSBhOXcKjRtZC ciEA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E88bNEtL; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-65976-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65976-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCUl3OowQN3sMp3OgUnurcTthaHB+PZMhryz3tF4bvLqqPsJWP23dg/7rp37u1JDKP+1zE+Ka0xLnaJxUJFVWZASsGMg/B0Ziq31IXpkNg== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b8-20020a170902d50800b001db3084be19si3912887plg.196.2024.02.14.13.46.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 13:46:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65976-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E88bNEtL; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-65976-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65976-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 567C0B22A33 for ; Wed, 14 Feb 2024 21:21:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C471913F004; Wed, 14 Feb 2024 21:21:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="E88bNEtL" Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C03213DB8A for ; Wed, 14 Feb 2024 21:21:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707945661; cv=none; b=dG8m6WzRTKecsYg3sH+0NAOsYkwBCBlAzxkRd15kx896UGHcox9q1bp1yAJd8mVQz2HvhuXk0/xjMNnfbLIEkNRGpwN4fNHb01QyQNxNPRr5Cr5+l4OI2g5AGEwsX2otO2BT067AD38+7UyitAs3nK1y9SY07h6v69CkiAms0P8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707945661; c=relaxed/simple; bh=UH20tkUJPZTtnE+bVLwhS0oDXXvWrOablcK+6ybpZF8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=afD07rYE7frTtnfCcrPs2b+QxMsdCt+K5tLXqekD8mkqR/YaUW7yUTcfONcZ7zkHGpetXZ5rLMKtnzGIqUeou1pojaogCBE/6COpp5ia3QBWRIZAlbXF93YtN8CRLQfcrKf3u2pU3UxVLvYGMfD4+BotTgAYi3hW2FZX0pzkk1I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=E88bNEtL; arc=none smtp.client-ip=209.85.167.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-511a04c837bso198766e87.0 for ; Wed, 14 Feb 2024 13:21:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707945658; x=1708550458; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=KOS2B7sbqxhq5r87RRG1TrTI32jzxgx2gbxZryh0k5k=; b=E88bNEtL97yVZVZz8p+PQ7XWCH4i6plpMWfAlyDVX35zqJVlHQUq/pklvZvW7o7QDW flG0flAZU+38fmy3jePSLUqyiTPEoeL9PkDBbm/NDwvsekzmBLLVACk9wZmFPyf0N2hw GQpJBI3v0LBefbxo3IbNsLl5AbKTAR04Mk3SxbcojwtwJpk8QLAjTEyHagEfqzAAu3ow faqnzJK10h8sY2vApYfUfJ4XeRgvK8tsEL3OVCaM3FiZa0276f4j1fkq72KHuRv7jcrJ fBADUWjMetJugX7fLIc8Oo013zn2wyrpT6X1Ij6QC4nuf9QbwMmrbR0tY9WNNE5vmERj KMCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707945658; x=1708550458; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KOS2B7sbqxhq5r87RRG1TrTI32jzxgx2gbxZryh0k5k=; b=naMHScmihY3KMJNwJ5jGCuwKppUj9IVrAqSsQXKuJ/5xM9hIj/gsrhfBAPmFuaCbMX vp7LS7ewd3NREBMAGlaJtuHtbNFxP371DFZ0bE6WqnUxKCIyfLyK5x68he45CxlLplDa 2A5NIRSxUOezF3kQ0Nh/GTlcfiak3lfJP201WxytZ6WCdCTtuHck04BZtQ/HTX3Zi7kA rkrFOCABd1IabC7h3SIz7z3RUArWruhhebiQRzm9iYGKGUs9uNxUcQXXMcNqOL7+5JWm zJzc8EM9U+/mw/vwQpoexShs089vEELs1Tc7NXcgF3G4mAuY/C1N11ItsSJ+BAAWMTYW DwSw== X-Forwarded-Encrypted: i=1; AJvYcCWa3vJCL1tWeroM7hxIRM4qx08AIWSUqoR1DCv8GU99CEIS0wQ+o2rIepYqIe+8yoMfueXdZVwTdsCo8HxaXRi1o6DIArTZkPjeaFhR X-Gm-Message-State: AOJu0YwzAp3wWPXrMfDsyusge9fGDZO5/jP2OjSm+wtTBGowNt5hqhx9 1qGJzNt66VWNIQ32ZipvzvinJXBVExm9vC35N3Wa6M+oKXNUJUU4SpSNpO429oQ= X-Received: by 2002:a05:6512:2354:b0:511:940b:fc62 with SMTP id p20-20020a056512235400b00511940bfc62mr27362lfu.1.1707945658283; Wed, 14 Feb 2024 13:20:58 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUpvVKqGEGGnhNvXeluHoQkMPQaJN6hxC2jAk15VH9Gua3GJH/JM21CZRj07Hi1c4NzVC6baHex9pWOcG+YMKMCwcnf4njUApyuUS7olSB0BHtSPvq6rR3ZudCE5qtQM/MkZlN+Gh8DEhkr9dvCzXOLdOs9rMJeg62UOvRPDifj7T4HNCJIr+rCjtGay6b3qg/oFO4A3aETiIrfciJD5hE3ZM/eJRf8dGi26pcBkEYxsi4HbydC5h6R0ZABUkS/T0V6DeRuAd8RdbrXd0wODs6WUfwUYP813cuhXumb3Cvz8R/HCRFT/J2wIpVzWxlwzq4A1zPJt57ESL9SaHZ3F5e+ILy1JPfXQaTC0KUGkQgEc11RKPVigY3I8Md1YbEI9AxrVLPQa+juP+QnWkNZlsVBtvwA8ZuXzse689jmrSAqCB1eQoOOG9/JckadZiRG5KpVS+wReXo1EsT7uaFPyLjLWCyUGxvWFsfnmI19Zh6O Received: from [192.168.192.135] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id vw7-20020a170907a70700b00a3d73e6b2f9sm294407ejc.46.2024.02.14.13.20.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Feb 2024 13:20:57 -0800 (PST) Message-ID: Date: Wed, 14 Feb 2024 22:20:55 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 20/20] media: venus: pm_helpers: Use reset_bulk API Content-Language: en-US To: Philipp Zabel , 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 References: <20230911-topic-mars-v2-0-3dac84b88c4b@linaro.org> <20230911-topic-mars-v2-20-3dac84b88c4b@linaro.org> From: Konrad D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pBs5IDLAXmW8v3gIDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 14.02.2024 14:31, Philipp Zabel wrote: > Hi Konrad, > > 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 some >> code complexity. >> >> The delay between resets is now correctly determined by the reset >> framework. > > If this is a recent change, could you reference the commit? It's a series that recently landed in -next [1] [...] > > Since VIDC_RESETS_NUM_MAX is only 2, I don't think a separate > allocation is worth it. It's 2 today, anyway. I wanted to keep it flexible [...] >> + ret = reset_control_bulk_reset(res->resets_num, core->resets); >> + if (ret) >> + dev_err(core->dev, "Failed to toggle resets: %d\n", ret); >> >> -err: >> return ret; > > Could be simplified to: > > return reset_control_bulk_reset(res->resets_num, core- >> resets); 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. Konrad