Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3841717pxm; Tue, 1 Mar 2022 06:30:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzPuQezj/k0ht2PdLonnvFrbcHQENSQlsG510mwdMv8bIQQp3zhoRt5U5Chpb3IlOfsoJBa X-Received: by 2002:a17:906:2bd7:b0:6ce:698b:7531 with SMTP id n23-20020a1709062bd700b006ce698b7531mr18356006ejg.146.1646145036427; Tue, 01 Mar 2022 06:30:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646145036; cv=none; d=google.com; s=arc-20160816; b=UCBMvYhx0RqFKSUVLygu/EGNbtovGuLel6nGlD6nqP5VbGU35Pvm+FK7ICoTwHg7MF gYL1sEzvFWg/leYmTUDjZHzIqjlr9UBJTqYYVwvq9ExqigrUheQgkyCPRC54nhwWUXTN 2RgLgH7/aVyuAvdmN7rx9MRL6jahJOsOP21DO49bJUVHK/rVeCGIeX7r134fwEe1/jCA Mpu2bWABeoprcHf1k7muijRbzNThWNkPRuKddKkDzhTkA1iDTbTLtALUDI+R9H2fRefK l9o+XxAl0gC0D7wlkXvxBwrbgfSuzfv8zNhQN53Sn8q5ftaYwrO1BosGOqZ7lutiOXHc TRWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:in-reply-to:date:sender:references:subject:cc:to:from :dkim-signature:dkim-filter; bh=Upk6FCKfHLUjo081LeWtb4iS+Al74dKX2WaYB56S9xo=; b=iJSdK+h+dEirAJO5hkD8UrJiVorxRF+tEdOe3m2xTb+PoDUmF463l1nmulZ1wK3Vyc huj9FV6h7opfEs3L+nk02EOcJ4tqSvtwEQLCisPP8xCL07j1a5Qr02UGVanvFn2DrRMX iJm6GEUmNidg9hSeDsDKTghvi+92OpA7NtqdeGNbqEZaQmvIDChwNg9EdiqgzKN+r2Ed 0PJQadRCEFbJmkMdFkC0/rE1Iuqt1QLACz9ZibYwox2jPgoBc0DLHRll505PPpIwjtVu QMAoJ74fGh/xvmDtsTvee32yNKfd8xAjDbmr+q2AiE2Qk/qXSXvj3Li+fOWI5pHecXZ2 oc6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@piap.pl header.s=mail header.b=kXYIsJ80; 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=QUARANTINE dis=NONE) header.from=piap.pl Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg6-20020a170907970600b006b23893149bsi8567956ejc.959.2022.03.01.06.30.12; Tue, 01 Mar 2022 06:30:36 -0800 (PST) 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=@piap.pl header.s=mail header.b=kXYIsJ80; 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=QUARANTINE dis=NONE) header.from=piap.pl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231574AbiCAMfU (ORCPT + 99 others); Tue, 1 Mar 2022 07:35:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233475AbiCAMfS (ORCPT ); Tue, 1 Mar 2022 07:35:18 -0500 Received: from ni.piap.pl (ni.piap.pl [195.187.100.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F33097BAD; Tue, 1 Mar 2022 04:34:30 -0800 (PST) Received: from t19.piap.pl (OSB1819.piap.pl [10.0.9.19]) by ni.piap.pl (Postfix) with ESMTPSA id 67F41C3F2A54; Tue, 1 Mar 2022 13:34:28 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 ni.piap.pl 67F41C3F2A54 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=piap.pl; s=mail; t=1646138068; bh=Upk6FCKfHLUjo081LeWtb4iS+Al74dKX2WaYB56S9xo=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=kXYIsJ80HZokbCGHnuV2OFIkxix+CA3DMXYWfvgWcHU3RNN7Hr5+i3M2rzLz/hxMG pCIbWjt5jhEh7jb/ogvQ5lLrtV5TU086PUfetRWksya/uv6W5Nb6V0IXwZ03IBA83N xNdi/RU0jSCkllUrb+BGFJNs1d41WTd7OJdWS6PA= From: =?utf-8?Q?Krzysztof_Ha=C5=82asa?= To: Jacopo Mondi Cc: Mauro Carvalho Chehab , Rob Herring , devicetree@vger.kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Laurent Pinchart , Sakari Ailus , Joe Perches Subject: Re: [PATCH v8 2/2] On Semi AR0521 sensor driver References: <20220301093107.ihokyp4xptkzpbpc@uno.localdomain> Sender: khalasa@piap.pl Date: Tue, 01 Mar 2022 13:34:28 +0100 In-Reply-To: <20220301093107.ihokyp4xptkzpbpc@uno.localdomain> (Jacopo Mondi's message of "Tue, 1 Mar 2022 10:31:07 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-KLMS-Rule-ID: 3 X-KLMS-Message-Action: skipped X-KLMS-AntiSpam-Status: not scanned, whitelist X-KLMS-AntiPhishing: not scanned, whitelist X-KLMS-AntiVirus: Kaspersky Security for Linux Mail Server, version 8.0.3.30, not scanned, whitelist X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Jacopo Mondi writes: > In subject > > "media: i2c:" > > Same for 1/2 where permutation of "media: dt-bindings: i2c:" are used > when adding bindings for media i2c drivers. You know, it's rather hard to know all these tiny requirements. Let alone get them right all the time. >> + pm_runtime_set_active(&client->dev); >> + pm_runtime_enable(&client->dev); >> + pm_runtime_idle(&client->dev); > > Do you have an _idle() callback ? This seems a no-op to me, or am I > mistaken ? (runtime_pm is still cryptic to me sometimes) Do you mean only the pm_runtime_idle()? Sakari just requested I add it. > Can't you just remove power_on() if it's not needed ? It wouldn't work without CONFIG_PM then, would it? > There still are a few checkpatch warnings which might be worth > considering but nothing huge. Do you mean this? WARNING: Block comments use * on subsequent lines #411: FILE: drivers/media/i2c/ar0521.c:351: + /* Reset gain, the sensor may produce all white pixels with= out + this */ WARNING: Block comments use a trailing */ on a separate line #411: FILE: drivers/media/i2c/ar0521.c:351: + this */ ... which are about a single comment which I had to wrap to fit in 80 columns, hardly a block comment by my standards. Not to mention Linus saying... --=20 Krzysztof "Chris" Ha=C5=82asa Sie=C4=87 Badawcza =C5=81ukasiewicz Przemys=C5=82owy Instytut Automatyki i Pomiar=C3=B3w PIAP Al. Jerozolimskie 202, 02-486 Warszawa