Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7959789rwb; Wed, 23 Nov 2022 13:15:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf6/bVOrbc2REBgK5PSINZEiBPzw2MwGayMwMZGZX1Lau87a/KgqT6xYy1WqWzK/7PUdkgvW X-Received: by 2002:a05:6402:298f:b0:468:f142:3040 with SMTP id eq15-20020a056402298f00b00468f1423040mr26681609edb.107.1669238111862; Wed, 23 Nov 2022 13:15:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669238111; cv=none; d=google.com; s=arc-20160816; b=og/p3CPqNcY0ucJo8MVHeByWn/o0Hh+jXLeA/YBZrCyOQYgcoQqlHNl7zZjb32uHMm F1DKTT5uTegl2GX2oLILG43hKsA/2nLngQIjt2BJHMQ8tOm+RhwR80RsBajDaNUJhJqu SxYp0IJ1stcKsGVSGk+S8o1j9+p85OMUQ/ObVp7fZP7MHs/qzsaV3PCluAyLfHAI+7Uy EwBrYBdOjmxhdBGU61rh3vWa+nsZmsXfYPA2A0FHFT47sLAuHGptiP9+8WIKSInbFRM3 +wKbrmgpgFzhNFsdHKHRmmMOnGDMH9Kb6whJ7UQ9+ADBrW6McoEN95p0PnObeV8G+l1D VkMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=lUv4aZMrJg61wIDcjeUZzO28LfjtbOiAbEw6CrNQSfU=; b=DLeI1IHA1nWjDDyAm1L3woEHr58Y5rFlG6MD2Limgs/22ymSynUeJbF6pfFKg7YwTM 1spjM+9voEiRsnbDEQtjGuMQKC2Jc68IW48HgxoKF8vYw2Pus/8HiQXr0050Wk+zHtiN iP5uHr9MkrKieWOKNjZbpsQ5z7BsynwVOceEyxU91rpG0BB6n4Lfihu/pFqnEOMLWft+ jDVm57fxMmLCClwyMJVySdBpqW37wk26CO1sUE1Qu9I9xkBGhAxqAS203iPnbKinBqVw /ccIIcADtkvzDtwA0jSv3GHolr0L/Iatf73G80dPTGCpMCPG+SUbJtht/2h4fZUI+r8M pMJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hslFglZ+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc17-20020a1709078a1100b007b863be7bb1si5964587ejc.531.2022.11.23.13.14.50; Wed, 23 Nov 2022 13:15:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hslFglZ+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237660AbiKWUtB (ORCPT + 88 others); Wed, 23 Nov 2022 15:49:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240023AbiKWUsW (ORCPT ); Wed, 23 Nov 2022 15:48:22 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD07E2D1D9; Wed, 23 Nov 2022 12:48:20 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 691FF61F09; Wed, 23 Nov 2022 20:48:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F09FEC433D7; Wed, 23 Nov 2022 20:48:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669236499; bh=RYM0ZVfQo37kojwDQYWBQz6lC3vEa60h8jFcKimdRX0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=hslFglZ+XfllEFhU0oLjGluIc98RcRLJHWcwyaE61A7muWAGXE+P45ERpW+4MFjpl MT8FMk2fjr2qr9as1vBZpvWvp2OJxS1SCVwjLmqw+V+17p7TxxycDk4LHJ5uwhkHNa VtHCAJVMb9500UAPrBzRoOiRUJ+UhY3GZmgDG879zjwqAHRaFcp9D6BNjW6KtpF1qG Hb2gBv0rsjD3aCYzog+KcDU1zKfKFyBAJqoZdV5N0qRcxNnhGOFWEx8AgGB+qLEZP+ eyOpXVtCn8MAA8MHC53rQgAuAx2CWTX6oMXIlDZZYr7aMBsFiZx/KKr5oXFde7CAEA xUTVEBjtWFVGA== Date: Wed, 23 Nov 2022 21:00:52 +0000 From: Jonathan Cameron To: Rasmus Villemoes Cc: Lars-Peter Clausen , Javier Arteaga , Dan O'Donovan , Andy Shevchenko , Nicola Lunghi , Jonathan Cameron , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] iio: adc128s052: add proper .data members in adc128_of_match table Message-ID: <20221123210052.4c1796f9@jic23-huawei> In-Reply-To: References: <20221115132324.1078169-1-linux@rasmusvillemoes.dk> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.34; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 22 Nov 2022 15:41:21 +0100 Rasmus Villemoes wrote: > On 15/11/2022 14.23, Rasmus Villemoes wrote: > > Prior to commit bd5d54e4d49d ("iio: adc128s052: add ACPI _HID > > AANT1280"), the driver unconditionally used spi_get_device_id() to get > > the index into the adc128_config array. > > > > However, with that commit, OF-based boards now incorrectly treat all > > supported sensors as if they are an adc128s052, because all the .data > > members of the adc128_of_match table are implicitly 0. Our board, > > which has an adc122s021, thus exposes 8 channels whereas it really > > only has two. > > > > Fixes: bd5d54e4d49d ("iio: adc128s052: add ACPI _HID AANT1280") > > Signed-off-by: Rasmus Villemoes > > --- > > Ping. Any chance this could be picked up before the merge window for 6.2 > opens? Given it is a clear fix, but for an issue that is multiple versions old (so I'm not sneaking it in post rc6).. No actual rush on this, but meh I'm queuing a bunch of other stuff that will hopefully just make it this cycle so applied to the togreg branch of iio.git and marked for stable. Thanks, Jonathan