From nobody Sun Feb 8 18:24:19 2026 Received: from mail.zeus03.de (zeus03.de [194.117.254.33]) (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 01982221287 for ; Sat, 11 Oct 2025 10:32:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760178735; cv=none; b=LkLsAEbN6wuk51gnLNoX0jhP59XT7Nxb+jPLDxoAoR5S1HY5V3RECGvcy9vW9gC1y/GUZV7z+qF1DHHh2bS28iZzktX+8unI9tTD03Zde7SlOlrEBWOgFtERUDx9dvxlJIA26WlTuVKnwvAKiOdHQC42SvwfR/9QelCa/rR0urE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760178735; c=relaxed/simple; bh=2/6vQ2M8GA04r5ne5JBaZS7VOi+wRTeERQJ4rP3DspM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FwlLaWYkibhfkSId6gWE6d4/z7jBMFlQ1mPYHtWbveaTMugi1nCRyEAqK5DAduS/WYn/WRcBlr0a3QQbhseel/9Vp+79Tx3qDSLIW8CJfPbD7y/q44p/fmI0lp0egB8cpaS6UpJCMfvtn2tUT/HNTwRixGpjwnRDtdNyrGdRic4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=OCNHXvTl; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="OCNHXvTl" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; s=k1; bh=khamaVxLyFWfGo ToFxOhc1bRpojNKYYX5jLKClNZej4=; b=OCNHXvTlau2mX5bxk+8AskpULXka8V GeQZgWCjV8q78gwGEjWtbC+Dgt6Ehs5T6X/CsvJw53R//2EdDSqqqUFcW+m44Bkw b+fKXKtCziZE0qYEPXBpC56r2YwtYHf95jcsjxCkwyPi1bjUtrrVogSlKcq5VJt7 OM23DDCqZ1uhkB0xW4TTJ+izjU/DBbK2NMR8ZwEsi7N1+XfL8K/UQkjS86Qz156e BC/8fHFGfPkNs+qMbNYIUuQTolcp9+1UzKbWZDqj/szd3Z//4DdPsmp1AkjLWbdh gvPV1MpVmt7/qyqmqTLt4fZ9Ulos2BQjvcKQm59sR9GkSQ/ddOp0lBKg== Received: (qmail 1793365 invoked from network); 11 Oct 2025 12:31:57 +0200 Received: by mail.zeus03.de with UTF8SMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 11 Oct 2025 12:31:57 +0200 X-UD-Smtp-Session: l3s3148p1@l8kwi99AIqsujntw From: Wolfram Sang To: linux-kernel@vger.kernel.org Cc: Heiner Kallweit , Wolfram Sang , Konrad Dybcio , linux-i2c@vger.kernel.org Subject: [PATCH] Revert "i2c: boardinfo: Annotate code used in init phase only" Date: Sat, 11 Oct 2025 12:31:53 +0200 Message-ID: <20251011103153.2354-1-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.47.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This reverts commit 1a2b423be6a89dd07d5fc27ea042be68697a6a49 because we got a regression report and need time to find out the details. Reported-by: Konrad Dybcio Closes: https://lore.kernel.org/r/29ec0082-4dd4-4120-acd2-44b35b4b9487@oss.= qualcomm.com Signed-off-by: Wolfram Sang --- drivers/i2c/i2c-boardinfo.c | 4 ++-- include/linux/i2c.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/i2c-boardinfo.c b/drivers/i2c/i2c-boardinfo.c index 338800321f8b..4df8ad092df3 100644 --- a/drivers/i2c/i2c-boardinfo.c +++ b/drivers/i2c/i2c-boardinfo.c @@ -22,7 +22,7 @@ EXPORT_SYMBOL_GPL(__i2c_board_lock); LIST_HEAD(__i2c_board_list); EXPORT_SYMBOL_GPL(__i2c_board_list); =20 -int __i2c_first_dynamic_bus_num __ro_after_init; +int __i2c_first_dynamic_bus_num; EXPORT_SYMBOL_GPL(__i2c_first_dynamic_bus_num); =20 =20 @@ -48,7 +48,7 @@ EXPORT_SYMBOL_GPL(__i2c_first_dynamic_bus_num); * The board info passed can safely be __initdata, but be careful of embed= ded * pointers (for platform_data, functions, etc) since that won't be copied. */ -int __init i2c_register_board_info(int busnum, struct i2c_board_info const= *info, unsigned len) +int i2c_register_board_info(int busnum, struct i2c_board_info const *info,= unsigned len) { int status; =20 diff --git a/include/linux/i2c.h b/include/linux/i2c.h index 11a19241e360..20fd41b51d5c 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h @@ -499,7 +499,7 @@ static inline struct i2c_client *i2c_verify_client(stru= ct device *dev) * Modules for add-on boards must use other calls. */ #ifdef CONFIG_I2C_BOARDINFO -int __init +int i2c_register_board_info(int busnum, struct i2c_board_info const *info, unsigned n); #else --=20 2.47.2