Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1603022pxu; Sun, 6 Dec 2020 01:08:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwuwKEIcG3eP98W+3RxXR/OqzipVdDldbn19fm4hSaAKHuybNIzWScPn2Otei8RFAosJJ/R X-Received: by 2002:a17:906:ae0c:: with SMTP id le12mr14455942ejb.283.1607245722252; Sun, 06 Dec 2020 01:08:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607245722; cv=none; d=google.com; s=arc-20160816; b=0IDnrByk90hKV3vRQJdsMlnu74QNvyn9rG3cNmntfbhD9awE6jLXzGmyP8hci+fIps u1n5TQWAbMXdzB5xvoJ25X+qbPyBFC+XDproldxsv3T0Ac0i8s8ncpln43UdJ1w88vQU GFwA4oLyGEKQVRr0xp+/c5svOdjYM+p2+6TEk8vqypNdCDDzWZxzcPiQI8GBKI5SCFQE mPrsqqXq5Jl8gfvHt0XTVCpgr/CoVPDzumrUfpf0nqTANqjYDlLrXML3H4PkBhxy7Wzl lMvUm62ut7PdjnDFuwg6pQX81CPPurIimb2O/eZzFchunkKVut02mO52N1iQIDxq1Tvk 5PNQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:dkim-signature:date; bh=s+w0DJiO0lLkfTm14BP/G28WyCllLXEdBVKQ6c423Ag=; b=gJKxTPqUZmUh/PPIPP4uzxCiUAn/DuuyldAGczx/vyoLk/LiR2e+0r3tyVGX9FNPOe kDespM173oTyC481ikLBk1bTmwTUn/o2fEix8xV75+pB52xJrqMgORunwslQRW0JVYjn 62hWtOM9i1MUCfK9TEBlf0CRpJjuaineGrWwxWmIy7Rotye7l/lpjoEqTxE8QLGKPGdk 3GKDRYIqb9D0NiPQMJFzbF9Y68iAdlU+2xUzpUH3zBJ/t6YhMQnjvTSROn5cBjfovqZ3 MRFF4+nYNIr6A8oRerZL79YuB35k4uDzmKp60IyFuNLP8wjhh9FbaXdDGScybOGQx6oQ 59AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="gagO/krH"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dk11si5986763edb.594.2020.12.06.01.08.19; Sun, 06 Dec 2020 01:08:42 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b="gagO/krH"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726081AbgLFJHD (ORCPT + 99 others); Sun, 6 Dec 2020 04:07:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:53252 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725767AbgLFJHC (ORCPT ); Sun, 6 Dec 2020 04:07:02 -0500 Date: Sun, 6 Dec 2020 11:06:14 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1607245581; bh=s+w0DJiO0lLkfTm14BP/G28WyCllLXEdBVKQ6c423Ag=; h=From:To:Cc:Subject:References:In-Reply-To:From; b=gagO/krH5WjoJg2V+3NWtbbaWM9kYMbV6eKBL2Ee/hDqf7FozNpVol+hrpDbIrtzB 4/F5hCSHkP7ZCztYSosF/OFCNjQ8oUE1NR5roXgLNT/yx7h/iAoBYWUxXCB1/zr7EK eZ5Zy13XqlwZop+t0NGSqQwlAcBb68iNRQgLcAn8Y2fIVgXOHC6cQxAoLlQaft8hrT yuZDmYadfJGWBNMYXpGRffTk+vGVMaG+bYk/GxtDiSljdpNyjry2rDM9v85xszhavW QsZz1nQYp3O2Y3htOOOXGHGcSeT5O3fnmHTDf6KOV/G3/UfK9NfoUPsIElNKcruTMR 46FyyPilulOEg== From: Leon Romanovsky To: =?utf-8?B?Qmxhxb4=?= Hrastnik Cc: Hans de Goede , Maximilian Luz , Greg Kroah-Hartman , lkml , Mark Gross , Andy Shevchenko , =?utf-8?Q?Barnab=C3=A1s_P=C5=91cze?= , Arnd Bergmann , Rob Herring , Jiri Slaby , "Rafael J . Wysocki" , Len Brown , Steven Rostedt , Ingo Molnar , Masahiro Yamada , Michal Marek , Jonathan Corbet , Dorian Stoll , platform-driver-x86@vger.kernel.org, linux-serial@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH v2 0/9] Add support for Microsoft Surface System Aggregator Module Message-ID: <20201206090614.GA693271@unreal> References: <20201203212640.663931-1-luzmaximilian@gmail.com> <20201206070705.GA686270@unreal> <052ecf4d-9e08-2c08-8a06-c30ba2b28d82@redhat.com> <1b4fe1fd-592d-4a88-b156-fbf6af2df428@www.fastmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1b4fe1fd-592d-4a88-b156-fbf6af2df428@www.fastmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 06, 2020 at 05:58:32PM +0900, Blaž Hrastnik wrote: > > > > > More on that, the whole purpose of proposed interface is to debug and > > > not intended to be used by any user space code. > > > > The purpose is to provide raw access to the Surface Serial Hub protocol, > > just like we provide raw access to USB devices and have hidraw devices. > > > > So this goes a litle beyond just debugging; and eventually the choice > > may be made to implement some functionality with userspace drivers, > > just like we do for some HID and USB devices. > > > > Still I agree with you that adding new userspace API is something which > > needs to be considered carefully. So I will look at this closely when > > reviewing this set. > > To add to that: this was previously a debugfs interface but was moved to misc after review on the initial RFC: > https://lkml.org/lkml/2020/9/24/96 There is a huge difference between the suggestion and final implementation. Greg suggested to add new debug module to the drivers/misc that will open char device explicitly after user loaded that module to debug this hub. However, the author added full blown char device as a first citizen that has all not-break-user constrains. Thanks