Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 10465C43219 for ; Sun, 28 Nov 2021 14:06:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357792AbhK1OJj (ORCPT ); Sun, 28 Nov 2021 09:09:39 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:26439 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357910AbhK1OHi (ORCPT ); Sun, 28 Nov 2021 09:07:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1638108261; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=e+Jp6usFpaKaaXv9FAmn62UmMCj5S/iWmUh1+bDNphY=; b=IpSZ+knIlXn8Yh3hc3fGAiBh3DqqpbyjF+y3EO4eqkDdcgKX43Od6/t3cD22pMdhVu8ku+ H86w6qtMvQPEiRS9hRVfE5Bds0HyRZDWdFaOcqk/vtt3X/kGkVhjKd2+DByuTa+3ZM//rL 3fly1ZL5kGHLb+3WipRtqLhUsmO880M= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-289-1L32PWKZN_SM0fQyrNJTpA-1; Sun, 28 Nov 2021 09:04:20 -0500 X-MC-Unique: 1L32PWKZN_SM0fQyrNJTpA-1 Received: by mail-ed1-f70.google.com with SMTP id n11-20020aa7c68b000000b003e7d68e9874so11496084edq.8 for ; Sun, 28 Nov 2021 06:04:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=e+Jp6usFpaKaaXv9FAmn62UmMCj5S/iWmUh1+bDNphY=; b=e4l2jvFAwzmasWQH4f7m20mqcpvw19NxRAnTWbrwIIzpccii9fh2gbAZ3G3HQLZ+DL AinkpATHhOt6mbt6O4pzTackaVw7KMa53y95QBhllqNZMRXnYUu3m4NSq2mkFYciSMNO aMeR0a23f8TFXkYUSNjDO+q9W0Q8iXBoxZuEwZFkSD/tbxVbc1spFGRi+u9yaC2CITYA QB4bY+URX4pxkml7M1YUqTm26zRhEn4DMnEf1hxcEniphz/iu/q5nl4MHA10gzh5P6C1 cOx/kTCQmGPxJmG8AqRIKpHkcMAwQtjWGw0v5P8Rt3SyBNNFpnCSRXhvb9D/Ubmd+Vlv MjXA== X-Gm-Message-State: AOAM530mhSn4vuYxbTT7RbYUehLiT9ej5XsYnnyMHaTHjXPg9wlPFwUV uEJXdXkWLJntRovdl5zVOuSjDuW/jSZDxGzLwsVfxHMNBXXnDOBqYbychxakPf8nwBUwvF8y+/j jvcc81um6FtGnwdEUmg6X0Geo X-Received: by 2002:aa7:c902:: with SMTP id b2mr64149089edt.320.1638108259420; Sun, 28 Nov 2021 06:04:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJwhrhSzUBXb+AYyMMBNwKamIQdJMxAwciX+H0d0CL9cBVhC0eS1t4VEa6fv8l93EOqDa7U+KA== X-Received: by 2002:aa7:c902:: with SMTP id b2mr64149027edt.320.1638108259005; Sun, 28 Nov 2021 06:04:19 -0800 (PST) Received: from ?IPV6:2001:1c00:c1e:bf00:1054:9d19:e0f0:8214? (2001-1c00-0c1e-bf00-1054-9d19-e0f0-8214.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:1054:9d19:e0f0:8214]) by smtp.gmail.com with ESMTPSA id q7sm7196971edr.9.2021.11.28.06.04.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 28 Nov 2021 06:04:18 -0800 (PST) Message-ID: Date: Sun, 28 Nov 2021 15:04:17 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: [PATCH v2 15/20] i2c: cht-wc: Make charger i2c-client instantiation board/device-model specific Content-Language: en-US To: Wolfram Sang , "Rafael J . Wysocki" , Mika Westerberg , Mark Gross , Andy Shevchenko , Sebastian Reichel , MyungJoo Ham , Chanwoo Choi , Ard Biesheuvel , Len Brown , linux-acpi@vger.kernel.org, Yauhen Kharuzhy , Tsuchiya Yuto , platform-driver-x86@vger.kernel.org, linux-i2c@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org References: <20211114170335.66994-1-hdegoede@redhat.com> <20211114170335.66994-16-hdegoede@redhat.com> From: Hans de Goede In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 11/23/21 09:24, Wolfram Sang wrote: > On Sun, Nov 14, 2021 at 06:03:30PM +0100, Hans de Goede wrote: >> The i2c-controller on the Cherry Trail - Whiskey Cove PMIC is special >> in that it is always connected to the I2C charger IC of the board on >> which the PMIC is used; and the charger IC is not described in ACPI, >> so the i2c-cht-wc code needs to instantiate an i2c-client for it itself. >> >> So far this was hardcoded to instantiate an i2c-client for the >> bq24292i, with all properties, etc. set to match how this charger >> is used on the GPD win and GPD pcoket devices. >> >> There is a rudimentary check to make sure the ACPI tables are at least >> somewhat as expected, but this is far from accurate, leading to >> a wrong i2c-client being instantiated for the charger on some boards. >> >> Switch to the new DMI based intel_cht_wc_get_model() helper which is >> exported by the MFD driver for the CHT Whiskey Cove PMIC to help PMIC >> cell drivers like the i2c-cht-wc code reliably detect which board >> they are running on. >> >> And add board_info for the charger ICs as found on the other 2 known >> boards with a Whisky Cove PMIC. >> >> This has been tested on all 3 known boards. >> >> Signed-off-by: Hans de Goede > > Here is my Ack to take this via some other tree: > > Acked-by: Wolfram Sang Great, thank you. > No need to send further versions of this series to the i2c-list, I'd > think. Ok I will drop the i2c-list from the Cc for further versions of this series. Regards, Hans