Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1649463pxu; Sun, 6 Dec 2020 02:47:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzQbjsEdWN6P1QemIituD6jn1JNkKtxRbl5YNVUDP3n8RAD5GY9um2S2ET3dMoIKqlv/ryT X-Received: by 2002:a50:d490:: with SMTP id s16mr15337232edi.187.1607251656402; Sun, 06 Dec 2020 02:47:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607251656; cv=none; d=google.com; s=arc-20160816; b=udFUieVQAMEYGHZbbkzhxsknrcpEyKTkvBwBhzK5uvEe27fJ5LlnQcWpvr3pMKWndJ v3Rs83oDOkhonoiTINEJNwC0CmzMSJ0p4VpKjkUAGqquAksa5b8hYIKXClGqRFUz3KtE 7PiFzW6Z/mehu6cdBNNeYfkY7mQRBr3TXWvX11VIEKsVJcXHJu/nlG/WN/MQSVsnXMnB eaL1xW15rmnKKZioKorDrrbZ8jDOuk1irk8n0jEXrK+OblndwGatgoMDlMk18761bUcy CURu9AdtlVxAVl3BLXDSuQ1ndtbGtNXP2jTwG/Yvv2BYSn1lSL9PP7VsuWUaTAlMky+j /z+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=ThOvcpo01+U282DIKyNPgDob2K7LlEHH/DyStgcc8dU=; b=fRz5V8shkfuMWFY12Lh8iExOMaRMtO8VI+8ZA49t98ukSQerRHM73YeG0cNvJGimfE GJZsOR2VeFYfH4DChf7shu4/cyocp8jfEDYQsCLqbJmk/SivnvrJOub77K7M4oOKmvzg lxXUIi4uy80pMsiF/ST3uugFj09ZPH2s5JnAKBh15cDKauq/khTcrsqTqLnJYaVU0MoQ adpQ5zrOpNM5CsaT3cHdO6ufh1mfw6R3iFzTHmm2EAg4loCTaMg2X9/9Z0CqhyoDpetD slCC3c9Zeew9CsfRFZ/bAdUekeNa3ZfqN/h/IE946Ly7PLe0CMN5uLtgce51SJzuyT8d A5rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Lu/4Q9n3"; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o60si6354568eda.61.2020.12.06.02.47.12; Sun, 06 Dec 2020 02:47:36 -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=@redhat.com header.s=mimecast20190719 header.b="Lu/4Q9n3"; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726377AbgLFKos (ORCPT + 99 others); Sun, 6 Dec 2020 05:44:48 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:51037 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725804AbgLFKor (ORCPT ); Sun, 6 Dec 2020 05:44:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1607251400; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ThOvcpo01+U282DIKyNPgDob2K7LlEHH/DyStgcc8dU=; b=Lu/4Q9n3SlzRUqTC0zFjBKGLMXy65B/tbwUh3Px+zV0p/INAzgqwwCJMV2fPp8hVg2XjTT E+BnIqBuSLSNCmcKZc9gWhde+zpxT7/Qe5TYHBgA9Y52b8yMTiiYlaadUwsHs8t9xd7w3p Npek65zqQNum88zxXMNm896zXOF5dIA= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-36-dfBamIcnN7uK1EonFFZx-Q-1; Sun, 06 Dec 2020 05:43:16 -0500 X-MC-Unique: dfBamIcnN7uK1EonFFZx-Q-1 Received: by mail-ej1-f71.google.com with SMTP id bm18so3121474ejb.6 for ; Sun, 06 Dec 2020 02:43:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ThOvcpo01+U282DIKyNPgDob2K7LlEHH/DyStgcc8dU=; b=ASg4g39KRxGk9TTihLmGs5b3AoKNMt+T3lY1khPtGYiwtP1TsBXgRFzmdQ+JXTCMIf DAhsFRt/tDvkUfySMExtbSuOeNkKlC3duidbBSUbzBVMF2LcETLNp50tUs8lFcqd0byt bHTcsond0X6Lm4/5JVyVqtsPHSPXp/URhbnsnzaMkhNOLjdSyItAQ3+KdFQ0/Qr8qxka SQPOO3Pj4oZga+D7CIltOW2/v7i9wqSYhv3GcxqT44Zq47R/hnuypPROijK5K4F4bAO7 gDLeiEBeBJSCQmTCPDu2z6iur6/tn16GXX7Aw+zjTIZcI9CBuD+vrwUhaZi41ALTxOpc zzpg== X-Gm-Message-State: AOAM5309H2EYVbMo34oTyEOtID64R+G6lk2VVtd+qqUxFtRIauA9wRV2 dSP5l3aYcNH2vfh0VTWk28Q88TsEdnkiTVSfRKMDXttHQm+KZgnZnAOMJKZrGv49MFfkw7QSEiu Lf8g50I6mtEFaZdO1xIzzYGUo X-Received: by 2002:aa7:cd9a:: with SMTP id x26mr15012389edv.226.1607251394873; Sun, 06 Dec 2020 02:43:14 -0800 (PST) X-Received: by 2002:aa7:cd9a:: with SMTP id x26mr15012374edv.226.1607251394717; Sun, 06 Dec 2020 02:43:14 -0800 (PST) Received: from x1.localdomain (2001-1c00-0c0c-fe00-d2ea-f29d-118b-24dc.cable.dynamic.v6.ziggo.nl. [2001:1c00:c0c:fe00:d2ea:f29d:118b:24dc]) by smtp.gmail.com with ESMTPSA id ng1sm6972407ejb.112.2020.12.06.02.43.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 06 Dec 2020 02:43:14 -0800 (PST) Subject: Re: [PATCH v2 0/9] Add support for Microsoft Surface System Aggregator Module To: Maximilian Luz , Leon Romanovsky , =?UTF-8?Q?Bla=c5=be_Hrastnik?= Cc: 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 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> <20201206090614.GA693271@unreal> From: Hans de Goede Message-ID: <8c6f7234-fc7e-66c2-948c-1232eb5ff813@redhat.com> Date: Sun, 6 Dec 2020 11:43:13 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 12/6/20 11:33 AM, Maximilian Luz wrote: > On 12/6/20 10:06 AM, Leon Romanovsky wrote:> 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. > > This module still needs to be loaded explicitly. Good then I really do not see a problem with this. > And (I might be wrong > about this) the "not-break-user constraints" hold as soon as I register > a misc device at all, no? Correct. > So I don't see how this is a) any different > than previously discussed with Greg and b) how the uapi header now > introduces any not-break-user constraints that would not be there > without it. > > This interface is intended as a stable interface. That's something that > I committed to as soon as I decided to implement this via a misc-device. > > Sure, I can move the definitions in the uapi header to the module > itself, but I don't see any benefit in that. Right, if we are going to use a misc chardev for this, then the correct thing to do is to put the API bits for that chardev under include/uapi. It would still be good if you can provide a pointer to some userspace tools using this new API; and for the next version maybe add that pointer to the commit message Regards, Hans