Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2649144rwd; Wed, 17 May 2023 12:25:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5LHY99uLXaNBRxQ0tLxzio9k81ydwFnyDD63if07JhoSYURJVFBFDZpraRmF4R5EH2izvT X-Received: by 2002:a05:6a00:1503:b0:63b:62d1:d868 with SMTP id q3-20020a056a00150300b0063b62d1d868mr1215970pfu.8.1684351551891; Wed, 17 May 2023 12:25:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684351551; cv=none; d=google.com; s=arc-20160816; b=Wsagd7/KoVCHId2P30u8U2PFb89cgAplzRQYMeSPnrsUqINw39qGbvq8EfcKKJ19jV vhpbx4qR50cvgEaO7gzKe0EsBle12PmoKIVeHqE8m1mfnOIoFmJMCVT3wR9FmIXl6r+C NaWnbK45yjztz8d0M8QVWu7hv6WfyfID0D+K2NfW5kpLs0rvfMeQ9XPmQE7GKQ0a1Icx ooe7TVMRElXjMusPgEOmaAea6ThC0DVAnaJYn+0b5+MmulaOnB8ypowlDfh4y96miaZg oU0L9MU0f/nt7rLOrdLuL+AFyOc27jEPvZXW5XKod/oTVllLpTQGPrVYOdPlbWUcO2tS jp+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=k+i5CkKVwphPu9AEzRznY93s/jbrd0rDb07IyM6Xqc8=; b=wEmHxxTDXJRdfgKSE1DMzoBXASrw2wKYZ9Vrk0+cl58FpWOjX3KFQU56Fd8PlXoxdw Qml0Yr6qtcyAtwyyNT3FHcu+fE3wYEPlu5wMGUa2/+E2vG5JQsTwZFSb/XEe/rduWkSL wtU1zL3hI/0BXRValE0E2X13OuPyWCxg/qVShscKK1odYzJKbD3YphtMuNIJHLzzWf+S EOPxh/5asNc/mq+6nHGLkhFgBtF+WrCaMx2R2lYMyg5JwlvlCyTfknZt0OEw5olwtNlM Hb7+vNt2JS+yIVteUA8t2KF5NVR/JjoVGsn5VyeuLTT4++rZGqqvyVufKSdyO9hwM5k2 P8CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cLJr2hnu; 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=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n26-20020aa7985a000000b0063b88c406c4si23050737pfq.171.2023.05.17.12.25.40; Wed, 17 May 2023 12:25:51 -0700 (PDT) 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=@intel.com header.s=Intel header.b=cLJr2hnu; 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230005AbjEQTOW (ORCPT + 99 others); Wed, 17 May 2023 15:14:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229519AbjEQTOU (ORCPT ); Wed, 17 May 2023 15:14:20 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B32B3A8D; Wed, 17 May 2023 12:14:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684350847; x=1715886847; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=bcV1wWBOCBZQgPTgstGT/dGjpn/djf7q8srqFQkL1qk=; b=cLJr2hnuiMf7hrN0DohrPjkMu0Rn5Sxp94KHZt1yHe+rcYRapikG5fVm yK9PCmw5LBfVpaiDwR8MbN8/wt/2ZYNrg6bVCS4USmkIsMH3UawO/UYhA P7DozsIZ5+zHrxp617wPN5fqgfzyVffXpan6wo9vtiUu8X1aFvcw4irL4 +yc1GB+XtNF1j4TGfviklBGlBqoGU1ET15sIo1D7VxCrHphvMTwB0QvVv WyJjDxngioX8SO1AOlnXiBsk63Kdp4bcDZUz+iByrvtPdWBMnOz8qrHWN U+QjCN20R+7rmz+DrUwkE2ifJoO/HT0mISpCku0vsDkPKPXEK8B0sWy3x w==; X-IronPort-AV: E=McAfee;i="6600,9927,10713"; a="349358981" X-IronPort-AV: E=Sophos;i="5.99,283,1677571200"; d="scan'208";a="349358981" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2023 12:14:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10713"; a="696004563" X-IronPort-AV: E=Sophos;i="5.99,283,1677571200"; d="scan'208";a="696004563" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga007.jf.intel.com with ESMTP; 17 May 2023 12:14:03 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1pzMb3-0008aX-2j; Wed, 17 May 2023 22:14:01 +0300 Date: Wed, 17 May 2023 22:14:01 +0300 From: Andy Shevchenko To: Greg KH Cc: Mario Limonciello , heikki.krogerus@linux.intel.com, rafael@kernel.org, ajayg@nvidia.com, linux-i2c@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Evan.Quan@amd.com, Lijo.Lazar@amd.com, Sanket.Goswami@amd.com Subject: Re: [PATCH 2/2] usb: typec: ucsi: Don't create power supplies for dGPUs Message-ID: References: <20230516182541.5836-1-mario.limonciello@amd.com> <20230516182541.5836-3-mario.limonciello@amd.com> <2023051742-guiding-footing-3527@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2023051742-guiding-footing-3527@gregkh> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Wed, May 17, 2023 at 08:58:49PM +0200, Greg KH wrote: > On Wed, May 17, 2023 at 08:14:13PM +0300, Andy Shevchenko wrote: > > On Tue, May 16, 2023 at 01:25:41PM -0500, Mario Limonciello wrote: ... > > > +static const struct property_entry dgpu_properties[] = { > > > + /* USB-C doesn't power the system */ > > > + PROPERTY_ENTRY_U8("scope", POWER_SUPPLY_SCOPE_DEVICE), > > > + {}, > > > > Comma is not needed in terminator entry. > > But it's encouraged! Why?! This might lead to the subtle mistakes going unnoticed during rebases. Yes, it's quite unlikely, but it might be still possible to have the empty entry in the middle of the array. Why should we shoot ourselves in the foot if we can avoid it without any effort? Hence I can say it's discouraged. -- With Best Regards, Andy Shevchenko