Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5129997rdb; Tue, 12 Dec 2023 22:33:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IFPR3/EqEntibr28qFYAaqRTtlGZRapIVmHf4i+0BtTTbcWfC1+PNbdVQTsk5jvdDiddCt2 X-Received: by 2002:a92:c565:0:b0:35d:6997:9cb3 with SMTP id b5-20020a92c565000000b0035d69979cb3mr10096633ilj.52.1702449230394; Tue, 12 Dec 2023 22:33:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702449230; cv=none; d=google.com; s=arc-20160816; b=fRV/GPI08IwO9MZ2ANlCV6JnsgWcaHFgG6KQOvYriru8knhG8og+cZilUTec499/HE 1JKRueMIbbsS9mO3Qqv3qaKhI04N5sbZNdTiQTmqWgvXWArmXuey+iqqQgc5z7VxVz/t XS16+McVrctcVoy7b3U9L/Os6e55dHNDNcfwmi3eSqzHwryEb34l6wfZAUFCE041oaEy fn52Rwp2YuFBjsnEedWfy2Ot0QQ6l6yrOME/aE7+UaC9iORO1fTIHQN5wL/DZwn+ekMU vGr0lSdAoYBtlxuZPmuGDxwq0GBYyX5/Tvg9eWoniJQErgmS+ungokBcah7Uuod/J8u7 KJhA== 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=z9p8/aS0DcOZN8+84ZMld49VFTAkEWGnyTWKIx1cHbc=; fh=dARlnRCkMwzrbGHfpvYmoUaX4+pO0r9knLg3cDGMLfk=; b=nQfRguLphSg8jKWdsRHSSQCHNqGnRZqbVzSUIlwBvUcOlgAHEbyC8UltalL52mm9Sw oSNs6YYQlUui6gF4S0J7+8/XUrffoaKJ73c47XPZTVGmmVsmOQzBYxybnauESBTQxfWf xRf1lzCcpEswzpYXnYazipglN3gOb4eloD27pLxSk/fhhDfx1b4rBF33mJFL6OkP+/sw p6P5Eg2/CwSTkCEvVxhwIeoeIddS89OTvWfjuFnK7lZa2iTvtUvdPl1D3QYwd7wZCS9w EHrcVgS9bh+f8p3+66/9fiXY9Qhsrg3UTacf5aj+xEKRIf4h3jH0KKATsN+GLiub2Uc2 ESbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=evNq0Xwz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id l8-20020a170902f68800b001d1e31980cesi9142005plg.306.2023.12.12.22.33.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 22:33:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=evNq0Xwz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 2A5CF803E4B2; Tue, 12 Dec 2023 22:33:49 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378609AbjLMGdd (ORCPT + 99 others); Wed, 13 Dec 2023 01:33:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378551AbjLMGdc (ORCPT ); Wed, 13 Dec 2023 01:33:32 -0500 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90724DB for ; Tue, 12 Dec 2023 22:33:38 -0800 (PST) Received: by mail-pg1-x530.google.com with SMTP id 41be03b00d2f7-5c664652339so3719613a12.1 for ; Tue, 12 Dec 2023 22:33:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702449218; x=1703054018; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=z9p8/aS0DcOZN8+84ZMld49VFTAkEWGnyTWKIx1cHbc=; b=evNq0XwzahMVneMz4TCwG2wxhmKEIHETEyfHGBWFyT8XNLj8ql7U1AtLon+ZALAvh+ ppqrFtFgS5b4WnO0adchdrLK6S/JOpZuQjvnIuiwvdsudtO+gTNHugLQNPU9MoAg0xL8 auwEkRPHcDDeRlmISsClP110t6UwNtYi56SuvI+fP1aSY8wguxNzTUjtOUVyhKGdOgOF WogBzdG5fzl2GHKeyQCvx8k4THNtNwCA9U+NvO1Loz3RUe8rrcGuSYflBN92WKtZ5L85 VDt7ZVD3fTK3ZAEeovIxq0AsuVE1O/YgH+RGuUhqidwfSOO1rnF4KPnVrhaguYOKn88t LTgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702449218; x=1703054018; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=z9p8/aS0DcOZN8+84ZMld49VFTAkEWGnyTWKIx1cHbc=; b=Mb4Z6YD9flVjxgv+6vh3t4O62ta5+XvnykDHgip8jm0nZIPsoSBRg4bgdpB4eRtdG9 bDEP2j/mJMw0YHCBNY31X42TKtE/hKg2aC3sjOF0CGa2htNPgrNY3E0eQHRqQyfxRIT6 CtkE7zMeQB5WSuTbettncfKMFmm19imKknig31XOck2S8Vcmf6c2uD8TaR6yinmUs9De kBjQny74fxRuYavdmpb+TuSghSjWTy8ITW7j3AHmeVMe9xqzRLiEEDJg8a+QKCvN2D1N lHxCRF9xPKfyvLxaECOG+JHIypZHOYJKcwjekI8eCsdAtuUYnbvnuQcxtTk0KXJ4g0ZJ 5BUg== X-Gm-Message-State: AOJu0YydHSlDVOFxNlpeJUMaC+SiVKzDZ2LFEzr7mBd4FYrEYdAqPXnA h4ApF2BMdeprJuaE2Dn6RuoCTw== X-Received: by 2002:a17:903:1206:b0:1d0:9a6b:52ab with SMTP id l6-20020a170903120600b001d09a6b52abmr4442562plh.45.1702449217991; Tue, 12 Dec 2023 22:33:37 -0800 (PST) Received: from localhost ([122.172.82.6]) by smtp.gmail.com with ESMTPSA id i18-20020a170902eb5200b001cfc42ccfcasm9667197pli.152.2023.12.12.22.33.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 22:33:37 -0800 (PST) Date: Wed, 13 Dec 2023 12:03:35 +0530 From: Viresh Kumar To: Harald Mommer Cc: virtio-dev@lists.oasis-open.org, Haixu Cui , Mark Brown , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Harald.Mommer@gmail.com, quic_ztu@quicinc.com, Matti Moell , Mikhail Golubev , Alex =?utf-8?Q?Benn=C3=A9e?= , Vincent Guittot Subject: Re: [virtio-dev] [RFC PATCH v1 2/3] virtio-spi: Add virtio-spi.h (V4 draft specification). Message-ID: <20231213063335.xaejh3565gkn5cvh@vireshk-i7> References: <20231027161016.26625-1-Harald.Mommer@opensynergy.com> <20231027161016.26625-3-Harald.Mommer@opensynergy.com> <20231212103411.wbjmr5mefmxfnsib@vireshk-i7> <87f06ede-ac54-48cd-8135-ea2c8f5548f3@opensynergy.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87f06ede-ac54-48cd-8135-ea2c8f5548f3@opensynergy.com> X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 12 Dec 2023 22:33:49 -0800 (PST) On 12-12-23, 19:58, Harald Mommer wrote: > On 12.12.23 11:34, Viresh Kumar wrote: > I'm working on V8. It's coming to an end, will still have to check some > details but it's close. Internal review pending. Now there is a V9 and I > will also have to look at this. Maybe I will send V8 and subsequently update > to V9, I hope you are talking about V8/V9 of the spec here, as I only see one version of the Linux driver on the list. Please keep me in cc if possible. > > On 27-10-23, 18:10, Harald Mommer wrote: > > > +++ b/include/uapi/linux/virtio_spi.h > > > @@ -0,0 +1,130 @@ > > > +/* SPDX-License-Identifier: BSD-3-Clause */ > > Maybe this should be: > > > > SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause > > > > ? > Looking into what others do here. virtio_blk.h, virtio_input.h and > virtio_iommu.h for example: None is using GPL-2.0 here. virtio_iommu.h is > using exactly the same header as we do. Looked at all headers for SPDX License in include/uapi/ and this is what I see (Yes there are many non SPDX licenses there): 522 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 106 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 18 /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */ 16 /* SPDX-License-Identifier: LGPL-2.1+ WITH Linux-syscall-note */ 16 /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */ 11 /* SPDX-License-Identifier: GPL-1.0+ WITH Linux-syscall-note */ 6 /* SPDX-License-Identifier: ((GPL-2.0-only WITH Linux-syscall-note) OR BSD-3-Clause) */ 5 /* SPDX-License-Identifier: BSD-3-Clause */ 4 /* SPDX-License-Identifier: LGPL-2.1 WITH Linux-syscall-note */ 4 /* SPDX-License-Identifier: LGPL-2.0+ WITH Linux-syscall-note */ 4 /* SPDX-License-Identifier: ((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause) */ 3 /* SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note) OR MIT */ 2 /* SPDX-License-Identifier: MIT */ 2 /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR Linux-OpenIB) */ 2 /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR CDDL-1.0) */ 2 /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause) */ 2 /* SPDX-License-Identifier: GPL-2.0-or-later WITH Linux-syscall-note */ 1 /* SPDX-License-Identifier: ((GPL-2.0+ WITH Linux-syscall-note) OR MIT) */ 1 /* SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause */ 1 /* SPDX-License-Identifier: (GPL-2.0 WITH Linux-syscall-note) */ 1 /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note*/ Also Documentation/process/license-rules.rst says: "The license described in the COPYING file applies to the kernel source as a whole, though individual source files can have a different license which is required to be compatible with the GPL-2.0:: ... Aside from that, individual files can be provided under a dual license, e.g. one of the compatible GPL variants and alternatively under a permissive license like BSD, MIT etc." And so I thought we may want this to be a dual license. > > > +/* All config fields are read-only for the Virtio SPI driver */ > > > +struct virtio_spi_config { > > Can you please add proper doc style comments for the structures ? > Checking my current code. This is updated in the V8 version. V8 of this patch ? -- viresh