Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3846078imm; Tue, 11 Sep 2018 03:04:50 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYkq7d5Proy43XjRdUL+NNzl4Sx/cccKJuIfPm1ycvAOp6ay6lD+J5zZ7DOgsRpRC48y9to X-Received: by 2002:a63:5321:: with SMTP id h33-v6mr27185061pgb.139.1536660290872; Tue, 11 Sep 2018 03:04:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536660290; cv=none; d=google.com; s=arc-20160816; b=ZG60T7u4s0NvjcnxDltnE7FCHPOk9yM2lnext6LClagO8jGC+zE8biVGtDRIzFjc70 vd2OrWbXPJ5SD8H2WM4/cQdpeqjTfGv/SdOR4PweWmWBQThXMQ9O2mnHSe+Nk3wVoa1b x01UNQyoE/t8aruFIrpatCV7ZQscPnST2Y/SdmzSn8AAz5SUuLxjXOdLxGa9N48kMkqS Iv43z8KkbJHU6X4IE8Ehi8HYoUXhCYYQOqBDLaLbyo9gIP4V5kAONwtxH4hFRulYkZZW zvJE6KrlQPnjznK3QDG2aRBFw68QdarHqLrbXYwvT4tLwCEVMPFESb9dRxpUW2+UNC/M 8Iqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:subject:from:dkim-signature; bh=g0kYXHe2KJwp+d8Jv+xEWwHbjk3iApanNPjXuUzgS7w=; b=x+E07cRM6gGz2EGiT0E4UvJ94t5PVoncrrXSccCMporMuGXnalelGfq8cyiG5AMfmM +uu+SOQ3XoHE0jdIQ/Y4+Ws71dGPdbv5oO8S9IBWOOCccZCKVN2cv0/p8LzrxccEp2Kj cNNzgvAOzBshky9tlGwTKZ/8G3baL6H6OWL6VlJgOTo+z5Wrj0amcURPqV3dNmZbBTJQ misel152pNbd5JMwYiFQG6x3Y+gqPsY93JNvaRaMZIIYieI7oNF2DBNEMRqd/bDAzURA kMSKAAaXqKk29yOQ8O3r6NPzwBPyfxvM6l98phTeOnb1za5lCziBE0BNCfe2rnn8r+i7 pAEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b="Ct/Leyvx"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d65-v6si18959706pgc.524.2018.09.11.03.04.34; Tue, 11 Sep 2018 03:04: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=pass header.i=@synopsys.com header.s=mail header.b="Ct/Leyvx"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727019AbeIKPCu (ORCPT + 99 others); Tue, 11 Sep 2018 11:02:50 -0400 Received: from smtprelay2.synopsys.com ([198.182.60.111]:47404 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726554AbeIKPCu (ORCPT ); Tue, 11 Sep 2018 11:02:50 -0400 Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.13.184.66]) by smtprelay.synopsys.com (Postfix) with ESMTP id F34E310C080C; Tue, 11 Sep 2018 03:04:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1536660255; bh=8fGwDrxVf9cn5Ac6fZh+V0iy+YTI0GLALSQYoo/AvSU=; h=From:Subject:To:CC:References:Date:In-Reply-To:From; b=Ct/LeyvxnOFy7VgyjdpAvsuGTbSv7DZ8NZu6JkvXl30bKnwks9iLwcsXhiqagPv1L qo+1BtWZjo6K9MsiFZM9a+m0vllP/vw/B/574YXwvevfT7kX5tHmwr75N4SoAXsBVF 3n0K3JUZGJdMNSm7fYhfivvoA2Wss7TAWlunDZUpw6HP9O+v9xRsv0eNh4NQhxaenV hg6lwNlRv+ONrB+6tdKx9d04W7K5XfG1vEvoHS4AxFeiJkivOWKLMZO4nSl83YGV6d 7mXl3shzvAwOGaBAuDb/r9HNs1glQv3wkmWZHuSlMmHJldzh9FddT/wdtZEQKqecK6 kMaMQFaSZ/9jw== Received: from us01wehtc1.internal.synopsys.com (us01wehtc1-vip.internal.synopsys.com [10.12.239.236]) by mailhost.synopsys.com (Postfix) with ESMTP id 9F3FB3594; Tue, 11 Sep 2018 03:04:12 -0700 (PDT) Received: from DE02WEHTCB.internal.synopsys.com (10.225.19.94) by us01wehtc1.internal.synopsys.com (10.12.239.231) with Microsoft SMTP Server (TLS) id 14.3.361.1; Tue, 11 Sep 2018 03:04:12 -0700 Received: from DE02WEHTCA.internal.synopsys.com (10.225.19.92) by DE02WEHTCB.internal.synopsys.com (10.225.19.94) with Microsoft SMTP Server (TLS) id 14.3.361.1; Tue, 11 Sep 2018 12:04:11 +0200 Received: from [10.0.2.15] (10.107.25.91) by DE02WEHTCA.internal.synopsys.com (10.225.19.80) with Microsoft SMTP Server (TLS) id 14.3.361.1; Tue, 11 Sep 2018 12:04:10 +0200 From: vitor Subject: Re: [PATCH v7 01/10] i3c: Add core I3C infrastructure To: Boris Brezillon , Wolfram Sang , , Greg Kroah-Hartman , Arnd Bergmann CC: Jonathan Corbet , , 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" , , , Vitor Soares , Geert Uytterhoeven , Linus Walleij , Xiang Lin , , Sekhar Nori , Przemyslaw Gaj , Peter Rosin , Mike Shettel , Stephen Boyd References: <20180905154108.20770-1-boris.brezillon@bootlin.com> <20180905154108.20770-2-boris.brezillon@bootlin.com> Message-ID: Date: Tue, 11 Sep 2018 11:04:07 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180905154108.20770-2-boris.brezillon@bootlin.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.107.25.91] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Boris, On 05-09-2018 16:40, Boris Brezillon wrote: > +i3c_master_register_new_i3c_devs(struct i3c_master_controller *master) > +{ > + struct i3c_dev_desc *desc; > + int ret; > + > + if (!master->init_done) > + return; > + If you have a hot-join and call i3c_master_do_daa this function will return without create the i3c_device. > + i3c_bus_for_each_i3cdev(master->bus, desc) { > + if (desc->dev || !desc->info.dyn_addr || desc == master->this) > + continue; > + > + desc->dev = kzalloc(sizeof(*desc->dev), GFP_KERNEL); > + if (!desc->dev) > + continue; > + > + desc->dev->bus = master->bus; > + desc->dev->desc = desc; > + desc->dev->dev.parent = &master->bus->dev; > + desc->dev->dev.type = &i3c_device_type; > + desc->dev->dev.bus = &i3c_bus_type; > + desc->dev->dev.release = i3c_device_release; > + dev_set_name(&desc->dev->dev, "%d-%llx", master->bus->id, > + desc->info.pid); > + > + if (desc->boardinfo) > + desc->dev->dev.of_node = desc->boardinfo->of_node; > + > + ret = device_register(&desc->dev->dev); > + if (ret) > + dev_err(master->parent, > + "Failed to add I3C device (err = %d)\n", ret); > + } > +} > Best regards, Vitor Soares