Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.14 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796296600; b=EMpEG1OCk8Gfk7jzuoA9h1V4N/pi76YtR61fAMCqNVXD33Tnum1DGDmPhYZnGNqyJ/ec 8fK4tFtQ/LwiDrfjeeRUsr1Y2BdXexggn0x0JEhPO2z4mBIHiC8blL/dl0cuKr8FggA5H L63A7Yhe/KDegV6BejXUhCO7pmy6tcP76/3rRkivwnFapJj/w0ku6QSXrnZP32lEtybkk 3NnSUDM0E6o1w/2LscujmeG8211nNQdZ2EiMewBbT8SV1o0pCz9W4RnVOjBFBWYOt3kPy FrWveRHtpwqH29ebe5ahQG6S9HdmwNU0cZdwr4knOajWAmnsxkui8Sxq+0AyClwo0pQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796296600; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:In-Reply-To: Organization; bh=ZMaGz83YiDX0AHfTVWnu50LvC1ExYDpG7Qu4q6kL3Yg=; b=NeQTHOwJPLUSK79ieppvHqSI6y3uhReN7Lb3lBuVKXo2nJlot0XORFCHLXITZyU/VAA1 ZBUOhrWOWrycsszqiZVqCyzVAHIrXsaUxmp5VjJ27Nh+jt2/W3qVemqMeWPRo9TvqEfR0 7HTf3VhjLWc2tslJ5e4rxopGq0F1OIXJudxhIYXpkCMAppy64vOTKg4DHCqiJkJAHd6K0 2W4yaQBkfgFkrGnhTGYDNQl/FCzbp3KHPLigukOSf1aObp8e7ra/3aHHMFgr+WdtjkZM1 B0yJOh0idUT108XG8JGb9jMMi3hGKVDnXE4N7Lc3zc4xHoRgy9Pa8MPrpYtMgElGClg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=XdNHLYb7; arc=none smtp.remote-ip=192.198.163.14 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 93DA7606A684; Thu, 3 Dec 2026 11:16:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 93DA7606A684 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=XdNHLYb7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796296599; x=1827832599; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=ZMaGz83YiDX0AHfTVWnu50LvC1ExYDpG7Qu4q6kL3Yg=; b=XdNHLYb7NSepCf7UfAEAe+X9xAga9En03gx1DBj5dalSY3iXb58p9LbQ lju/HQcSs04KRLhvBf1Nz2V8egFXZ6rTboRFBVPsm2evnVL1nSt0jMZkx w9UqOSr+m1ra5DNBMdzOkJ4KZF5XdLP+UvdbpwN8LCUFq80kIHrIbJyrE 78JZZ8FUzPo/MPBN/qMOf8oiuSt3QYRZ44cq6DD9HQZj/OJyA4Msv1U2B rQ9XIR3qacTO03RcWOTle3ja6S5yd/yxWcXQbtqAsi82m7oSfG7YhuR7A 7iZUimS8F6WGYevspgZDdZ75rzbmMaZpRGKfGixD93HxYHOqcrjhPsbnf Q==; X-CSE-ConnectionGUID: Xx2FcxG8THGVjWWzFsF2mQ== X-CSE-MsgGUID: 2KU7DWMuTTiqjdjYwbdeEg== X-IronPort-AV: E=McAfee;i="6800,10657,11984"; a="5225680" X-IronPort-AV: E=Sophos;i="6.27,248,1787036400"; d="scan'208";a="5225680" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 03:16:39 -0800 X-CSE-ConnectionGUID: 3mkz2xipRdyIu0YYr1IFiQ== X-CSE-MsgGUID: VTZ0mxTATRuP+yjqVjoovg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,248,1787036400"; d="scan'208";a="14338226" Received: from inaky-mobl1.amr.corp.intel.com (HELO localhost) ([10.245.244.115]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 03:16:33 -0800 Date: Thu, 3 Dec 2026 13:16:30 +0200 From: Andy Shevchenko To: cleverline1mc@gmail.com Cc: Jonathan Cameron , David Lechner , Nuno =?iso-8859-1?Q?S=E1?= , Andy Shevchenko , Angelo Compagnucci , Sascha Hauer , Rob Herring , Akinobu Mita , Wolfram Sang , Javier Martinez Canillas , linux-iio@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] iio: adc: mcp3422: Add the compatibles from the binding Message-ID: References: <20261202-mcp3422-compatibles-v1-1-dd8530aabc27@gmail.com> 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 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20261202-mcp3422-compatibles-v1-1-dd8530aabc27@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo On Wed, Dec 02, 2026 at 10:24:29AM +0100, Kryštof Černý via B4 Relay wrote: > The MCP342x binding, first iio/adc/mcp3422.txt and now > trivial-devices.yaml, documents the compatibles "microchip,mcp3421" to > "microchip,mcp3428", but the OF match table only has the undocumented > "mcp3422". A device described as the binding says still binds, because > the I2C core falls back to the I2C ID table, but its module is not > loaded automatically: since commit af503716ac14 ("i2c: core: report OF > style module alias for devices registered via OF"), the uevent of such > a device carries only the OF modalias, and none of the module aliases > match it. > > Add the documented compatibles. Keep "mcp3422" so that device trees > using it keep loading the module. > > Tested on a Raspberry Pi 4 B board with an MCP3422 described as > "microchip,mcp3422". Without this patch (on v6.12), the device's uevent > carries MODALIAS=of:Nmcp3422T(null)Cmicrochip,mcp3422, modprobe finds no > module for it and the module is not loaded; loading it by hand probes > the device. With this patch, the module is loaded at boot and the ADC > reads. > > Fixes: af503716ac14 ("i2c: core: report OF style module alias for devices registered via OF") > Cc: stable@vger.kernel.org We may not accept patches without SoB. > --- > I added Cc: stable because module autoloading for the documented > compatibles has been broken since v4.17. > Please drop it if you don't think it qualifies. > > Regarding the old compatible, I was not sure if it should be kept or > removed, I kept it to keep compatibility with old dtb, as it can be > removed easily any time in future. > > An AI assistant (Claude) helped write the commit message, following the > commit-message, find-fixes and stable-tag skills from Sasha Levin's > agents branch (git://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux.git > agents, d8d07dd58c62). > Signed-off-by: Kryštof Černý Yeah, yeah, you missed the correct location. Try again. > --- -- With Best Regards, Andy Shevchenko