Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1894699lqo; Mon, 13 May 2024 01:20:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV1IZg/7shsUl930DwAcNU2g9NbWIp+1tPXi1Apikd7fV7q50Ifh7gqH/assBar7VXCHw4mVoxUcS1W9tVIlUTLOtDcc7VqdPVT2wnsQA== X-Google-Smtp-Source: AGHT+IHFKabEQ+nNqX9c8olwVXjHMOMO9EPqWmvy5dwLITzcr+HdVI6q2nuTXtC6YK9SKjaSO+2f X-Received: by 2002:a17:902:c411:b0:1e2:a162:6f7a with SMTP id d9443c01a7336-1ef44049602mr110570555ad.43.1715588403998; Mon, 13 May 2024 01:20:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715588403; cv=pass; d=google.com; s=arc-20160816; b=A0Zwf61xQbm5GlQj0aTQOaUe0e/QwIAiZ/BF45Ol9w64yljGS7GgUBMb3CXCjk3SPX 8pLr3TmGylLWxCQ8FzBSzaQW6/HYL/unL/jZfGuTcxkapH/UpeQohi8UkcM2i3Qsm7ve UhmJMNscWpD9yINF78r+fQZJ4HUnznxs05wPTjdXoSWwalch71LGoYaMX4G1ZD88s9Xa ZHAxyMxWXUbV7leZnnYpwQthtESohzh8005DF3/m1/vxmy4YATlp82qw2KRV2coaB2Eg WNC+VpZHcU30Y8vfPKnkCvGDy9d3wDJtrxORwTj6Q+NYl+zgr8bJi6vbcGtX14I0JDDh ShVg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=UIPLrdC5GAIZh86UZDiAhGwF+7aECdDytlpg5r9MNm0=; fh=kmNR95+RLXy28zRIv9LJxxaS2BkywWWdYNOzGLA70ac=; b=ftqmD+4+LHlzINWqDifP1lkCOmcucClc9vwVIx5kVsvhQ4/8Jh7zKyE2pNAyc9N8Eo MuJtHDc4Bn++o4Yrhu7PZPr5POf0MfSc+lO7lWv4o2+Rpa6AY5i8CheG9Gm//MD41bMI zaJLDKHCypAUIKrtD6vgY99TwbTkcqnFijnCJJhGqs4apNDBmGyZVfIVUv5dGTXzcFBM GmcTpF+cElfJSx73iia5gTPhuhitcvIZZEHS0y11VC4h2+HsgC/Kzu5UiXxfZJCSsppe HLlIXRDzieJ8kAI7keXamd3bUkstFO3ORegflcTHU9pnz6ioP/Cb4J3Rpsy2QZJtf7L+ wykg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-177338-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177338-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=denx.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0c15e33bsi90036025ad.529.2024.05.13.01.20.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 01:20:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177338-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-177338-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177338-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=denx.de 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 56E7A280DA7 for ; Mon, 13 May 2024 08:19:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6DA781474B9; Mon, 13 May 2024 08:19:38 +0000 (UTC) Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) (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 182C5146D74; Mon, 13 May 2024 08:19:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.255.230.98 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715588377; cv=none; b=Qq9Ra3BmkfI/AWa2jgwiXplaIDpyfhFnbSaPDYaKX2P3XNeLlWLpzVS99WGccNm3q5VNR5AVLvqVN3wjBSr3iGckLlKwFAKoMCbpRCX8Ua0TsWHq4oTHy65DftyfEjd4LrcLD3EG99odvB8WwseM7tbTv97BbA1VedOxXE05sqg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715588377; c=relaxed/simple; bh=5I/14X8DRduvcN15vw4oASrVR8IZsXPZHQGI0hwn4Sg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OOvx/u6oqTFh4VmU2FjBPQaHmrTju+GjTSKvLQACs47z1ZX2ns4PntTwHPAMFFalqZ9k66F1lcPn9ZSb4/brZcY9DRYzoABYNyZSMfuRT/rhlZPbSMB9hvnVgX7Nu2xd8zVQbhFJIxxvRJGFOxgcMLGWORruv/BWO8jPQY4iuuM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=denx.de; spf=fail smtp.mailfrom=denx.de; arc=none smtp.client-ip=46.255.230.98 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=denx.de Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=denx.de Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 58C371C0084; Mon, 13 May 2024 10:19:34 +0200 (CEST) Date: Mon, 13 May 2024 10:19:33 +0200 From: Pavel Machek To: Sasha Levin Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Matti Vaittinen , Mark Brown , lgirdwood@gmail.com Subject: Re: [PATCH AUTOSEL 6.1 02/25] regulator: irq_helpers: duplicate IRQ name Message-ID: References: <20240507231231.394219-1-sashal@kernel.org> <20240507231231.394219-2-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Pngi36OMD6etkkKN" Content-Disposition: inline In-Reply-To: <20240507231231.394219-2-sashal@kernel.org> --Pngi36OMD6etkkKN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > The regulator IRQ helper requires caller to provide pointer to IRQ name > which is kept in memory by caller. All other data passed to the helper > in the regulator_irq_desc structure is copied. This can cause some > confusion and unnecessary complexity. >=20 > Make the regulator_irq_helper() to copy also the provided IRQ name > information so caller can discard the name after the call to > regulator_irq_helper() completes. Does this fix a bug in 6.1? It looks like preparation... Best regards, Pavel > +++ b/drivers/regulator/irq_helpers.c > @@ -352,6 +352,9 @@ void *regulator_irq_helper(struct device *dev, > =20 > h->irq =3D irq; > h->desc =3D *d; > + h->desc.name =3D devm_kstrdup(dev, d->name, GFP_KERNEL); > + if (!h->desc.name) > + return ERR_PTR(-ENOMEM); > =20 > ret =3D init_rdev_state(dev, h, rdev, common_errs, per_rdev_errs, > rdev_amount); --=20 DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany --Pngi36OMD6etkkKN Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCZkHNFQAKCRAw5/Bqldv6 8o5JAKCCJNW14FaI7QbNsLT2VGfLpxAXFwCgk3a2Dpxc5/rJXJSnY66H3P0wCfk= =UwWD -----END PGP SIGNATURE----- --Pngi36OMD6etkkKN--