Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp4018077pxm; Tue, 1 Mar 2022 09:34:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQkvEp00Y/n7hbITCJ9fd8FXqK1O5TAqxANRCErg2LTo968mYkt7aao+muKhJ7cgblZH9c X-Received: by 2002:a50:e004:0:b0:410:a39b:e30c with SMTP id e4-20020a50e004000000b00410a39be30cmr24931172edl.198.1646156063807; Tue, 01 Mar 2022 09:34:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646156063; cv=none; d=google.com; s=arc-20160816; b=YOpOnZqXIecgqBwFp20mFSL0p48bUh33tmBEYK0zT1F+ElOd/4Q0asMPMSIj1ZfQja OzwmMar9cTqijMo07ocbw6NFzGkbpcGaQ3oEHIaOrYNVom1YXDHZzx/CuH72ysyF27uQ knwUl79m2TSOhHWf783Qb69BuCayfKNq8fgBrYbFMEA2esmwD5A/mXCVd8jd4BgSm0qC Lmi/LaouVGjHhkLYpjl0mj8OQc/oZcPHdwAQSdQVnWnJU4ifPFoYlxTT0Z8m1isC1WSS OiA1QCzwhvgKlVDDEexdnm6dzKAyumTiqY5+/z69L5JJbCul5KT2TqLeGFHFgRaeIuaD 6Uzw== 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; bh=KPaQmo/1Bzl6GkyTGE0zHN3yZjJr8sLnvXr+M5tC1fI=; b=0G8ts4xexTeB4M+GqXIaG1KH4z65hYO9aOddX8szkum29qzbhE2P9kqTRHQFgXBKE2 PQIMofzMSpRNJrVOIbipbVYV2rDXQw5ETIg9EzK4NMO59vPcu9GZ46F6zkgnvBK3NDfF tChf6vW21Nzrm3Dz0sBWwZ813yqFWR1+8Py+C3eOP1PRXEjhn/S0nuDdoiPdnMb4Cyxz 1CwM+KDQWFxbfOoZT0gNkhbPQmrNQuIBoJIrPJehXAkeajIJFCXJtVq2uV0HWwLR8SAh j0AqXRZBncpfqU2uw+FjNA6cmW5EWiT4nsEc/HcwgdnNphOBaXrZpMBxfd/Kh11DVsIg +HeQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z1-20020a50eb41000000b00410a2e77995si9911371edp.15.2022.03.01.09.33.59; Tue, 01 Mar 2022 09:34:23 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235285AbiCAObl (ORCPT + 99 others); Tue, 1 Mar 2022 09:31:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235269AbiCAObg (ORCPT ); Tue, 1 Mar 2022 09:31:36 -0500 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B569A1460; Tue, 1 Mar 2022 06:30:50 -0800 (PST) Received: (Authenticated sender: jacopo@jmondi.org) by mail.gandi.net (Postfix) with ESMTPSA id 803C11C001A; Tue, 1 Mar 2022 14:30:47 +0000 (UTC) Date: Tue, 1 Mar 2022 15:30:44 +0100 From: Jacopo Mondi To: Krzysztof =?utf-8?Q?Ha=C5=82asa?= 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 Message-ID: <20220301143044.2l4vlwbnh5n3g5ng@uno.localdomain> References: <20220301093107.ihokyp4xptkzpbpc@uno.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,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 Hi Krzysztof On Tue, Mar 01, 2022 at 01:34:28PM +0100, Krzysztof Hałasa wrote: > 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. > I usually rely on what git log suggests me if in doubt. > >> + 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. > Ok then > > Can't you just remove power_on() if it's not needed ? > > It wouldn't work without CONFIG_PM then, would it? > True that. And an #ifdef is maybe undesirable. Although, if with idle you can power-down the chip after probe, I'm fine with that > > 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 without > + 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... The warning suggests to go for /* * This when a comment * spans on multiple lines */ instead of /* Going for this style when a comment is on multiple lines */ > -- > Krzysztof "Chris" Hałasa > > Sieć Badawcza Łukasiewicz > Przemysłowy Instytut Automatyki i Pomiarów PIAP > Al. Jerozolimskie 202, 02-486 Warszawa