Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2968693rdh; Wed, 27 Sep 2023 20:31:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFeVoq3mOL50HiStKN9iv7M4E6o14CVIowjEgOlAoioHqZ7LMpjbf6qGaXILjIXkj1TUeOd X-Received: by 2002:a1f:e041:0:b0:495:be1c:5be9 with SMTP id x62-20020a1fe041000000b00495be1c5be9mr59462vkg.1.1695871901634; Wed, 27 Sep 2023 20:31:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695871901; cv=none; d=google.com; s=arc-20160816; b=CVhGnjKogVJou0F9fs5OBF+O5REX7WTeC7ONgH047WTKXFsg86Frazl08PDhDdMN6O +00Wg5eTYv0Ha/wAFCg+p9uBgWKZE91pUSQzPLChAGl+QxY33q53xmU4MPqVYiILts7L jEQkBEyS979F8jcAky9k5oKtf//NQOdD6eNeL2aF0WhhckdRj+LacXByR3jMZUyt3OUi UtlqwO+Woy8dxQVst7tvBW1Uuu4EUBQIaActZvYD3HtzzAbfko144/aAmMYhNZaexbc/ CQA2aOmWCOVfno5ZckNChh1pMmt1yOmNsiAjO4PJNaMxgiwKVLMPmvRP4ymlX72jndxf QVhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=lLt2EWwiAamue+aQFCf1ccw7xlWtw/NamUWzlxPh9vg=; fh=B8wfI/LcEXTnqzpoUY/NiKJqSIuQgZmAnPRAIkrzKXw=; b=e/GdvK8mORS0ckTVT1ZXbuNh5rx0IrLgBytI8rs7smFPqhaJg1G5TCN7XzrPOB5JsW 1+hTcFJTToimPesYaksMUdntwrocZ5FGw00IpqAyuDg12hQePHZMrCxS1QWQKQg0bpW3 TfeU3BzYoNWqOHHe+k2Bnyq8FdVU77TkdDrP/J48GvbOj5XFsx3GXKHxcflZaijZhw8i QbBhIA569sMfcx9DUUZMhg9LIfvrDsnQtmZxRUVuO8EczZjWJQ7XXiPLhkwfbdZMOhkC gR9esv1Ew0HArTZrRXNkTb/SXZm/nKuzGdpqdJC8w2O5s79oidtUUimTNme+A+162djg Ntew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SxvozSPN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id cu2-20020a056a00448200b0069015b1491bsi17283776pfb.120.2023.09.27.20.31.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 20:31:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SxvozSPN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id E39978031128; Wed, 27 Sep 2023 14:25:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229821AbjI0VZK (ORCPT + 99 others); Wed, 27 Sep 2023 17:25:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbjI0VZJ (ORCPT ); Wed, 27 Sep 2023 17:25:09 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF3A3D6; Wed, 27 Sep 2023 14:25:07 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-99c1c66876aso1548069966b.2; Wed, 27 Sep 2023 14:25:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695849906; x=1696454706; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=lLt2EWwiAamue+aQFCf1ccw7xlWtw/NamUWzlxPh9vg=; b=SxvozSPNQ369+5Iw4tK2Uvlqo4FkvntgqiM5b1mODe4EzB4+s6rrBFRwuydrNd/Ga1 4zQ7Zwexu8KxB6AcfUyqhUAnAkc8lzGLnlZsbXJHDOXyzFw10UCL395hRGxPRiMRotnd o9ZxJqXLiwqf8jwnlhiJjrIqKBu7g3tnHJ1kR13BDJVEtJueirWixKPrA2Y5lUCZnKwX bL0IttBVX2w/ozN8X/qglkgh/eYva5C1Y9zN0j9444PKFXZfpNvuAn+om8wWYFn9jKm8 sZQZNpMXHxKvcD/Hij5BsEslg7KmMFunUGS0EZGotYeQCQ28vK8/zxV18IMrVZ95HoOy m1Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695849906; x=1696454706; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lLt2EWwiAamue+aQFCf1ccw7xlWtw/NamUWzlxPh9vg=; b=YNLIdH0flwrAxDLiF4FW88BJBWxTdf9vFst/59ROoBuRpmE9rCELth9coO/vT5voBJ vlF8BKNE5jOJUpRKg+9lJNtF+siSK7akMcPITblmF3XxmhJXIODWtFETsic0GBUBa5X1 pa+2HuSqDYAScbETfgDtS8P0BO/T4wEkhFQC+Et3kFHIIOgibQgBKRzepls+4gnGC2c4 kTvUPM4LFgZLHCpl9QSBqZF3g9qfaVNhlfTjHq8UfFwVGq73ZPjJKmFqfewuOVLap2MM vCZFpK+cvpvb59ipSc+Pn2pODjVJb+IN9u96/NURxffkRnRsvHeygeWALxaH9mhGnbUW 9EpA== X-Gm-Message-State: AOJu0YxfAh5ZHUIaRFDPmvAh7UW2eJrs5j9Y2wO0aaTCxO4xCEW88r+c yctUK/2Ag1DEaXy29zV5bnI= X-Received: by 2002:a17:907:77da:b0:9b2:b43e:4fcf with SMTP id kz26-20020a17090777da00b009b2b43e4fcfmr2352742ejc.64.1695849905945; Wed, 27 Sep 2023 14:25:05 -0700 (PDT) Received: from [192.168.1.99] ([151.95.123.113]) by smtp.gmail.com with ESMTPSA id bg1-20020a170906a04100b009adce1c97ccsm9886969ejb.53.2023.09.27.14.25.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Sep 2023 14:25:05 -0700 (PDT) Message-ID: <5eb148b4-25eb-460d-9ec8-0a40bec1dc6f@gmail.com> Date: Wed, 27 Sep 2023 23:25:04 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC 2/2] iio: imu: Add driver for BMI323 IMU Content-Language: en-US, en-US-large To: Jagath Jog J , Jonathan Cameron Cc: andriy.shevchenko@linux.intel.com, lars@metafoo.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230918080314.11959-1-jagathjog1996@gmail.com> <20230918080314.11959-3-jagathjog1996@gmail.com> <20230924153055.0b3486f9@jic23-huawei> From: Denis Benato In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 27 Sep 2023 14:25:18 -0700 (PDT) Hello, Some devices (as my asus rog ally) have an ACPI node describing a BOSC0200 sensor. The IC being used in those devices is a bmi323 but as a result of how the ACPI table reports that device, it is detected by the existing kernel module and we have no way of differentiating until after the chip ID probe. The module loaded is bmc150-accel-i2c.c which currently doesn't support the bmi323 and the loading of the module just fails at chip check. I have solved the problem by expanding the current bmc150-accel-i2c.c and bmc150-accel-core.c files to handle that IC in almost every part: gyroscope, accelerometer and temperature sensor. What is the best way of organizing code to have this module mainlined? Is it correct leaving files called bmc150-accel-* even if it is managing another IC and and not just the accelerometer part anymore? TIA for your time. Best regards, Denis Benato