Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp876711rwl; Fri, 4 Nov 2022 07:22:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5BetqB3VQLlY5tFu0tXJSqNjZ972+cwCUcALUb+OfRPYA2C3E2BZZx0tMpmSDvPeGUjA7V X-Received: by 2002:a63:6a03:0:b0:43a:18ce:7473 with SMTP id f3-20020a636a03000000b0043a18ce7473mr32003116pgc.616.1667571768039; Fri, 04 Nov 2022 07:22:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667571768; cv=none; d=google.com; s=arc-20160816; b=mRMWAst4q70IpwHmWAs8sgnl581TiiYFcNDCJ3l/iyICCNshgy5/uoAj9rQMCroa7V Dq73z5CTLi2NfVOWFQe8kHKqHIoW3o9W1OLPNymVFiGWhf+ZWrchZVbA1hlecl4HMMKA /S+ZH9QkQaJA+zttlSg16Y7wosJQoRloeG818RRsNjKd6X+CDutX2jOVThIoTb8w4j16 U5dsO4PNbqekZSke0VzWWnDVHV0d2yY8Ho5hA+QsZPZp1wb9f+/F136V2P0WZGIDqZiV cHEpqGeQVpIBSnQTypFz9XDpXJ46RZsD9Hd8GdPvQZrmefI4/bQP47NdephkGXDflJuX kEqA== 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=uSjwUuAqYRIfcCm08KZ7ugEJQDFvrAmSUHlp9c9Sj38=; b=x9uzcXXYFGq364UZ2n2T4CvT/hcQY+fssisW9hRbXredyNEm+Z1cQxsL5tHZ/bZeyE xHfilPogkbjqMOwFICv/ANvYJhFTR/jP3t+ne2pINJKJuKY++dcS+iaj7rP3joFgqfDZ TpE2Z17Bs4Eet2hwdFx0eoD4qIaEIESnAeLtT8PxJdP6xmWR0Wm4YTik3Jnpi9TSUl+3 nfQRTQFT3NqHbCk2MhDr/tCJ8Llowz/oGSiZxL3JMQgOaVF2gFxXib/hugaqcnGC/Bjb /zPK+2ZQEjI7yhcutpqKCvrJ9xHAfwOcb580OGPGxTtlizPl3+lyIRx8ZXe+deR3Idj8 Dghg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Yy1N37+9; 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 j4-20020a170903028400b001865dfb6774si4339676plr.458.2022.11.04.07.22.33; Fri, 04 Nov 2022 07:22:48 -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=Yy1N37+9; 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 S230290AbiKDN5A (ORCPT + 96 others); Fri, 4 Nov 2022 09:57:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229700AbiKDN4k (ORCPT ); Fri, 4 Nov 2022 09:56:40 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E2522F001; Fri, 4 Nov 2022 06:56:39 -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 ams.source.kernel.org (Postfix) with ESMTPS id 9DA7EB82E28; Fri, 4 Nov 2022 13:56:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24E0BC433D6; Fri, 4 Nov 2022 13:56:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667570196; bh=f+kfsg5vhO3DMtcWUBeGsDvS+k5oJCSMEawyOO9HqgI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Yy1N37+9MPg01JnN4z4Gd+ER/gLzZnHihM2HkralT5v4DhrIPs3Tfz/iDSlRINpB4 EXzEW3Irt7Rdu7JF+t9RDmde3T5cjVG5ywdo0ZFAGyBxqH26SX8AKbgK2BfksfTK9Z rOHUUufNuVuj0PEXuG0fAuGg9cTe6ZQi1haVTBaTCaOrbs1i5oE1aEl8DQpRu2+LxY /7J4OTf9D/owPMsMSE8q954RwatBjGNn3El1d3RiwRWH2xKY43hh6G991iryuJGSzi NC+q/iU5C1KkCfRTAu8La5r4ztxehv5Rl4OS1SO/Z+YeE6BDJPEuQmvwkzL0wceGkW ypqTTfQWglutg== Date: Fri, 4 Nov 2022 13:56:26 +0000 From: Lee Jones To: jerome Neanne Cc: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, nm@ti.com, kristo@kernel.org, dmitry.torokhov@gmail.com, krzysztof.kozlowski+dt@linaro.org, catalin.marinas@arm.com, will@kernel.org, tony@atomide.com, vigneshr@ti.com, bjorn.andersson@linaro.org, shawnguo@kernel.org, geert+renesas@glider.be, dmitry.baryshkov@linaro.org, marcel.ziswiler@toradex.com, vkoul@kernel.org, biju.das.jz@bp.renesas.com, arnd@arndb.de, jeff@labundy.com, afd@ti.com, khilman@baylibre.com, narmstrong@baylibre.com, msp@baylibre.com, j-keerthy@ti.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-input@vger.kernel.org, linux-omap@vger.kernel.org Subject: Re: [PATCH v6 4/6] mfd: tps65219: Add driver for TI TPS65219 PMIC Message-ID: References: <20221011140549.16761-1-jneanne@baylibre.com> <20221011140549.16761-5-jneanne@baylibre.com> <1383fd22-c720-811e-a2bb-be2151675089@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1383fd22-c720-811e-a2bb-be2151675089@baylibre.com> X-Spam-Status: No, score=-8.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 Fri, 04 Nov 2022, jerome Neanne wrote: > > > On 31/10/2022 12:00, Lee Jones wrote: > > > diff --git a/include/linux/mfd/tps65219.h b/include/linux/mfd/tps65219.h > > > new file mode 100644 > > > index 000000000000..2c1cf92e92ac > > > --- /dev/null > > > +++ b/include/linux/mfd/tps65219.h > > > > +/** > > > + * struct tps65219 - tps65219 sub-driver chip access routines > > > + * > > > + * Device data may be used to access the TPS65219 chip > > > + * > > > + * @dev MFD device > > > + * @regmap Regmap for accessing the device registers > > > + * @irq_data Regmap irq data used for the irq chip > > > + * @nb notifier block for the restart handler > > > + */ > > > > This header needs work. > I'm not sure to get your point here. Just something like below to match > format or do you expect more: > > /** > * struct tps65219 - tps65219 sub-driver chip access routines > * > * Device data may be used to access the TPS65219 chip > * > * @dev: MFD device > * @regmap: Regmap for accessing the device registers > * @irq_data: Regmap irq data used for the irq chip > * @nb: notifier block for the restart handler > */ > > > > > Can you try an compile with W=1 please. > This raise one warning on mfd: Is that before or after the header was fixed-up? > drivers/mfd/tps65219.c:28:12: warning: ‘tps65219_soft_shutdown’ defined but > not used [-Wunused-function] > 28 | static int tps65219_soft_shutdown(struct tps65219 *tps) > | ^~~~~~~~~~~~~~~~~~~~~~ > soft_shutdown has been validated and is used in TI baseline even if not > hooked in upstream version further to this review: > https://lore.kernel.org/lkml/20220825150224.826258-5-msp@baylibre.com/ Will tps65219_soft_shutdown() be used? I think it should be removed until it's utilised in Mainline. > It was a TI requirement to implement it... > Let me know if you want me to remove this function or if we can keep it like > this. > -- Lee Jones [李琼斯]