Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp588559pxf; Wed, 17 Mar 2021 11:05:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWK4vJuAwADDmtS3lmN8OhCUrFKvoVe9cFjimybF67VTjhAdpcWx7y5aXWneah+wjuEYda X-Received: by 2002:a05:6402:105a:: with SMTP id e26mr4237975edu.164.1616004312986; Wed, 17 Mar 2021 11:05:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616004312; cv=none; d=google.com; s=arc-20160816; b=YALEEpuzpxPYW+l4po002CxvqUQ8z84nkAwsREL9MH4MMQiZ5YthgIqWnPf2YycQ0c Rcgd+gy6WV6PVjEC+34Pq+F1NmDba2anf+Mpby5a4n01o1pb0OwFyqY+CfvE7GumCJ9/ v1D62pMPEcsGY+UnSmSIDRPgzwrPEDyVmWDFulAldoA3gwKL4YWmqBbXgUZL4sfajAhO SvM5DgkNxxLKsZtyl0V+DuU7G5G5nZGCnyUL2OUMcEewy4Qj9tt3H8RRLOAwn0TskVSZ 8dxAqgxr3/gMNA8+2vVaRWrLuqtbRNpWDu6DEztHpYkD5odhwo8j4yg2ooMTLPAH4Z+j aVpg== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=B5fUBHhNuljYNGcWKRnujXYU3s/qPbEKzGKyCTTxOZw=; b=FAtPHJnJ0pnKIwNqc2xd6dvnVinj0WEVCt3JJulusmhZ6Ot8m2LC8lybmAMv4zXwfN rSLMpJqKpTRlyaJOk3jCcuv5MYTNWrYrGH4khWb7mO+8wH3iDzpCgZNn1j/gDe13S0Ac qjyVQIkSN8caP5QbaA9cAUydolYeEPe/wykAy3jnXk5yNPYuUIkwEuiqJa01f1Xfy/SD sLMJE0ew1SLO8UWRTl5GctWzdOC1B+DSrQjLyGdMByCDKw1jb+U7VgL+7pnnjgD/xeOh efVAUSK4u2qZFDqi2N4zyMwF19Noy/qfGVVAZomfJOvQG4Rptvxqg18pD8v4vGo/jbzo aHCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EqM+Hp2R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ss17si17265490ejb.678.2021.03.17.11.04.49; Wed, 17 Mar 2021 11:05:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EqM+Hp2R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232833AbhCQSDU (ORCPT + 99 others); Wed, 17 Mar 2021 14:03:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:43836 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232912AbhCQSDF (ORCPT ); Wed, 17 Mar 2021 14:03:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6A1B364F20; Wed, 17 Mar 2021 18:03:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1616004185; bh=XuRIVNL9+2MBbMZJe/8H2fvfyJAhzhCls7VjVDwKWf4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EqM+Hp2RsgellPxUqzYkk4f62fmn1oxuNKe6LC1lGDDVtdScLIOA3jYjWQeAX3qLO gMOb4mgH1bEUPAtFd/EG9TpI1ZeY5VLybvR5E8SENCOc9UVwsUZDA4CFTSNt2tZnMe JEMz185kRJQZbImOU8DNHkaPgWtu8t+OL+Uf5q4U= Date: Wed, 17 Mar 2021 19:03:02 +0100 From: Greg Kroah-Hartman To: Guenter Roeck Cc: Badhri Jagan Sridharan , Heikki Krogerus , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] usb: typec: tcpci: Added few missing TCPCI register definitions Message-ID: References: <20210316221304.391206-1-badhri@google.com> <4f077e6c-4e95-ab54-c549-e953bf3c00f3@roeck-us.net> <9d8747e0-c23a-6dd2-8cd8-fbbc0501d673@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9d8747e0-c23a-6dd2-8cd8-fbbc0501d673@roeck-us.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 17, 2021 at 10:58:24AM -0700, Guenter Roeck wrote: > On 3/17/21 9:42 AM, Greg Kroah-Hartman wrote: > > On Tue, Mar 16, 2021 at 03:52:58PM -0700, Guenter Roeck wrote: > >> On 3/16/21 3:13 PM, Badhri Jagan Sridharan wrote: > >>> This change adds some of the register bit definitions from the TCPCI spec: > >>> https://www.usb.org/sites/default/files/documents/ > >>> usb-port_controller_specification_rev2.0_v1.0_0.pdf > >>> > >>> Signed-off-by: Badhri Jagan Sridharan > >> > >> Are those going to be used ? > > > > For values and #defines that are in public specs, does it matter? It's > > good to have full definitions in the .h files for whenever possible for > > stuff like this to make it easy for people to write code to use them :) > > > > Good to know your position on this. It is one of the per-maintainer > thingies: Some maintainers don't accept defines if they are not used. > Usually I stay away from defining them to avoid the resulting arguments/ > discussions. If you are ok with it, so am I. #defines are trivial, and are good for documenting things. We have loads of drivers that do this to make it a good way to document the full hardware or specification despite not using all of the defines. They also are not a maintenance burden. I don't take new apis that no one uses in-kernel as that's just ripe for deletion and is a maintenance burden. It makes no sense to add and then remove something right away :) thanks, greg k-h