Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp700208rwl; Wed, 5 Apr 2023 06:40:56 -0700 (PDT) X-Google-Smtp-Source: AKy350b13AtD/YPcWkFI+1VVLqtE/Zvg2CAdDdGYrtlFOa/CbokJVqAgtMyjY7pN8W2WoeEJed8I X-Received: by 2002:a17:907:a28c:b0:949:9899:a52e with SMTP id rd12-20020a170907a28c00b009499899a52emr390899ejc.8.1680702056664; Wed, 05 Apr 2023 06:40:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680702056; cv=none; d=google.com; s=arc-20160816; b=T/skZCQLljPjBsp6qvk4nSJiUc3ckPQROAHRBv/Eoa8MTr+6MxCJWZKq+Z69sTlV4F beKpaFlsgTnf4E31OBOrE+0NWkJSaSn+LETaK3bLo9t4tTLATHETw7ghUSSDzWBb0+/P pVvI8cyhU4G/q9saDaZNs3gPay6/EuZXLg4VescSGK1iT9gkbO2js2NgGsD59P4AdDk2 krGKtldaWZZImrrOwn8BytoSnanJxZcFo9Tn3b3FDg0EMva13nqlfl8dlTHlO3fONolr pigr617W9chjzqbdzjrPJpCYnRTQS/hQXuVNY6dCq2PRk4rvrfJ+lT3BH3Qfx9i1maW1 6VsA== 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=NU2/eyJHT6oqY3Juiq+mdsAaPAIyRRLTViUw/m4Ahsw=; b=G0230XUAJXKSLqtiFRcEcfp/txu8aonvZhOMBp9Rv+sBr+8w2zbXxR7LAJonX8WpAN G1wGXEQq0YygupKoWmXpAXktnw7vpwuQhUX70Wv7LkqG9DFeke6EOc6nK2eTOsw/RQH8 34WsxdG6HVAGvL2Img0e0sR0dlJQBomBZkUNxWfLzDB6BhWjEbyXtSYjrWrqHgClfbof KxU/z3hxROXWqf/GAG3zJlQoxH4RMDypcrYvec0heOgd+/MYa6oVk7CBalJ3zpHm0Uyz c6a2KSaWaHwxmw7KS3j8v/KCbq/+3GDJB6liq9BIPAXNEvp3ebpnaaYw7MA3Z/AEcDLG 3TmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gbkdGElr; 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 n12-20020a170906088c00b00944a52dd3b9si3798288eje.452.2023.04.05.06.40.28; Wed, 05 Apr 2023 06:40:56 -0700 (PDT) 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=gbkdGElr; 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 S238257AbjDENjt (ORCPT + 99 others); Wed, 5 Apr 2023 09:39:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238312AbjDENjr (ORCPT ); Wed, 5 Apr 2023 09:39:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7F4B49F9; Wed, 5 Apr 2023 06:39:46 -0700 (PDT) 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 4263062923; Wed, 5 Apr 2023 13:39:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9DB7FC433D2; Wed, 5 Apr 2023 13:39:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680701985; bh=71JyiYjAQDNGrKu+w+/togKyzP+qtWLnOs7G5jvJ0Ew=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gbkdGElrkRBoUGegV3mZmLyZa43DZoWFu3fZhnCs2uzfNnfX/SYZkeyLc3V3tToOE ZPPZvdYBspsu7NmdivFCcCsJ/0kJ0ft/uOsaYeA/tnKHI7HiavjM3fUsJ4D58uvGhC IBYGAfxgDF8TcZesH90UaLMcCpPjxWdIJtL4bhsupW1tJ62t84muKF1/rJXaZZ3rj/ pwhYQZd92udtI+X6pJA9Ng74oTnEKOabVyVIz81i+60kogWJW20h6RTGEv8e81TL9c kl0g3cKf+MdCNL+x5P+LPvHP9W5kIle+tRlHVPBcjl2q6IvkN22HXBGfpO6FgaiuIX FVoLaFLa+AQbQ== Date: Wed, 5 Apr 2023 14:39:38 +0100 From: Lee Jones To: Andy Shevchenko Cc: "Sahin, Okan" , Rob Herring , Krzysztof Kozlowski , Liam Girdwood , Mark Brown , Jonathan Cameron , Lars-Peter Clausen , Cosmin Tanislav , Stephen Boyd , Caleb Connolly , Lad Prabhakar , "Bolboaca, Ramona" , ChiYuan Huang , "Tilki, Ibrahim" , William Breathitt Gray , Arnd Bergmann , ChiaEn Wu , Haibo Chen , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-iio@vger.kernel.org" Subject: Re: [PATCH v6 5/5] mfd: max77541: Add ADI MAX77541/MAX77540 PMIC Support Message-ID: <20230405133938.GD8371@google.com> References: <20230307112835.81886-1-okan.sahin@analog.com> <20230307112835.81886-6-okan.sahin@analog.com> <20230315175223.GI9667@google.com> <20230315175257.GJ9667@google.com> <20230329143615.GS2673958@google.com> <20230403140950.GF548901@google.com> 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=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 05 Apr 2023, Andy Shevchenko wrote: > On Mon, Apr 03, 2023 at 03:09:50PM +0100, Lee Jones wrote: > > On Mon, 03 Apr 2023, Sahin, Okan wrote: > > ... > > > > > In fact, one of the maintainers suggested assigning chip_info to data > > > instead of enumeration. Then I added chip_info and put devices into > > > sub-structure above. I will replace chip_info with id structure in max77541 > > > device structure, right? I will use enumeration for data as I will assign > > > it to id, and distinguish different devices. > > > > Yes, that's correct. Please remove chip_info altogether. > > Then it will provoke casting in the OF ID table which I believe is not what > we want. I would agree on your first suggestion to have a plain number in I²C > ID table, but I'm against it in OF and/or ACPI ID table. And I'm against passing MFD information through the OF/ACPI APIs. You can put through raw platform data or a device descriptor. Ref: git grep -A5 "struct of_device_id.*{" -- drivers/mfd -- Lee Jones [李琼斯]