Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1324040imm; Fri, 22 Jun 2018 14:36:46 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIPgrnEJ3OUbeaL/dKY58RxKsJP31F8eLvJqEAORG8k4eIlCSRAiiNZXF/bF54DZQxXJx8C X-Received: by 2002:a17:902:b58f:: with SMTP id a15-v6mr3277225pls.76.1529703406760; Fri, 22 Jun 2018 14:36:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529703406; cv=none; d=google.com; s=arc-20160816; b=jgMrRfEVpxCd5ck2owUwN+wGUaTJZp+ShnWIhfca+eRAa89xSIMEuDGgmWxrI0swPn hDfIIFRCygl/BxRTRPaQTPnrLXNMC4OItmW/fVUsF5BLSU0NF0qDbxfjRl73Fqm9uduu OrlUp23kbz95O4U5i43h5Om7Jr3tcqnThQE97lV73ix4rktj0PQkPSM3zdjjnJe/ognP SyUdQIJzKaaf1IotuQNjWA0TFAf1I1wMDQbD7FfL4i4UHIIgQS5+KUT51/9STW7xqp2Y bfj+BC9pKm9FVlJzi6AlHxYIY70iJp/+qNjc2xykuOZ6oHhGld2S3Xqne1RDYerPAGqp z+6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=QlZGjwWpCfMUBiU0MVHxcOEp1Ae9AQ9jQgfD1zv89ww=; b=whbP5SLsII/8CvAxytkZ5uRskThAVXI978wOPX9tghDH8SqjYkmtB9msBksyyY/Hs/ Z6840HW4FTlKZSwRSPIRPPv7AH3hb0kiXURyEeC5+TihGbzWGO0NOqCfLVvKZZtyqtIG KzGtda0qpf5eVKfYHzGUqEgLF9O9wra0v7rKs3okjVTcEKUNP4j3ZoDme/Gdft5go11A LZ2MTpDV9tZKa5zLNcElwBychplYfINzk8hDlQ9IV9QBzKetu1WPPqz9yjLH4fGiPc7j 8lc2dZJbY2qdC5rvIuYrENgq+nKX68CZjw4De5fNOnAe7T5l2VV3fr2uz3xt9eS848PR afOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@axentia.se header.s=selector1 header.b=dmjY87Dq; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x15-v6si7262574pgq.619.2018.06.22.14.36.31; Fri, 22 Jun 2018 14:36:46 -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; dkim=pass header.i=@axentia.se header.s=selector1 header.b=dmjY87Dq; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932918AbeFVVfu (ORCPT + 99 others); Fri, 22 Jun 2018 17:35:50 -0400 Received: from mail-ve1eur01on0091.outbound.protection.outlook.com ([104.47.1.91]:9504 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754401AbeFVVfq (ORCPT ); Fri, 22 Jun 2018 17:35:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axentia.se; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QlZGjwWpCfMUBiU0MVHxcOEp1Ae9AQ9jQgfD1zv89ww=; b=dmjY87DqxBi5QNsKTVE3puIExrrbxSrKLwQPuxWDqh+TihTCjiCtpBTvCjcVr+mGFGnkcmvKHnn22c4MQMjpHHrT+kN/b/lO8sJBA09mdks7xEGteD8cEuHI7aodJfWf1Zmrt/iWy/3FkMV6kCjW9hpiVIcfTRe9AsqQJLZJkXg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from [192.168.13.3] (85.226.244.23) by DB6PR0201MB2455.eurprd02.prod.outlook.com (2603:10a6:4:35::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.19; Fri, 22 Jun 2018 21:35:37 +0000 Subject: Re: [PATCH v5 01/10] i3c: Add core I3C infrastructure To: Boris Brezillon , Wolfram Sang , linux-i2c@vger.kernel.org, Jonathan Corbet , linux-doc@vger.kernel.org, Greg Kroah-Hartman , Arnd Bergmann Cc: Przemyslaw Sroka , Arkadiusz Golec , Alan Douglas , Bartosz Folta , Damian Kos , Alicja Jurasik-Urbaniak , Cyprian Wronka , Suresh Punnoose , Rafal Ciepiela , Thomas Petazzoni , Nishanth Menon , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vitor Soares , Geert Uytterhoeven , Linus Walleij , Xiang Lin , linux-gpio@vger.kernel.org, Sekhar Nori , Przemyslaw Gaj References: <20180622104930.32050-1-boris.brezillon@bootlin.com> <20180622104930.32050-2-boris.brezillon@bootlin.com> From: Peter Rosin Organization: Axentia Technologies AB Message-ID: Date: Fri, 22 Jun 2018 23:35:34 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180622104930.32050-2-boris.brezillon@bootlin.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: HE1PR05CA0173.eurprd05.prod.outlook.com (2603:10a6:3:f8::21) To DB6PR0201MB2455.eurprd02.prod.outlook.com (2603:10a6:4:35::7) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8a246b67-a53e-43b0-d45f-08d5d88819ac X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(7021125)(8989117)(4534165)(7022125)(4603075)(4627221)(201702281549075)(8990107)(7048125)(7024125)(7027125)(7028125)(7023125)(5600026)(711020)(2017052603328)(7153060)(7193020);SRVR:DB6PR0201MB2455; X-Microsoft-Exchange-Diagnostics: 1;DB6PR0201MB2455;3:lRv+shOTAlskOo+JxriKe3RnUCa+upNG9tbewVaXG6mGbssb2KJFP7SGXzWmOuQ6XPPXUc8XCKNcmX0pUs8ZI36M2GktkrnFmyJ8a0mI+q6AS/9z/vkrF2rSHuV57wa23/CbFk3BMdn6M34pgLrzK+hdvaeM404cBbb/NToRuvIKVRDIdS1CcLUGhbgJjY6Ddcon5jaXAFxl/iJrUtC/YWSZaFbQIuLSWLJptWcnH99s/3ftO3z1soYR1aA6fmuF;25:jVEfCZpuKXEZ0z8l1zhwW31W47aiLLKEvpf3DqvuwxcUVgGub8D5xawKi+GssVxY/mbmdCjAFd7QTPmRVAsKy/qi/ekL9pHr5z/rAk+In9+/MoW2jIkgv9QN5l2gJaYMyOZVXVvSTTaLRlumDPHk6JOwRmEhSCGnCmrHeaCJbXQ93K/AjaVyuLlDkbmBRF4GFJD/Y3aPM9w6ppcx2THsOLX4mBNC5+UwEWe19XoUDkyCOJeZ7wOmQ7t25k6T7oVMgChAbppewuozQQ2ezop61/lW5oyJ2fjMUBeyVItghjFYGWD6cQBOc7KXrJEVRoTX9zHoXVH8T/aMS423qqE2BA==;31:pN6mURwLIO0kabsEqF+QabxA7UHga2JwfqO5+nKkaLbr1wm7D72LkWd1ZwIOmyEOrJsWtQruO/fpk6cisZJMY1Vr+iOuzbFmxlaX35WLqOGIYhfzgPMKTQu+IPrtI3LJqkQlIYnFfTWyQtfy3nh0e1GMtKLDtGegjtrmmIT39CvCYypUBcOZ2dNNYpbOjh06ExxJQkxhmxRj0hg/omft2r96nQzceZIkQBeXU2CFGMQ= X-MS-TrafficTypeDiagnostic: DB6PR0201MB2455: X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(35073007944872); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231254)(944501410)(52105095)(10201501046)(3002001)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123562045)(2016111802025)(20161123560045)(6043046)(6072148)(201708071742011)(7699016);SRVR:DB6PR0201MB2455;BCL:0;PCL:0;RULEID:;SRVR:DB6PR0201MB2455; X-Microsoft-Exchange-Diagnostics: 1;DB6PR0201MB2455;4:tEYUXWpraghDMbL4SD+ZrBjXRM5AzA7XgJ1mSZ9ZioeCOC3MHvEPCeyGgzpljGlC+WR0BAmOzpPx6PiVb4lKPUZnIjuMLB5yqJqIzI8rOK1+PVjyUkjGMHhzvtI75b5h78ac+PM316c2kqpQT6cOYFxTEa3eqWzheX4kVBXVJ0bJAF6HxM0haAG8UbO9UXqPhFMdO8zMyh9IyTAIIzARxh5Tjo4khcMbtJbELQFKX75YocP/iL6pAj65N5n1YHmFxW8P21MjNU/BmpvWScUCJmNknAuYlnf9vSXIsWBzbjvMuYeYI0rBnmTqarsiiq7P X-Forefront-PRVS: 071156160B X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6049001)(376002)(39380400002)(366004)(39830400003)(396003)(346002)(199004)(189003)(81166006)(47776003)(16526019)(2616005)(956004)(4326008)(186003)(117156002)(66066001)(476003)(3260700006)(25786009)(446003)(6246003)(53936002)(486006)(229853002)(8936002)(77096007)(7416002)(36756003)(8676002)(3846002)(5660300001)(230700001)(68736007)(97736004)(65826007)(6666003)(11346002)(6116002)(81156014)(7406005)(478600001)(86362001)(65806001)(65956001)(31696002)(50466002)(36916002)(31686004)(23676004)(106356001)(53546011)(386003)(16576012)(52116002)(305945005)(52146003)(105586002)(76176011)(74482002)(26005)(2486003)(6486002)(54906003)(8666007)(110136005)(316002)(7736002)(58126008)(2906002)(64126003)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:DB6PR0201MB2455;H:[192.168.13.3];FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: axentia.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtEQjZQUjAyMDFNQjI0NTU7MjM6LzI1VTdzbWpqUE5XTVQ0UGRMcFZKSVFB?= =?utf-8?B?cDFMU1VOWVVsaGpCdDQveG9xZ3oxSFk0ZXkvVUt6WTQweXgyYXhKUit1OTJ2?= =?utf-8?B?S1RjNjlTU0hBZ2JZcGpwdy9MblBTVGtIMW52SkRzTEVTcDZVcWZ2dnQ4aklM?= =?utf-8?B?blhvWVB3VUxmaHNPMUI3aGE2a2laL1BxdUNTNU5XUWQzMy9UdnB5S1ZIM29q?= =?utf-8?B?TFdLMEtSeWdsRjJNMkZKaktVMVkwTElDRUQveURsM21mMGxhTVdWcEdJbm5U?= =?utf-8?B?cmxFSnJrK01lVEZTMWRoUjk2aUd1WWxPRmtnZDlVNEVjWUIzZE5SZDMwWFVx?= =?utf-8?B?K2hNUXdKbVV3RUdBeVYrMmw3d2wydVdmcXlFQ2lwcHlOSzhyTExBa3gwNUZT?= =?utf-8?B?TmlNQnFvMVdEbEVpMVJMVDYyYlJsbFZqV1o2S0ZuZDhNVUZJVWptVEdOZXlB?= =?utf-8?B?V2IweGYyRXdvWisxWk1BaEdicUkweGgvd1hGeURMQ2VvTTNncUhVUWNvaGRk?= =?utf-8?B?dmIzaWlEVnJrUDgzWUZCYnlaRlR1S3RUdFFOUXgrcklIbGFSQ0hOeXlBTzNi?= =?utf-8?B?c1llU1d3YWExb09VdGJMbmdnbkxtYkQzNjg1SGt4bHNEVktzempWcEpTUCtI?= =?utf-8?B?Y1ppZ0YwZ3BhR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muMgMTlw6B8VMRRPn+SNTMLBwPypCW0AFVLo/aZqdP+YMf1polJsCpT X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2018 21:35:37.8283 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8a246b67-a53e-43b0-d45f-08d5d88819ac X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0201MB2455 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-06-22 12:49, Boris Brezillon wrote: > Add core infrastructure to support I3C in Linux and document it. > > This infrastructure is not complete yet and will be extended over > time. > > There are a few design choices that are worth mentioning because they > impact the way I3C device drivers can interact with their devices: > > - all functions used to send I3C/I2C frames must be called in > non-atomic context. Mainly done this way to ease implementation, but > this is still open to discussion. Please let me know if you think > it's worth considering an asynchronous model here > - the bus element is a separate object and is not implicitly described > by the master (as done in I2C). The reason is that I want to be able > to handle multiple master connected to the same bus and visible to > Linux. > In this situation, we should only have one instance of the device and > not one per master, and sharing the bus object would be part of the > solution to gracefully handle this case. > I'm not sure we will ever need to deal with multiple masters > controlling the same bus and exposed under Linux, but separating the > bus and master concept is pretty easy, hence the decision to do it > like that. > The other benefit of separating the bus and master concepts is that > master devices appear under the bus directory in sysfs. Are bus multiplexers relevant to I3C? The locking needed for handling muxes for I2C is, well, convoluted... Cheers, Peter