Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2743805lqp; Mon, 25 Mar 2024 08:06:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXNtuQRVixpgBIoxSKr/X0tcxJsj9hG4KwoHrQdkElnM99OwSiIf7dKQ5jhArXkIHe1p3MEX7dfXzHxRmh4PJyyHAxLdfsk+IZ5d840/w== X-Google-Smtp-Source: AGHT+IGrjY/ZQUMlInWUMiZ8Dt8nvuUWC3u+bWLzsSfljDei/dUcMdYXJI+jK9HO6JJDA02SnAC4 X-Received: by 2002:a50:8e58:0:b0:568:b48e:bb2 with SMTP id 24-20020a508e58000000b00568b48e0bb2mr4423005edx.25.1711379176577; Mon, 25 Mar 2024 08:06:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711379176; cv=pass; d=google.com; s=arc-20160816; b=scet9sPbUMGuIFFeW4BDe5fsrkJJloasG7iSzCacchOh+XCp1Rim6YLRy8q+kR4B5c pNLIjBWDBNHxfoYBRdCprabj+PwOj1JgXK0LDX/6GL1jOYqwnDvbDzPgNOT5QVkUlp4o ypFxDJDjA9nh8oTAn+dSKwOg3CnERWXnW0Amk3lw9qq/cgsiz2/OKyNHI3653QlFDxfk r2AYlGnYb1xM7ej/u1eB2leyFnZ6IqlO0Rc23h5W9DQr8gwGWw2mGnCm5+9MiUA4l2D6 oJM+8yDCF+G8/UDOaOJ/NXp5d3MzJ/1ALkKkFJVdQwgZ9vxRUlDzLU9XK1gshc9VLjiI ljRQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=ipFCRrveYtGWb4EOo5Myx+NUZGxZHRAV0tdi7T2Ti9M=; fh=l9R1QaRi4LYACG4kBFUERYPWb3S48zPRDa1z/wgMXJc=; b=pQXaGQM/ddub2bUxd6E1xE5Yw3QBgcZiD/lhTh3kciLP074gVLQsPk+9KRfw9taird 9rgeZNP9TMlKVoPgb153cOAj55LEzmpolk+MWmp/ppQAynoxMrRbMg4farFZop19Utmb Gdn2epxz40wgnumsZF9T6eU0VG9mRG1th8oNoXah3kWtjT3QYOWt7gEgD2gHd7d1GUKc vUhND2u1oWC7LA7GA84iFdqPpfB17D0FrN3EmlrP71NqsAtahChquSelQZDrF73joic9 ZAYMdx+S4E0ah+5mBAVeid+Dqg+HBIu10R31OHYA1ai1D+eocX+Y3SZbg1O9Q31y8W9x MyUw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P68f2r7f; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-116979-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116979-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w20-20020a05640234d400b0056b9ef8f01dsi2589349edc.45.2024.03.25.08.06.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 08:06:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116979-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P68f2r7f; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-116979-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116979-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 44FB51F3FC43 for ; Mon, 25 Mar 2024 15:06:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5B0C9184436; Mon, 25 Mar 2024 12:18:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="P68f2r7f" Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AC9A313E041 for ; Mon, 25 Mar 2024 12:13:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711368798; cv=none; b=sbxEHx+9uA5m73f7QqWDkTCzeSdY7RIMWfJJVnLKFdlldrSDQAeI0P+iObkSYgdDuWdJ54kzxOy/RmQAdIAUChQAml6GdqyYspWk5fVQnA5ZsJVyKfDMUvnrjzzKgysFseldAJNxz+Qg4oxHG+0rGic4Wk7Hzmttk3MgnjIMBLQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711368798; c=relaxed/simple; bh=Y261fPoQrbBoemY2RKvVpUj5qEW9Y7SPZnhfg+JQjFQ=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=qBka5J/HsQSKA9AViHZB5wK0wtIOWyDEO3SifCOVktOLmOzbGHm0ZNe+PXSMF7p7W24wxQrMYR0EgC4t60+ZPvYaGd5E+mGsm/YdURYveKvjNpm4bI+PoL+HyKKv97h9sLg/Wi6Jp3S8AEJ8epOKPDng//0f7fE3bJNiE2MUgs4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=P68f2r7f; arc=none smtp.client-ip=209.85.208.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-56c0bd07e7bso984658a12.1 for ; Mon, 25 Mar 2024 05:13:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711368795; x=1711973595; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=ipFCRrveYtGWb4EOo5Myx+NUZGxZHRAV0tdi7T2Ti9M=; b=P68f2r7f4myvpVDrD57RZ0Dk2T5rGOH9RDs9wg0ZmTvfpr1O4fuNPsBdLQDYVEuodO 04EAXjnBZrnYWeMc2HVs1NoVtHV7CVQYvinTw+wvxEc+QXif3j4nOjA8oqBmZIKF03lN jb7rapss1WPCXeLZHHvAKG8dV/yAeGVVveT1eGTEYs/YawAi7bqcq54vdbpFybYbo2bw +Af153WXBs9zTH/NYcUsRYyKPfyNBLjH7+cmnYKX7hF4ki/IVDppQvhI1hX3CM6RjvbY 5LGMTL0Msh1ZtG5JdXP7sDjbNIznA/2RvWutzdXiWa/if/VBfaeUcj5HPd1ysqEU6Uy3 QZ/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711368795; x=1711973595; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ipFCRrveYtGWb4EOo5Myx+NUZGxZHRAV0tdi7T2Ti9M=; b=mUm9rtxzZ4wMXGN6GkmuF+DKmm3a653JVpMJbd06G2/dC/eIJ3ayYw53VkZBeBwNXa mdcSV3dW19jfS5jne2YbpdbQHYNkD/fO/vkCpWZIZMvTKTo3vgiV2JQR68tyx8vDn8x1 j7FGGFGwXlIhiqPurNCELvr6Zg7nPFNKHude13Esc5WKCCMYIjLtcrGKpNguMIvQ9dRQ nj3pfckhkIVfPeEKBCEZI4cA1dWg/5q5E7y1CuaG4Pg/euPfezuCun0p4AK7TcTwv6B9 cws5iLY0fRBJgk5/PNfyr6DXSdNFVdb0eu1YJQa8kTLMoPBykqE67yRGJ8rJDmFKCxyX ZLmw== X-Forwarded-Encrypted: i=1; AJvYcCVcBc3dTqOCHcRuSfwTldl88h3MbaYerDe0T4+ZoSMnqrCcQ8BFe4jo7ozMF+EQiRvRAF3iKFB1zuk4Nv6Ix6r6KqJoKdUM8vj9Bowq X-Gm-Message-State: AOJu0Yztg0K+oUu5Vk/leRRxabFdCQUQpFwuutVbAa3/+TKpkcInuFWg Jtw4W6RiPtbcucLWWt4R/G5c68/TTC6bvfKgO62sIcd3HrA2z8z/DKn4XwIVOQE= X-Received: by 2002:aa7:cd14:0:b0:56b:fa9b:4e8e with SMTP id b20-20020aa7cd14000000b0056bfa9b4e8emr3318600edw.42.1711368795042; Mon, 25 Mar 2024 05:13:15 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.44]) by smtp.gmail.com with ESMTPSA id c13-20020a056402100d00b00568abb329a3sm2938050edu.88.2024.03.25.05.13.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Mar 2024 05:13:14 -0700 (PDT) Message-ID: Date: Mon, 25 Mar 2024 13:13:13 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH 2/2] mfd: rohm-bd71828: Add power off functionality To: Andreas Kemnade , lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, mazziesaccount@gmail.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev References: <20240324201210.232301-1-andreas@kemnade.info> <20240324201210.232301-3-andreas@kemnade.info> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYO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PAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240324201210.232301-3-andreas@kemnade.info> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 24/03/2024 21:12, Andreas Kemnade wrote: > struct regmap_irq_chip_data *irq_data; > @@ -542,7 +560,18 @@ static int bd71828_i2c_probe(struct i2c_client *i2c) > ret = devm_mfd_add_devices(&i2c->dev, PLATFORM_DEVID_AUTO, mfd, cells, > NULL, 0, regmap_irq_get_domain(irq_data)); > if (ret) > - dev_err_probe(&i2c->dev, ret, "Failed to create subdevices\n"); > + return dev_err_probe(&i2c->dev, ret, "Failed to create subdevices\n"); > + > + if (of_device_is_system_power_controller(i2c->dev.of_node)) { > + if (!pm_power_off) { > + bd71828_dev = i2c; > + pm_power_off = bd71828_power_off; > + ret = devm_add_action_or_reset(&i2c->dev, > + bd71828_remove_poweroff, > + NULL); > + } else > + dev_warn(&i2c->dev, "Poweroff callback already assigned\n"); Missing {} Please run scripts/checkpatch.pl and fix reported warnings. Some warnings can be ignored, but the code here looks like it needs a fix. Feel free to get in touch if the warning is not clear. Best regards, Krzysztof