From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.35 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796047618; b=YhWuvC6L2kUZCPwANb2PU5Drl4qynuvipyswuY+TagWHxvnwX/o15Nf68D8SLPoNWCe8 Lib22BP5r59htOJikBI1TF8ZQCLFDwsTWC/6vV8USDAJTkdT4ZrXkCVtn/KWnBMDpUEjZ q5dYkS4PmMEJ2/5b52Isr8SS1CWw5mWIuUHW5pFbCN6XS2WuvO64xrp/JKkUCL28zmZGP bzH7dpSXT8mrGhYWfA5qWYB7fsBNJWE/qjJ6DsXlrxDXubyLN1yzJuUTmCJ7TTuM+Bq7T u/Z8Jd9RgmRQjq5ZoKouW23yEnsArYvKaI1lKTulOrMl+LihIetvRzRgMqyhIQfRn/A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796047618; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:MIME-Version:Date:Content-Type: Content-Transfer-Encoding:From:Message-ID:TLS-Required:Subject:To:Cc: In-Reply-To:References; bh=xv8zZLkvUROsP3eSpBBhzqAuVpGAd7ETP4uBLAL8Y+g=; b=TefONEaNNJe+kmbwQyTA0DcKgiCdzQdKF+08WH/yBNfguWZylIHbQpX0vTLu708vUjpa 8cJWc+hZ1Ec+fX/sNQMtaLhtJX8dA5TRtrZ7q1lY8oaK92wJMrrizVksN0V6W36fPCkqC KWtqvHvPvCZYXNZdH8KDFnPmYYFqdoXJx+nEHHdsYZNhMvMONfYbO9nm0f/72RbdASiQq HDVokmo7LQZdCXDMmDoddaGlBvUKSVXwx45kG9FSoeiEAb9fH0fLM1jV5Ji8d7By42DHn pWpkmtkJLunS6o09TMkubF1GUT+bfxlF3+q2nb9rF6j5o3ghIlbYtiV8tc++Kf1S1TQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=YEp4BLoE; arc=none smtp.remote-ip=95.215.58.35 Received: from mta1.migadu.com (out-35.mta1.migadu.com [95.215.58.35]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 46554606A332 for ; Mon, 30 Nov 2026 14:06:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 46554606A332 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=YEp4BLoE X-Envelope-To: linux-iio@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=xv8zZLkvUROsP3eSpBBhzqAuVpGAd7ETP4uBLAL8Y+g=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1796047615; v=1; x=1796652415; b=YEp4BLoE2FVQSGUE8MqXMdYJDtCXajQH45zpg68wxSxu/1/8cO6N/EEUcmiaN/WfOLijz6Qd b/N/2Y5HRWbmpnU/OjmppBvFgaxQYVtk/6sQFF9LcReja4fNrpEAGdwXt7/bdoPbl2kUqTz2ZVp YTaXiDzFfj/KN18qGniTfWrY= X-Envelope-To: linux-iio@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 7536e815f7adef02; Mon, 30 Nov 2026 14:06:55 +0000 X-Mizu-Trace-ID: 7536e815f7adef02 X-Migadu-Flow: FLOW_OUT X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Date: Mon, 30 Nov 2026 14:06:53 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: "Siratul Islam" Message-ID: <6f5af4f65c7b590c2da5c13c9d9a1acfec79aebb@linux.dev> TLS-Required: No Subject: Re: [PATCH 07/15] iio: proximity: vl53l1x-i2c: use iio_trigger_set_default_immutable() To: "Jonathan Cameron" , linux-iio@vger.kernel.org, linux@analog.com, "David Lechner" , "=?utf-8?B?TnVubyBTw6E=?=" , "Andy Shevchenko" , "Michael Hennerich" , "Radu Sabau" , "Song Qiang" , "Lorenzo Bianconi" , "Alisa-Dariana Roman" , "Ramona Bolboaca" , "Jean-Baptiste Maneyrol" Cc: "Jonathan Cameron" In-Reply-To: <20261130-messing-immutable3323-v1-7-f44aa3082603@oss.qualcomm.com> References: <20261130-messing-immutable3323-v1-0-f44aa3082603@oss.qualcomm.com> <20261130-messing-immutable3323-v1-7-f44aa3082603@oss.qualcomm.com> November 30, 2026 at 6:13 AM, "Jonathan Cameron" wrote= : >=20 >=20From: Jonathan Cameron >=20 >=20Use iio_trigger_set_default_immutable() rather than taking a referenc= e > to the trigger in probe(). The IIO core now takes the reference during > iio_device_register(), so it is not leaked if probe() fails after the > trigger is set up. >=20 >=20The driver only accepts its own trigger, using iio_validate_own_trigg= er() > to enforce that. An immutable trigger gives the same guarantee, so drop > the callback. >=20 >=20Potential userspace ABI impact. Previously the trigger could be clear= ed > by writing an empty string, or any name that is not a registered trigge= r, > to current_trigger. That now fails with -EPERM, as does selecting a > different trigger, which previously failed with -EINVAL. Writing the > name of the current trigger still succeeds. It is possible some userspa= ce > relies on the teardown behaviour though that userspace would be broken > for existing immutable triggers. >=20 >=20Signed-off-by: Jonathan Cameron > --- Reviewed-by: Siratul Islam > ... >=20 >=20--=20 >=202.56.1 >