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 9E7F4C54E94 for ; Thu, 26 Jan 2023 14:33:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232230AbjAZOdF (ORCPT ); Thu, 26 Jan 2023 09:33:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232182AbjAZOdD (ORCPT ); Thu, 26 Jan 2023 09:33:03 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CC3B44BD5; Thu, 26 Jan 2023 06:32:59 -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 21D4361853; Thu, 26 Jan 2023 14:32:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05A11C433EF; Thu, 26 Jan 2023 14:32:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674743578; bh=f9LSun52cCqwsxuwa0XRp6EZKI8omNUekwnnzl11fN8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ave6yRlotlhXORIulF3rKwxB2SMEGkp2ByNYB9mbtA0UxGyBjfx9KVWjv7uyn1Fet QFNLBjKoUgTS+b9ETtnildtEcVryqs9HpGGntrioow1kQ0E/PLCyUmxjfBrOyAExpp fzOO/fHUBYCur4jyXvTu1twMPS7jMUAbsoBelE5SW7QSVLNqZE83Hkhcyw8w52c2G0 UpZEfKAXRq9JRYhTY7N2i5sfLZcCSzjuavKlIIucK6u53prvNqMDwQhvMJsh4nrK+6 Q7m531mIBb2XHovpQv/dNv+CzSnEVagWQfHS67PqNrEaw/tQioRhsjeivQRrs/m+8q 8ye+itC5yCOrg== Date: Thu, 26 Jan 2023 14:32:53 +0000 From: Lee Jones To: Rob Herring Cc: Jesse Taube , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, lee.jones@linaro.org Subject: Re: [PATCH v2] drivers/mfd: simple-mfd-i2c: Add generic compatible Message-ID: References: <20221202113226.114465-1-Mr.Bossman075@gmail.com> <20230119175135.GA2085792-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 20 Jan 2023, Rob Herring wrote: > On Thu, Jan 19, 2023 at 2:54 PM Lee Jones wrote: > > > > On Thu, 19 Jan 2023, Rob Herring wrote: > > > > > On Fri, Dec 02, 2022 at 06:32:26AM -0500, Jesse Taube wrote: > > > > Some devices may want to use this driver without having a specific > > > > compatible string. Add a generic compatible string to allow this. > > > > > > What devices need this? > > > > > > Is that no specific compatible string at all or just in the kernel? > > > Because the former definitely goes against DT requirements. The latter > > > enables the former without a schema. > > > > > > > > > > > Signed-off-by: Jesse Taube > > > > --- > > > > drivers/mfd/simple-mfd-i2c.c | 1 + > > > > 1 file changed, 1 insertion(+) > > > > > > > > diff --git a/drivers/mfd/simple-mfd-i2c.c b/drivers/mfd/simple-mfd-i2c.c > > > > index f4c8fc3ee463..0bda0dd9276e 100644 > > > > --- a/drivers/mfd/simple-mfd-i2c.c > > > > +++ b/drivers/mfd/simple-mfd-i2c.c > > > > @@ -73,6 +73,7 @@ static const struct simple_mfd_data silergy_sy7636a = { > > > > }; > > > > > > > > static const struct of_device_id simple_mfd_i2c_of_match[] = { > > > > + { .compatible = "simple-mfd-i2c-generic" }, > > > > > > Simple and generic? There is no such device. Anywhere. > > > > > > This is also not documented which is how I found it (make > > > dt_compatible_check). But this should be reverted or dropped rather than > > > documented IMO. > > > > I thought it would be better than having a huge list here. > > What indication is there that the list would be huge? We have 2 out of > 137 MFD bindings. Usually if the MFD is simple, we'd make it a single > node. It just needs to be clear what the conditions are for using it. > > > Devices should *also* be allocated a specific compatible string. > > > > $ git grep simple-mfd -- arch > > Why can't simple-mfd be used here? Until this is clarified, agreed and documented, I'm dropping the patch. -- Lee Jones [李琼斯]