Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp7137387imm; Tue, 24 Jul 2018 08:59:50 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe8cY8kBC6hS61TwfkucT0AxPu2k175v6yma98pnCsR39ii9Ic3VdDS7ze5WPls8Y6khloG X-Received: by 2002:a17:902:42c3:: with SMTP id h61-v6mr17490675pld.319.1532447990550; Tue, 24 Jul 2018 08:59:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532447990; cv=none; d=google.com; s=arc-20160816; b=cUorYAYBX16QOkjY7LEPO5XuJxHcUyYn9yc/rKKsFr3nH34Ke5wwokzT7J+OA4dq2o U2+hJ/gOea0FSggs800cE4wKsPjRmxgVV3dUs/r4dYTgc2U1vo0J1wKwMEm7aX1syRre W8kP/raOoVl9ngu2EwDBmiqc5Vl7gFyvCRErlkGm8XsSAHJsHnKPn8uQ9AmIZgnPpPjY LOTzsKeUA54pb28r9CzRgZMSk+dnca75nTx1dkjJE5lilCjWmRgeOZFX/sxO6uVRy6/N AEWOQp9jvPQJPcI1IA5TUf3Qk+qpdj5dBgT5gVIfkr6EWCK5M5VqYw2olUOMvL3BR5A/ uckw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=GtLQonh5oAhrsGLmxsPB2O83fHGjOHRocxp7InBgTIw=; b=tSQXiwvkatbt1IGIKpov8Bymil0ijoqaQTD/LktHQ29ypOe3c1D0n8qFIjrtM5j7om x4cq9jTa77+WD4oP4qmwH1/zurAb3JcLmxLIRyhAxEAu6+EVeVtxerGiZOWtFtSr34cB kefmRJfIRb0cSlKYirRXXDuG29uvkhGouueIHZslqpIcI8W6EymiyvfdQxaPsQzk2mRS teFIsFEaEBfBqlsxAKR10KLsVa+EpsQ4UbrkBZrF0ESNHY9CMs2wIR0OJobYGpWnCWw1 aWkY7k5E6iwHwo9f4ezDVhViM4RBY61IK7Da4TudRI6ufedIT8UnNRuVc0Zy+3UjIRDF dlHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=PK2MUEXD; 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 j193-v6si10962652pge.689.2018.07.24.08.59.35; Tue, 24 Jul 2018 08:59:50 -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=fail header.i=@gmail.com header.s=20161025 header.b=PK2MUEXD; 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 S2388593AbeGXRFj (ORCPT + 99 others); Tue, 24 Jul 2018 13:05:39 -0400 Received: from mail-qk0-f195.google.com ([209.85.220.195]:45734 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388413AbeGXRFj (ORCPT ); Tue, 24 Jul 2018 13:05:39 -0400 Received: by mail-qk0-f195.google.com with SMTP id c192-v6so2920954qkg.12; Tue, 24 Jul 2018 08:58:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=GtLQonh5oAhrsGLmxsPB2O83fHGjOHRocxp7InBgTIw=; b=PK2MUEXDg5kuO18A5oT88Ztz3ApEZjqKiNL+/VSps8CaX0/Eh+VmywDi3t102DNNjg 5kBPA2/wlmX7sJey5N/2P4L6RfjzaR5zb4ae1f2l1E0okwXmCSPC4kUOCl0B+E/KvkeE pqfH9lHODHLq65MUEaHUDAPGlQHm2IauiAJCMywZmh/OKdv9gl8lQaFhcFoDsVpNBYa/ FFtpSxfvJxuym6ENs/nKulcyewfr3fpL5GIYX9/kgc3SP1RA5T+WP37+ELDdQwepyU7Q p9lZ3/Wp+l4TZebkNs1JgSjiKLE2Z31oSALsfGDwsGF9sYNSq7hJeCD9kTpMImxZqkHN IcdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=GtLQonh5oAhrsGLmxsPB2O83fHGjOHRocxp7InBgTIw=; b=VpkseIU6ukoiDgdn7WAqaoHu0rlWXE7pVScetL2YpcsyOV4JXanMsmWT9Kk/vWgjcM hp5xnOTlA2YlSdiFXO0KfkdyK3dgmcgHsyU50L+xUk5A/14gSkhfumh72yb/ujqhJzO8 z3TdKrkAKUfMO9PreRTUVoofwsdydjWwb5eVTiOhu/Wb/bKxtVHqdqvwJxzlTXy1rBbs LNbLQEDx+/MSHzAIMJtuYnmAzNGcEHkX0/9B+OfwPGF6zwQbdd5qKfsAHqY5RVB1tZ+z Dk1EmsJjjGazJ7M8Fh1lpW7sWk2zauyFia4NniDOJ0QejvigNabvR8nj2jIpcnmgKEMF UR8A== X-Gm-Message-State: AOUpUlEw34gMjNUJbLtXqDuhsN/dG7vc3fUOnCZrHYBjC/rYJPCDpUI+ zUYyeUo1ATrYXA5uZF72fm4eMA2ryDOzuTbQsDgnQA== X-Received: by 2002:a37:5e46:: with SMTP id s67-v6mr15740319qkb.202.1532447910297; Tue, 24 Jul 2018 08:58:30 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a0c:967d:0:0:0:0:0 with HTTP; Tue, 24 Jul 2018 08:58:29 -0700 (PDT) In-Reply-To: References: <20180719152930.3715-1-boris.brezillon@bootlin.com> <2ab0ab75-2df0-2714-f007-c33b25481016@axentia.se> <20180720101206.tv7nsoanwo5ftnia@ninjato> <21b269c5-a3a7-c5de-c81e-c9c9301ae13e@axentia.se> <20180720151751.242d4809@bbrezillon> <20180724162806.318a92c6@bbrezillon> From: Arnd Bergmann Date: Tue, 24 Jul 2018 17:58:29 +0200 X-Google-Sender-Auth: 3SWtESwSQAAhXbPkWhHtBzk4s-Y Message-ID: Subject: Re: [PATCH v6 00/10] Add the I3C subsystem To: Geert Uytterhoeven Cc: Boris Brezillon , Peter Rosin , Wolfram Sang , Linux I2C , Jonathan Corbet , "open list:DOCUMENTATION" , Greg KH , 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 , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List , Vitor Soares , Linus Walleij , Xiang Lin , "open list:GPIO SUBSYSTEM" , Sekhar Nori , Przemyslaw Gaj Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 24, 2018 at 5:46 PM, Geert Uytterhoeven wrote: > Hi Arnd, > > On Tue, Jul 24, 2018 at 5:40 PM Arnd Bergmann wrote: >> On Tue, Jul 24, 2018 at 5:15 PM, Geert Uytterhoeven >> wrote: >> > On Tue, Jul 24, 2018 at 5:05 PM Arnd Bergmann wrote: >> >> >> That's not the case I was describing here, I was thinking of what >> >> Wolfram described with the Renesas SoC that has two i2c masters >> >> multiplexed through the pinmux layer. I would assume that we >> >> can still do the same thing in i3c by shutting down the current >> >> master without a handover, and reprobing everything from scratch. >> > >> > The major disadvantage of reprobing is that it may cause visual disturbances >> > when i2c slaves are involved with e.g. the display pipeline (think HDMI encoders >> > etc.). >> >> Do you mean we should reuse the device pointer and association with >> the driver even when we switch out the i3c master using the pinmux? >> >> Or do you mean we need to be prepared for driving a single >> slave through multiple masters over the lifetime of that device, >> but using the i3c master handover protocol? >> In the second case, how do we decide which master to use >> for accessing a device for a given request? > > I'll have to defer to Wolfram. He's the i2c and muxing expert. On i2c, we only have the first case, and Wolfram said that it intentionally does the reprobe to avoid the problems we discussed. The question is what to do about this if it happens again on i3c. Peter seemed to think that it was possibly something we might have to handle, while Boris said that it wouldn't be because it's not coverered by the i3c spec. The second case is the one that started the discussion, and this is where I said I'd prefer to associate each slave with at most one master at boot time, while the current v6 patch is prepared for having one slave be accessed alternatingly by multiple masters using the master handover, though so far nobody has been able to describe exactly how we'd pick which master is active at what point, or what specific scenario would require it. Arnd