Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp385138lqm; Wed, 1 May 2024 03:55:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX9Ud12e3elWJqCUqbT4neD0Q4jHffbWCGNzf1BhEMvR17+3C+SWBsnhuEjdtpvHCTc1YPx7cYnBLGXwjJaurm50q0KLhtWAYtWiSOGfQ== X-Google-Smtp-Source: AGHT+IFJnhAHauYmdwI9TEWZSxP+qNQkwPBX51L3bpbzLyhHjqpjgr0onnix9F/fvMdnyGQ9PVFw X-Received: by 2002:a05:6a20:5194:b0:1a7:186:a176 with SMTP id j20-20020a056a20519400b001a70186a176mr2018347pzf.49.1714560942928; Wed, 01 May 2024 03:55:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714560942; cv=pass; d=google.com; s=arc-20160816; b=dFoD83L5mOfsh/4AKW46WbtG7qbIt91qY7kwVMho0DxdaSHHFIlBVkBi1Z0vnfp3qR 4zm4jVkfxuWZnuJKJEISBZCvYkeCyMx/kwBofIIJq1Xj446TszDvmnKhgbHfknXbfXNr ZrAyhrBAr0/Li63MknRjiypB5Tk2zws8kRn7ZAGCnJztVTBZtwTBb20h5KUDNQcXqnWY 2Ml+Nn9hmtAy+klpP+gsqowTC1iHCmWv31gfJI5mco2gTBilMUg8xLOHXzty6km45sno XbPg0CbIgP9Dfl0cOoHs30Nd6lt29AJDG9dbuSjrAktTRwH6DRcvXbnmeY6gnxI88zek CHzg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=kTwjg2xHCuSw6MNn2MaUluh0uTgJ2KLUk/E9vMttpjc=; fh=wb2ahl/FkCU48175OxCfhew7TNmFJhwW6zEDS+27YVE=; b=yYihlBCVEwEKaCq68kZ24m7f/mujgAo/cZT158nvwFCs4TOTt+1JBlVbvBRXC2YIDY Vw7w+0bvewDBW0Phbch66FKoZk/wVcg2wMhmtL6W1IpGIodRhnrnEo8+p2UWaHD+paUX l/eljXuf2J1RS84uRQzka1BJ/RNRDMn3uek/DjSvkvhdFoQ0XnQB1+n7sFC4L6eTGZa0 eVO92MjDU4tizMQMn3Eil1a/urLlv4Vbzi8hvb9Mj3Z6HiC+KWDnMCRouGcW+/A19M2X +oZf4CjOfqVVU/U4laCzH0SBYSTNBx/+9aEjfvNV6JyCpvPIEP17upbQqXFOn/fVz7Cx gSAg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=STxE3S9v; arc=pass (i=1 spf=pass spfdomain=rere.qmqm.pl dkim=pass dkdomain=rere.qmqm.pl dmarc=pass fromdomain=rere.qmqm.pl); spf=pass (google.com: domain of linux-kernel+bounces-165160-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165160-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=rere.qmqm.pl Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id on13-20020a17090b1d0d00b002af04f1a939si1286213pjb.21.2024.05.01.03.55.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 03:55:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165160-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=@rere.qmqm.pl header.s=1 header.b=STxE3S9v; arc=pass (i=1 spf=pass spfdomain=rere.qmqm.pl dkim=pass dkdomain=rere.qmqm.pl dmarc=pass fromdomain=rere.qmqm.pl); spf=pass (google.com: domain of linux-kernel+bounces-165160-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165160-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=rere.qmqm.pl 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 CA1D2B2300D for ; Wed, 1 May 2024 10:55:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4413E55E6A; Wed, 1 May 2024 10:55:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rere.qmqm.pl header.i=@rere.qmqm.pl header.b="STxE3S9v" Received: from rere.qmqm.pl (rere.qmqm.pl [91.227.64.183]) (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 196B150A9D for ; Wed, 1 May 2024 10:55:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.227.64.183 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714560938; cv=none; b=afjfZgr5jFYvmGB5IEYykp4Ag+ShUX8GIuK/M+QP+BXOsaCEInblPVupauKyuPO5GMh+njU01HR4Bnd1/swPvk9YCxMttGOmv1Vt3jxzV3cnC5cX6GgBNPTrAq+ZaRCOLAimmjyyS6D66g9uASBXayFq9M6/W87atuht6wUsnL0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714560938; c=relaxed/simple; bh=qhf5AF1OezFa8YQN7goIJJBnh70oq/0z5QrJY3rdkTU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XVBb1MsqVoYzJ9ApZG5XP/5KSguXPzYSZ2iCOU+Ke9wL2mZVkmIcSrc++sARzku0XN/0djdB0N7gtUeBgqqKi76kW9OQBJPyiyqdgI4MEPHO1tPzwvt7JIYp3q4//hhc5F/wUHYe1VfC5GOCkGBfX0F5N78Reu1vUfpqB3xVAtA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=rere.qmqm.pl; spf=pass smtp.mailfrom=rere.qmqm.pl; dkim=pass (2048-bit key) header.d=rere.qmqm.pl header.i=@rere.qmqm.pl header.b=STxE3S9v; arc=none smtp.client-ip=91.227.64.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=rere.qmqm.pl Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rere.qmqm.pl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1714560927; bh=qhf5AF1OezFa8YQN7goIJJBnh70oq/0z5QrJY3rdkTU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=STxE3S9vrugOsg8R52GCFheLHk0i559Wli/REbzGmQE6/a0fjnrZrR0e+TmTuDBnu 2c5Siu2TzcpvATIgY7N+rGdSoQxl+g3wn07X6FJXdQkTbc2B6pQR7PAWNBdf/cY+Zo eslpW0ACR4X+0Hd5jyXvkC4VKL7Fj60ES2uevuVK4TLYl56Cos+kjmGsTr3kte7rxM B9XPsXlUvgRExOc+ZCA9BnCOHRIagat9WrLnw3HMA81dO1A05CM0D4I8D0ODaZx1u4 KjyqVTiU4Vd55zhPc535OdtqBLKMdpcrjL43mT6hS1ejfsQiLxQ4wUjiCC16YF82Mu 8nYAkkoRuUFMg== Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 4VTv9W0V5szBL; Wed, 1 May 2024 12:55:26 +0200 (CEST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 1.0.5 at mail Date: Wed, 1 May 2024 12:55:25 +0200 From: =?iso-8859-2?Q?Micha=B3_Miros=B3aw?= To: Mark Brown Cc: Liam Girdwood , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 04/12] regulator/core: regulator_bulk_get: remove redundant NULL stores Message-ID: References: <1ec1a8090c0e316ee005629c24f2779211e0aebf.1714399603.git.mirq-linux@rere.qmqm.pl> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Tue, Apr 30, 2024 at 01:01:28AM +0900, Mark Brown wrote: > On Mon, Apr 29, 2024 at 04:45:28PM +0200, Micha? Miros?aw wrote: > > On error, callers of regulator_bulk_get() pass the error up and don't > > use the pointers in consumers[]. The function is documented to release > > all regulators if any request fails. > > This doesn't seem good from a robustness point of view and should be > nowhere near a fast path. I take it you'd prefer to have the function fixed to clear the other pointers? I'll do that in the v3 then. Best Regards Micha? Miros?aw