Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp889066rwb; Wed, 7 Dec 2022 06:17:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf7+gbm3gPhnCheoPPmz2U6MjMG6Sy69PG1RJUXgEsGnJ345l/Wb3UJLjLBI3u+T6unwKNLR X-Received: by 2002:a17:906:fa11:b0:7c0:d94c:f9f with SMTP id lo17-20020a170906fa1100b007c0d94c0f9fmr14470806ejb.542.1670422635114; Wed, 07 Dec 2022 06:17:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670422635; cv=none; d=google.com; s=arc-20160816; b=XHENyN9tzsgY3VlQ/CGdg6Brl/JWgRnkR3PXNeVcufynWeYi4Umg25xe6X9C1vG/q7 rs2C8kI7f2Kj5mbb7jz0D4XxzuV/d3cf+es9BGGMLvokVQMnbMFZqWfQepfmScOglDqt FrKdq0giK5XGxXXEdLp67Ennth4mria3bQjkcjNa6870NjUOpT8NP/EiqGCVy8HQmmUM PJldJOTn/CZyUiHr/JpeyH8h7wIFHo/pUQziVuH/PWmEZYQOQ7zWmn1m467hWBqP5fXl U1s/0gZMgvnJXQZzaBgjHNKAJ3CJBnLFr07qPi4vboxswboLZNMc3ZyRtc11Lq5sr1yo egvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4IYZxRX/MkAb76v1pkJJTM3ouP5fqKAPnoJQHY8rWuQ=; b=SSgfLIv1QYLGtT2wfU3CtauHE80x1cyjwQwzV4JqIRF8BaTpPSS4G0CPiXzIWRTuCX yWGl3LsrWUfWHhLHGGFns/RZ9PWSS42XfZ2E2z05uuNqJ4VJfT21WsyeJMsbFTxuSMjC WEUt/ICKPTqm8NagK70xpDL8cMvfPVFhb8OCU6yMC0X6AjpQZ9+O0UlkS1ZR349c41OG bxhpvbThZZmiK0e0T72MimCSceZzSt+5CMy/a/IZ8d3Ns/XKt3xBVNotwzUQEVbCIuE/ HHbMibpWNsiLZNF44fk1eMG/iedFuYKVRYTQ5PHZpZRMgE5MKzxoB8y+lGXjJq8udZtC Zt+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g8ku8GNO; 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 v13-20020a170906b00d00b0077fc66b581esi11675883ejy.688.2022.12.07.06.16.54; Wed, 07 Dec 2022 06:17:15 -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=g8ku8GNO; 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 S229999AbiLGNeO (ORCPT + 75 others); Wed, 7 Dec 2022 08:34:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229646AbiLGNeL (ORCPT ); Wed, 7 Dec 2022 08:34:11 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40F9359172; Wed, 7 Dec 2022 05:34:10 -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 ams.source.kernel.org (Postfix) with ESMTPS id E81BBB81DC7; Wed, 7 Dec 2022 13:34:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0AA25C433D6; Wed, 7 Dec 2022 13:34:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670420047; bh=elr2HDuqjRRmOQhV34eBsyYESMXGtjl2XNUUUrkaqDE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=g8ku8GNOfJyWBcx1vpcCk/gqTAD1OeLVCBOJxydgHKXE6GtJTC230Fk1/N1+lafVT +agnxRYIX9/2Bs4kRL6CezS2rl91XYk0ZeotTnibqkLc28yjq5/rpmXFt6RUFMydGv rcFywx27xbM0yMCXkuDg3eepOD2iQFNq+wzsMVCL0aCT1kdpAIBTgTWhgGEPN0nLnT AnuzekHsSuIYuk1tLB7tpq0NXHqg/AKobEn5V57tPMx8H/nSAsdGesN5JITh04uemj iOdog1CTDxfjk/k4sBIEpcJ4up4iX8j/ryivCadE0T+ffNSgPed379V2iPGQf4BWTU irppfU69unGfQ== Date: Wed, 7 Dec 2022 13:34:01 +0000 From: Lee Jones To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: Neil Armstrong , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , linux-kernel@vger.kernel.org, Wolfram Sang , Angel Iglesias , linux-i2c@vger.kernel.org, kernel@pengutronix.de, Grant Likely , linux-amlogic@lists.infradead.org, Lee Jones Subject: Re: [PATCH 431/606] mfd: khadas-mcu: Convert to i2c's .probe_new() Message-ID: References: <20221118224540.619276-432-uwe@kleine-koenig.org> <20221121150854.3mwczqtbusawho4m@pengutronix.de> <20221206105908.jzcdnast3yw22eel@pengutronix.de> <20221206163516.i6rzewxts7do75y5@pengutronix.de> <20221207110007.yfjfiakmh4ma3sfo@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 Wed, 07 Dec 2022, Lee Jones wrote: > On Wed, 07 Dec 2022, Uwe Kleine-König wrote: > > > Hello Lee, > > > > On Tue, Dec 06, 2022 at 04:56:59PM +0000, Lee Jones wrote: > > > > On Tue, Dec 06, 2022 at 04:10:51PM +0000, Lee Jones wrote: > > > > > On Tue, 06 Dec 2022, Uwe Kleine-König wrote: > > > > > > > > > > > Hey Lee, > > > > > > > > > > > > On Mon, Nov 21, 2022 at 04:51:21PM +0000, Lee Jones wrote: > > > > > > > On Mon, 21 Nov 2022, Uwe Kleine-König wrote: > > > > > > > > > > > > > > > Hello Lee, > > > > > > > > > > > > > > > > On Mon, Nov 21, 2022 at 12:32:10PM +0000, Lee Jones wrote: > > > > > > > > > On Fri, 18 Nov 2022, Uwe Kleine-König wrote: > > > > > > > > > > > > > > > > > > > From: Uwe Kleine-König > > > > > > > > > > > > > > > > > > > > The probe function doesn't make use of the i2c_device_id * parameter so it > > > > > > > > > > can be trivially converted. > > > > > > > > > > > > > > > > > > > > Signed-off-by: Uwe Kleine-König > > > > > > > > > > --- > > > > > > > > > > drivers/mfd/khadas-mcu.c | 5 ++--- > > > > > > > > > > 1 file changed, 2 insertions(+), 3 deletions(-) > > > > > > > > > > > > > > > > > > After a week or so, please collect-up all the tags you have received > > > > > > > > > and submit a per-subsystem set for me to hoover up, thanks. > > > > > > > > > > > > > > > > For mfd I'd do: > > > > > > > > > > > > > > > > git checkout mfd/for-next > > > > > > > > b4 am -P 413-481 20221118224540.619276-1-uwe@kleine-koenig.org > > > > > > > > git am ./20221118_uwe_i2c_complete_conversion_to_i2c_probe_new.mbx > > > > > > > > git send-email --to .... --cc .... mfd/for-next > > > > > > > > > > > > > > That's just crazy enough to work. > > > > > > > > > > > > > > Thanks for the tip. > > > > > > > > > > > > On irc you said you'd care for application of these patches ("I plan to > > > > > > attempt the b4 solution"), they didn't land in next yet. Do you need a > > > > > > reminder? Something else? > > > > > > > > > > I applied them, but they fail to build and I haven't had time to > > > > > investigate. I guess they depend on some patches that have been > > > > > accepted into another (input?) and are now in -next. Any idea if they > > > > > are available on some immutable branch that I can pull from? > > > > > > > > If in your tree i2c_client_get_device_id() is missing, you want to pull > > > > > > > > https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/client_device_id_helper-immutable > > > > > > Ideal, thanks. > > > > I see you added my commits to your tree now, however there is a problem: > > > > $ git log --oneline --graph --boundary linus/master..FETCH_HEAD > > ... > > * 7281458f4396 Merge branches 'ib-i2c-mfd-client_dev_id_helper-6.2' and 'ib-mfd-uwes-i2c-probe_new-6.2' into ibs-for-mfd-merged > > |\ > > | * c066a1632bc3 mfd: wm8994-core: Convert to i2c's .probe_new() > > | * 0f22cf00762d mfd: wm8400-core: Convert to i2c's .probe_new() > > | * 090f49b250ee mfd: wm8350-i2c: Convert to i2c's .probe_new() > > | * 7174af1be41d mfd: wm831x-i2c: Convert to i2c's .probe_new() > > | ... > > | * 63909fec136e mfd: adp5520: Convert to i2c's .probe_new() > > | * 549d4f3207f8 mfd: act8945a: Convert to i2c's .probe_new() > > | * 623f79babaf1 mfd: aat2870-core: Convert to i2c's .probe_new() > > | * ce41e4ae7cac mfd: 88pm805: Convert to i2c's .probe_new() > > | * 02aa483f1f98 mfd: 88pm800: Convert to i2c's .probe_new() > > * | 662233731d66 i2c: core: Introduce i2c_client_get_device_id helper function > > |/ > > o 9abf2313adc1 (tag: v6.1-rc1) Linux 6.1-rc1 > > > > That means that the commit introducing i2c_client_get_device_id() isn't > > an ancestor of the commits that make use of the new function. So > > 63909fec136e (which is the first commit making use of the new function) > > likely won't compile: > > > > $ git grep i2c_client_get_device_id 63909fec136e > > 63909fec136e:drivers/mfd/adp5520.c: const struct i2c_device_id *id = i2c_client_get_device_id(client); > > > > Starting with 7281458f4396 everything is fine again, but still this > > hurts a bisection. > > Fair point - I'll rebase the my topic branch on top of Wolfram's. Okay, try now. -- Lee Jones [李琼斯]