From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (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 BA9FD22A7F1; Wed, 21 May 2025 15:56:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747843006; cv=none; b=RYufftd5yYyI6TxmVGE5bh9BZWWjKdtNR9cBo6mOYnspFbh8EYRoZCc/jCMP9XTDwfdLafVXTg+oluGb/hrdHWPrOzNGdnXj9y0yUES6pOizu4L3fjsBhMcyo5xS8gtGqOY/hcSrTw3mVkSSixPxdpLEzEJte7LA8dTiNtyKNik= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747843006; c=relaxed/simple; bh=yJ9/X43KMZHFpownfVvDmm7ntUx5NZaTJWs64dTYo1o=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=VCiCzvvu37GlzaTLt3P6PwLP4ihzapmqSB7/KKKYFcA+ZxXtvh5SqVvvFk4/yjxd35pPu3dOmnGVEVCSUPo0MJ9RYMcYvGvpXiRcnYriKt0BMhP7ocU/cYdW47FA2WiVQpE3TIDcjt+aJhXG0VCoADh0meei5VY6xewunmPo4Uw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=VnXi/AlJ; arc=none smtp.client-ip=217.70.183.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="VnXi/AlJ" Received: by mail.gandi.net (Postfix) with ESMTPSA id 9D3D743944; Wed, 21 May 2025 15:56:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1747843000; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RWRLMRWo16jpVRYnJdVly8AWOZADjFL/Y7YUgRpYoes=; b=VnXi/AlJgIjoOUrlGyrmHsAOwVof7q8B6WXkpHxpgPxm2UQOi1pg8atYMgkpJxkvBjo/YA KChgIuBw74gM9EY7BpgcILaNZsnEPm6oEEBt2tHsFvsjqYVnzgXYmCw9eMNyye+hsdUxnq QcBb2WVk17dRDccOJmYzOlZV38QXB3QxyezSL9ssm2SsMkM6ROr+ppDsoCLj11qBehfTTQ 83cTgAr3IVRYk89ZU5O/hQOP0hoEx0tPeqrDVJO/frlbcM8gN4dSJjwJkk3EK5LP+Br0Nr JgRDDSjavf0qWqWjOAc3SzGtncs51+qtqP8u3ksHF/jisdQhdVXmhjc9phIWLg== Date: Wed, 21 May 2025 17:56:37 +0200 From: Luca Ceresoli To: Cosmin Tanislav Cc: Wolfram Sang , Tomi Valkeinen , Mauro Carvalho Chehab , Romain Gantois , Arnd Bergmann , Greg Kroah-Hartman , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: Re: [PATCH v5 6/9] i2c: atr: allow replacing mappings in attach_addr() Message-ID: <20250521175637.610245e3@booty> In-Reply-To: <20250507121917.2364416-7-demonsingur@gmail.com> References: <20250507121917.2364416-1-demonsingur@gmail.com> <20250507121917.2364416-7-demonsingur@gmail.com> Organization: Bootlin X-Mailer: Claws Mail 4.3.1 (GTK 3.24.49; x86_64-redhat-linux-gnu) Precedence: bulk X-Mailing-List: linux-i2c@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddtgdefhedtucdltddurdegfedvrddttddmucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpeffhffvvefukfgjfhhoofggtgfgsehtjeertdertddvnecuhfhrohhmpefnuhgtrgcuvegvrhgvshholhhiuceolhhutggrrdgtvghrvghsohhlihessghoohhtlhhinhdrtghomheqnecuggftrfgrthhtvghrnhepgeelffefgfehhfdtvdefueefieevkefggfelkeeiudetkeektedvhedukefgvddvnecuffhomhgrihhnpegsohhothhlihhnrdgtohhmnecukfhppedvrgdtvdemieejtdemvddtvddtmegvrgdtudemsggvgedumeelhegvjeemfeegfeemledufegvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdgrtddvmeeijedtmedvtddvtdemvggrtddumegsvgegudemleehvgejmeefgeefmeeludefvgdphhgvlhhopegsohhothihpdhmrghilhhfrhhomheplhhutggrrdgtvghrvghsohhlihessghoohhtlhhinhdrtghomhdpnhgspghrtghpthhtohepuddtpdhrtghpthhtohepuggvmhhonhhsihhnghhurhesghhmrghilhdrtghomhdprhgtphhtthhopeifshgrodhrvghnvghsrghssehsrghnghdqvghnghhinhgvvghrihhnghdrtghomhdprhgtphhtt hhopehtohhmihdrvhgrlhhkvghinhgvnhesihguvggrshhonhgsohgrrhgurdgtohhmpdhrtghpthhtohepmhgthhgvhhgrsgeskhgvrhhnvghlrdhorhhgpdhrtghpthhtoheprhhomhgrihhnrdhgrghnthhoihhssegsohhothhlihhnrdgtohhmpdhrtghpthhtoheprghrnhgusegrrhhnuggsrdguvgdprhgtphhtthhopehgrhgvghhkhheslhhinhhugihfohhunhgurghtihhonhdrohhrghdprhgtphhtthhopehlihhnuhigqdhivdgtsehvghgvrhdrkhgvrhhnvghlrdhorhhg X-GND-Sasl: luca.ceresoli@bootlin.com On Wed, 7 May 2025 15:19:12 +0300 Cosmin Tanislav wrote: > It is possible for aliases to be exhausted while we are still attaching > children. > > Allow replacing mapping on attach by calling > i2c_atr_replace_mapping_by_addr() if i2c_atr_create_mapping_by_addr() > fails. > > Signed-off-by: Cosmin Tanislav Reviewed-by: Luca Ceresoli -- Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com