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 1313DC636D0 for ; Mon, 30 Jan 2023 14:36:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237627AbjA3Ogb (ORCPT ); Mon, 30 Jan 2023 09:36:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235123AbjA3Og3 (ORCPT ); Mon, 30 Jan 2023 09:36:29 -0500 Received: from mail-oa1-f49.google.com (mail-oa1-f49.google.com [209.85.160.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A1DC13F; Mon, 30 Jan 2023 06:36:28 -0800 (PST) Received: by mail-oa1-f49.google.com with SMTP id 586e51a60fabf-16332831ed0so15182887fac.10; Mon, 30 Jan 2023 06:36:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9D5+mOa+V6zLZUsgo8fYk9qa1TaSMliGQ0eIaxr9+OE=; b=ujvaDeOyxdEPQBM6LHJVbeVJzeIjTEh9A/RQkWgete8QeKRXzDf6lksCF5XFXvlRIF sqk7bEMlKpmHhE4I0N+xxQpp5B8PTyz6+mEACJb6aLo9yon60800epD5UdpJItIxVRxj CJJNxjQCyUqKEO0VDMYVfjby/d+CxF9C2hApUXWhrqwVhR4GJm+UC8aU0phkTUqfWBFR i4sjMVimjD6U5pV4DQE3HFykUJnzSY269VGf/jfex8SbC12Qv1o2pNBcqCuJUStF0Xq1 /OdEWJhrPvNLKP8UEy/y2wRXhApi+0enrQ3gwRfRmrTT8IzRvNF/Q3phcnlvox3FtWvs 6Obw== X-Gm-Message-State: AO0yUKWPgNA4nWSqacZuUcTbGrw1m+e0tSsD52xYCrX5lba17YfXEzk6 b0LDnLBRsED4pSwutqe2K7GVOnbokkU2UQ== X-Google-Smtp-Source: AK7set+8OYk4njLoOMTUhSZWHB6oaLJyCVrpGEBDZSVs11tu5z653ZnqxL02nNp6sEBftIRrarFWSA== X-Received: by 2002:a05:6870:204c:b0:163:cd39:5f1f with SMTP id l12-20020a056870204c00b00163cd395f1fmr847394oad.40.1675089387661; Mon, 30 Jan 2023 06:36:27 -0800 (PST) Received: from mail-ot1-f43.google.com (mail-ot1-f43.google.com. [209.85.210.43]) by smtp.gmail.com with ESMTPSA id f64-20020a9d2c46000000b0068bcd2b0bfasm1873405otb.65.2023.01.30.06.36.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Jan 2023 06:36:27 -0800 (PST) Received: by mail-ot1-f43.google.com with SMTP id v24-20020a05683011d800b0068bdd29b160so116756otq.13; Mon, 30 Jan 2023 06:36:27 -0800 (PST) X-Received: by 2002:a25:ab30:0:b0:80b:8247:e8b1 with SMTP id u45-20020a25ab30000000b0080b8247e8b1mr1966130ybi.604.1675089376546; Mon, 30 Jan 2023 06:36:16 -0800 (PST) MIME-Version: 1.0 References: <20230127001141.407071-1-saravanak@google.com> <20230127001141.407071-9-saravanak@google.com> In-Reply-To: From: Geert Uytterhoeven Date: Mon, 30 Jan 2023 15:36:04 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 08/11] driver core: fw_devlink: Make cycle detection more robust To: Andy Shevchenko 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andy, 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 Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds