Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 114DDC54EAA for ; Mon, 30 Jan 2023 15:18:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237883AbjA3PSf (ORCPT ); Mon, 30 Jan 2023 10:18:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238050AbjA3PS2 (ORCPT ); Mon, 30 Jan 2023 10:18:28 -0500 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15B80C15C; Mon, 30 Jan 2023 07:17:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675091875; x=1706627875; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=4jfbSarMFyi7cMttwvDR5yy006KKKlZ6jChWvaFjhEk=; b=YzBqa9ltyfekpYfTOa4cifNKNPR+88bOa3O8Wv+rESqnn2J+LHMlI/rI o6A8U4fHRSqF1WPTqJvkdqAf5d7MoodgCFRylMYlJYjVAZtkcfGTPKfHN ubEyEKoLEe5DoBjEIB2wpnnwiojIqDqJkewioulYGMzySAFgVOuJOj7T7 nmyEslTOIqYdadL+m6edgJx9LbgJtS/bXO9uLFHDWfAWAZ2PCzAE2KwVN EDbNeEfesgBBHObNEIqwdJ7YDnmsMjU7nJvP+ZugdKKa31A+7trTi7XGI 5yt1y9LevJD03nYULxtPQWKX18NcYe1zUWhJYc+BrWJ1poBsqhN/T/ylZ w==; X-IronPort-AV: E=McAfee;i="6500,9779,10606"; a="354898535" X-IronPort-AV: E=Sophos;i="5.97,258,1669104000"; d="scan'208";a="354898535" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jan 2023 07:16:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10606"; a="992938805" X-IronPort-AV: E=Sophos;i="5.97,258,1669104000"; d="scan'208";a="992938805" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga005.fm.intel.com with ESMTP; 30 Jan 2023 07:16:41 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1pMVtc-00HPM7-2k; Mon, 30 Jan 2023 17:16:36 +0200 Date: Mon, 30 Jan 2023 17:16:36 +0200 From: Andy Shevchenko To: Geert Uytterhoeven Cc: Saravana Kannan , Greg Kroah-Hartman , "Rafael J. Wysocki" , Sudeep Holla , Cristian Marussi , Linus Walleij , Bartosz Golaszewski , Thomas Gleixner , Marc Zyngier , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Rob Herring , Frank Rowand , Geert Uytterhoeven , Magnus Damm , Len Brown , Daniel Scally , Heikki Krogerus , Sakari Ailus , Tony Lindgren , Linux Kernel Functional Testing , Naresh Kamboju , Abel Vesa , Alexander Stein , John Stultz , Doug Anderson , Guenter Roeck , Dmitry Baryshkov , Maxim Kiselev , Maxim Kochetkov , Miquel Raynal , Luca Weiss , Colin Foster , Martin Kepplinger , Jean-Philippe Brucker , kernel-team@android.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-acpi@vger.kernel.org Subject: Re: [PATCH v2 08/11] driver core: fw_devlink: Make cycle detection more robust Message-ID: References: <20230127001141.407071-1-saravanak@google.com> <20230127001141.407071-9-saravanak@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 30, 2023 at 03:36:04PM +0100, Geert Uytterhoeven wrote: > On Mon, Jan 30, 2023 at 1:16 PM Andy Shevchenko > wrote: > > On Fri, Jan 27, 2023 at 11:34:28PM -0800, Saravana Kannan wrote: > > > On Fri, Jan 27, 2023 at 1:43 AM Andy Shevchenko > > > wrote: > > > > On Thu, Jan 26, 2023 at 04:11:35PM -0800, Saravana Kannan wrote: > > > > > +static bool __fw_devlink_relax_cycles(struct device *con, > > > > > + struct fwnode_handle *sup_handle) > > > > > +{ > > > > > + struct fwnode_link *link; > > > > > + struct device_link *dev_link; > > > > > > > > > + struct device *sup_dev = NULL, *par_dev = NULL; > > > > > > > > You can put it the first line since it's long enough. > > > > > > Wait, is that a style guideline to have the longer lines first? > > > > No, but it's easier to read. > > Yes it is, "reverse xmas tree" local variable ordering: > https://elixir.bootlin.com/linux/v6.2-rc6/source/Documentation/process/maintainer-netdev.rst#L272 Good to know, thanks! -- With Best Regards, Andy Shevchenko