Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1129882rwb; Thu, 8 Dec 2022 07:06:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf7pYovKFIXb6CPNnEjq0XQJK6OWOa1RoL0jkXoOjy7Q5zaZp1TiC7o+CGAUNS/OiMNNXFaE X-Received: by 2002:a17:902:b416:b0:186:a22a:177e with SMTP id x22-20020a170902b41600b00186a22a177emr77242239plr.163.1670511995989; Thu, 08 Dec 2022 07:06:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670511995; cv=none; d=google.com; s=arc-20160816; b=C/+wMMTi8+2bzb9NN6jB4/I7A/5OEQZNvzBFqxXIQgmVHv0uHtN88Hzp2xMgEPCXXn gZoTuVqJNQtYiW/r5zFdcCFrXTJDMEtqHS+OPLWhW7l1XzhNEa7usaDe4tzaTkAAEWDK CJBisK42/8eG4Ao0yHp4bknv0U2VrL/hMgj/M/9KDn5REEEuJr3Ar37IlSk491uxmYiZ 4EbQ8boX/3+lxE5PJjIMjLGhf/x/JgVH2s2wiS5TpuLZZ9lZ+eb5Hdrde9PmzMdpOb46 zDoeJSuwLgV5P7JW0AOwdixZZameY/L9SqZbM9IlFeLI5CYbfTApIik9ws/BCS2AQW+W uK1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=3UFPV1VtEqxMz3ePQdyBZ9SO2nDB+McN6P1chmOlXzk=; b=qjfMn6wNw8tYAxbCK3OIiO7cxsm1A1vfdIMKbETlg07HFfQKo8SHKi7aEyoeez4Jl4 K87HY1yvGlnn/6qHXlr8hSYqjelXVUviR3eep3McJA/BaVmeMPi8je6+N5WSVWLvue64 EHVc5SO1HBSSOeEzvOR1IQF2eOruv5qp0WpFuPMZHERuMGF4Gy3UofSzVtfME9bqorLh z+1fxYtlCAOClHuW6UP2ftZbaFjjUpduQsJKprszSjH13O2nKeAzfjhqlpIAYhAt7zjk BGQfFu9Aj4oKkunEXf/YBgdpes1sq2qV/5DJSSxZ4EpwB4mE3576PkcFI70VSgS2pUH+ Q+Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=SOVBFZ+w; 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 mi13-20020a17090b4b4d00b0020d5867aab6si4499531pjb.141.2022.12.08.07.06.26; Thu, 08 Dec 2022 07:06:35 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=SOVBFZ+w; 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 S229530AbiLHOlK (ORCPT + 72 others); Thu, 8 Dec 2022 09:41:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229661AbiLHOlH (ORCPT ); Thu, 8 Dec 2022 09:41:07 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B76D54299F; Thu, 8 Dec 2022 06:41:04 -0800 (PST) Received: from [192.168.1.15] (91-154-32-225.elisa-laajakaista.fi [91.154.32.225]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 2861B25B; Thu, 8 Dec 2022 15:41:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1670510462; bh=7JK1mcWK7ctuZSJVmKN+aaMKQHCYvzcv6b0fzVlOa7Y=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=SOVBFZ+wXPdn7+spHkeH8ZjDrQuWrS5pt1BYvt9XDf23vR2xJQAueCdTSSLw+dTGn BngW/zXk3AU/gsukA0kDYr4P5l9NPojFmc0Dex+HG0b9r7bojvsndmes0tyXolB7Q2 GRu2R8TPjEWovcG5OOOEw4JQPXyZSxLk1SsUJK24= Message-ID: <0340d15c-be0a-cd28-4149-7976896f8eb1@ideasonboard.com> Date: Thu, 8 Dec 2022 16:40:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v5 0/8] i2c-atr and FPDLink Content-Language: en-US To: Andy Shevchenko Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Wolfram Sang , Luca Ceresoli , Matti Vaittinen , Mauro Carvalho Chehab , Peter Rosin , Liam Girdwood , Mark Brown , Sakari Ailus , Laurent Pinchart , Michael Tretter , Shawn Tu , Hans Verkuil , Mike Pagano , =?UTF-8?Q?Krzysztof_Ha=c5=82asa?= , Marek Vasut References: <20221208104006.316606-1-tomi.valkeinen@ideasonboard.com> From: Tomi Valkeinen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS, 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 Hi Andy, On 08/12/2022 14:26, Andy Shevchenko wrote: > On Thu, Dec 08, 2022 at 12:42:13PM +0200, Tomi Valkeinen wrote: >> On 08/12/2022 12:39, Tomi Valkeinen wrote: > > ... > >> +#include >> #include >> #include >> #include >> #include >> #include >> -#include >> #include > > + Blank line here? > There is a blank line there. >> +#define ATR_MAX_ADAPTERS 99 /* Just a sanity limit */ >> +#define ATR_MAX_SYMLINK_LEN 16 /* Longest name is 10 chars: "channel-99" */ > > ... > >> + u16 *new_buf; >> + >> + new_buf = kmalloc_array(num, sizeof(chan->orig_addrs[0]), >> + GFP_KERNEL); > > new_buf = kmalloc_array(num, sizeof(*new_buf), GFP_KERNEL); > > ? Yes, I think that looks better here. >> + if (!new_buf) >> return -ENOMEM; > > ... > >> struct i2c_atr_cli2alias_pair *c2a; >> - u16 alias_id = 0; >> - int ret = 0; >> + u16 alias_id; >> + int ret; > > Is it mangled or it's missing blank line here? Also here there is a blank line. Is the mail somehow mangled on your side? On lore it looks fine: https://lore.kernel.org/all/c5eac6a6-f44b-ddd0-d27b-ccbe01498ae9@ideasonboard.com/ >> c2a = kzalloc(sizeof(*c2a), GFP_KERNEL); >> if (!c2a) > > ... > >> struct device; >> struct i2c_atr; >> +struct fwnode_handle; > > Order? Yep, I'll fix. > ... > >> /** >> - * Helper to add I2C ATR features to a device driver. >> + * struct i2c_atr - Represents the I2C ATR instance >> */ > > This is incomplete. Have you run kernel doc validator against this file? What's kernel doc validator? Do you mean that it's incomplete and kernel doc doesn't work correctly, or that there should be more information here? I don't get any errors/warnings from any tool I have used. But I agree it looks a bit odd with only the name of the struct in the doc. Tomi