Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp1649849rwl; Fri, 4 Nov 2022 17:17:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6ItyWpbZSe3Hoi9O3Jiv7uSnxklJBEwG/W9+ObmGic8+XAi/QoFL/llBPpQZJtI8vOnTuu X-Received: by 2002:a17:902:b083:b0:187:146c:3170 with SMTP id p3-20020a170902b08300b00187146c3170mr33145634plr.112.1667607464379; Fri, 04 Nov 2022 17:17:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667607464; cv=none; d=google.com; s=arc-20160816; b=DSTOdxyyI2w/JYAQkjVLjBuLx4iaeKZArgoubxInrTkFRLXFCcPFtdgUtXZksz0XYF TFh9AAW4Sb4PD7HTkb6g/mZwnugswXcSDCqmW1VzsgffwK7UX0Mxw8a48FJ4JJeSj3Uk oXqDdSf4qNfURnvGphb2wfYXuVOsSf285lQ8q072IWAewqcs6VSOfVewbs4tasKs+Iwg 7IJmfwsInUZhxg9dnk4X6GOYlVX9Ga8lUbBgFO3f9OPDizd43zXzR7Mmt7mBEidU+H/3 Gybsb4iF9/lfPIDwTiSfoG4D4yUVbXG1NKQ/LHMIe9NLd4m3Cc/U8Q96L+B4I3ez4GjM PFTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=70/J8OoLwMz2ZYUbC2R1pWuNjEn/hRSMKPEEuh66w90=; b=nDek/buyY6ozAdowa5/t2Cgdpc77/U+nD70nOCgDX5onDsn6cvs+Vm2WjJBEaBLImm XBK+ylpXNkVLI0hptaD/XD37zBrOUkf6o+lcuudGXOpXs5HAF4Fkg9YGcjPgMhtquPdd pE6GwgSQdW+lXLtw1EpuhsRgBBExQPewsuM4eMP7ZlH4DMfGwsMb9AHJl4wQ1eGWROoM IIfWHRbKOsGu9nvqSXuIeAEGjltJbDC37rtYJEIS8L/r8snzy4ZTRjNOMfRC9VXu5Gwy Kg8Pi/Pbb1Irc+eoslPL4475ZyNpaByaVogihUR98WMY2RmEdGNbLCurE/auIa20YaGS jm7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Gv3Wplav; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d10-20020a656b8a000000b0046ed59f63desi1187757pgw.637.2022.11.04.17.17.31; Fri, 04 Nov 2022 17:17:44 -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=@ti.com header.s=ti-com-17Q1 header.b=Gv3Wplav; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229575AbiKEABp (ORCPT + 98 others); Fri, 4 Nov 2022 20:01:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229492AbiKEABh (ORCPT ); Fri, 4 Nov 2022 20:01:37 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7986742F44; Fri, 4 Nov 2022 17:01:36 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2A5015bb068560; Fri, 4 Nov 2022 19:01:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1667606465; bh=70/J8OoLwMz2ZYUbC2R1pWuNjEn/hRSMKPEEuh66w90=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=Gv3WplavkR0OhY3cyw5apGFxR8Pf4CI2qe6wRU3/3HFrBUeOEZpOLj8xzHzVACoLa HfODwGrn/JtbF4xchec3d9/wau+CU2O5VbVnZTeCrc1mBQWK3TZP1Zm0vcp3FIEAy7 7bl9h7DVTgXC33YKFhXXlUaKA0MUNVwhVwtcB20I= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2A5014iV084742 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 4 Nov 2022 19:01:04 -0500 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Fri, 4 Nov 2022 19:01:04 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6 via Frontend Transport; Fri, 4 Nov 2022 19:01:04 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2A5014d5015472; Fri, 4 Nov 2022 19:01:04 -0500 Date: Fri, 4 Nov 2022 19:01:04 -0500 From: Nishanth Menon To: jerome Neanne CC: Lee Jones , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v6 4/6] mfd: tps65219: Add driver for TI TPS65219 PMIC Message-ID: <20221105000104.rtj3r6ufqwqmepon@keenly> 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> User-Agent: NeoMutt/20171215 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 13:58-20221104, jerome Neanne wrote: > [...] > > > > > Can you try an compile with W=1 please. > This raise one warning on mfd: > 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/ > > 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. There are platforms without psci, correct? I think the comment was to drop the force override with system-power-controller property, if (!pm_power_off) { tps65219_i2c_client = client; pm_power_off = &tps65219_pm_power_off; } Could still be valid for such platforms, no? I do see that the capability that the PMIC has - which is software shutdown is a valid feature that we support in many different PMIC drivers. Is'nt the job of the driver to introduce the functionality in a manner that is appropriate to the OS framework? -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D