Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2694281imm; Mon, 10 Sep 2018 05:14:43 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYn38NQTHA59STqtJmXall9Sn8ju0URGyQzy1wVm/LlikFlxALGirQQ6dpFhd8qVjW44PVC X-Received: by 2002:a63:4c02:: with SMTP id z2-v6mr22980517pga.312.1536581683502; Mon, 10 Sep 2018 05:14:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536581683; cv=none; d=google.com; s=arc-20160816; b=btLN6HNl1ZBRS/o0ja46GAfhuBO+ej9hKez7M4HKvD8y6H4TKP2Uh0r7F94UueyDs8 kFNsz60nJq3K77BlFqnfgUq8jq/62gfZZxRgewTjvdjk/yE2QGJD98GbMJgi48mM4t3w ZcnmABZXLY6P5iZupfeKuiv51ctXcHlUDpOuaOfEHWOyRMSGrh2WtxdYlNhYCHLMflFI tjs4hc6zur28uZ480l71t7NIaIzFN/1nciJmzC+WJcDQIPGCMvLKnHIpCZ9texWZ1JQk XaswyoLwHMs/4SggNlb+TUsJYTkY/Lr2PtwtxpvAZQlS8/c3uIXt8d+o9G9rJ5gUPhv0 scrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=6hvg9r4tmSyjr8ceFDyl/HPFVm3ZstOeTSe1jqqTO8M=; b=IKAQa+A4j3ccAd96z+hQxSgSuztEwX8YzpjZ+jhKISTI9IuPF0xjE/6vbrH/w/19qy We+Rz7sUY4eOCvLpu35Lp8JYcXkpaGCQl5zAoTArhbWOKcL1dQaFuxvQhat00Ro3ztfX eldKIyoHfrKFjmvkZbIWHgOJ9bGI22r9o4KEhPHvOHeLmjiJBefPT6Qwk+iTt4gyiUJ9 5W1o/5sak5TjMluMgvd5CWVfqUyGXJPwjmXtrvRxl8vGMVOBxi7mDdbDTX1xX0FmKaDj hCt1QONT9eoPvKztWIYI1T9J6PfkiOOdp19RaFMgseBylGJwrhkQA6qdoC2ntibuh3Sy 3w/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k2-v6si17970823pgp.602.2018.09.10.05.14.28; Mon, 10 Sep 2018 05:14:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728513AbeIJRHE (ORCPT + 99 others); Mon, 10 Sep 2018 13:07:04 -0400 Received: from mga09.intel.com ([134.134.136.24]:34183 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727649AbeIJRHE (ORCPT ); Mon, 10 Sep 2018 13:07:04 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Sep 2018 05:13:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,355,1531810800"; d="scan'208";a="71756619" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.157]) by orsmga007.jf.intel.com with SMTP; 10 Sep 2018 05:13:09 -0700 Received: by lahna (sSMTP sendmail emulation); Mon, 10 Sep 2018 15:13:08 +0300 Date: Mon, 10 Sep 2018 15:13:08 +0300 From: Mika Westerberg To: Lukas Wunner Cc: Greg Kroah-Hartman , Andreas Noever , Michael Jamet , Yehezkel Bernat , Stephen Hemminger , linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/5] MAINTAINERS: Add Lukas Wunner as co-maintainer of thunderbolt Message-ID: <20180910121308.GN14465@lahna.fi.intel.com> References: <76fccab34a66023c08b71a864a9fea77daac9742.1536517047.git.lukas@wunner.de> <20180910093333.GI14465@lahna.fi.intel.com> <20180910102514.tjwortosyb32n5me@wunner.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180910102514.tjwortosyb32n5me@wunner.de> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 10, 2018 at 12:25:14PM +0200, Lukas Wunner wrote: > On Mon, Sep 10, 2018 at 12:33:33PM +0300, Mika Westerberg wrote: > > The reason for making the driver less verbose comes from direct feedback > > from the community. For example: > > > > https://lkml.org/lkml/2017/10/31/864 > > I am not opposed to muting messages to KERN_DEBUG severity which merely > report what the driver is doing such as: > > "control channel created" > "control channel starting..." > > However messages should NOT be muted which report register contents > or register changes unless those registers are *fully* documented and > register changes are known to work *reliably*. The URL you're referring > to above provides an example where that's not the case: > > "disabling interrupt at register 0x38200 bit 12 (0xffffffff -> 0xffffefff)" > > Something is broken here, the register was read as "all ones". > This doesn't seem to work as reliable as it should and in that case > please don't mute the message until we know it's fixed and always > works. That is actually already on my todo list. What happens here is that on PCs the controller is hot-removed and the driver is removed but it tries to touch hardware after it is already gone. We have a flag for that already so I'm hoping to use that and skip touching hardware if it is set. > Also, it is quite customary and serves a useful purpose to report > devices at KERN_INFO severity as they're enumerated. E.g. the PCI > bus logs messages for each enumerated device, pciehp logs the > port's capabilities on probe, and so on. Therefore please do not > mute the enumeration of switches and their ports. If you find the > messages too noisy, feel free to condense the data reported for each > port to 1 or 2 lines. That I realized also myself after testing the patch bit more. We could print some information that is useful upon device connect/disconnect. But I don't think dumping the switch structure and ports are useful. I would rather make it to follow USB and print the actual device that was connected (this is the information read from DROM and which is exported in sysfs as well). So I'm experimenting patch that does something like this when device is connected: thunderbolt 0-1: device 1:8003 connected thunderbolt 0-1: Apple, Inc Thunderbolt to FireWire Adapter and when it is disconnected thunderbolt 0-1: device disconnected > We currently print "Port ..." on enumeration, but use the syntax > ":" for other port-related messages > printed with tb_port_*(). It might be beneficial to use a single > syntax consistently. Since thunderbolt is now bus and all the devices include embedded struct device we can use dev_*() just like everybody else is doing.