Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1791742ybe; Tue, 3 Sep 2019 03:37:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqxy8LRXF9HCL1t6r7QWnuvcJ5dHYF4APPudPwzwerKeXZ6IrUhwi/n3UkesraYi/lBftGer X-Received: by 2002:a62:1511:: with SMTP id 17mr12654950pfv.119.1567507053097; Tue, 03 Sep 2019 03:37:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567507053; cv=none; d=google.com; s=arc-20160816; b=cdcPT0S0G8Tr9oGssuelzdEGKWiR3iEZCY51+4fp8dc6R4d0DdcM61oW0TTDvG/UYd XUGLXDQh9Zp+8ZwvyqTEYCHk1lA75NSKfABnJsrNZMOvxUehJvh/NpCoQDGlm3AtpsrW w3KF/YQZ+dXfgDCQBf/kxC1nNkx4dJpgugFlF+gNFOcnUev/J1HszNwBsJckWpidubII EmqR/HDVDZlCSljI8RgSbSgAw0c7bKiAHywpHc+mR7wlzxhFgNIf1BEqVXNp5IV8lztB 3xe+fO50FhM580K64s+LUZqwG+EZ95HSP2ARWn+rVHL11bQzCxKbZjmdFMHtlo4hjETs 84pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=kwtmOpSg9uiwojocn5XJAgzbL8XqRF1bwfcVX9zRoBY=; b=cnXAxgm+hZeUsV0LGiikwoBq+HdWh58AJ2VgHcBJQQDsqmsw0Ln3RJ+agob5/zOeng bTMtDR3PzN4do/b85dk1iuqGXutVFvcdsIN6m66WByVgwdknKeWq/S63ml9wnlX76PA/ 3qW4y1omr+PcFQPxPVoqr4te6WgL85bQLkI4nYWYz0J+89dQzE37o6qCztn/GNEy8MN2 Fjzb292hGsarOIsrpUOYac7wy1edYsxgL4O/lv7R/DZYC/BNHKfoHzucNO7TcopwidEO TnV9XYMN4CE0QZJotR12TZrpYbjreYWEW5J4gIodx5hAGKHc3Z+pSozA2SHuz4Ve0F8W dCyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=hGjVDQes; 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 84si10911731pfw.121.2019.09.03.03.37.18; Tue, 03 Sep 2019 03:37:33 -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=hGjVDQes; 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 S1728809AbfICKgI (ORCPT + 99 others); Tue, 3 Sep 2019 06:36:08 -0400 Received: from dc2-smtprelay2.synopsys.com ([198.182.61.142]:35624 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728750AbfICKgA (ORCPT ); Tue, 3 Sep 2019 06:36:00 -0400 Received: from mailhost.synopsys.com (mdc-mailhost1.synopsys.com [10.225.0.209]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 77A15C0488; Tue, 3 Sep 2019 10:35:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1567506960; bh=NX8ZFWZsy087DTYRdDP6NLFudhTQiDOn0etqPDZTKug=; h=From:To:Cc:Subject:Date:From; b=hGjVDQesCToHVpZbms1ETSQ34WVup4ugLjjv4xmT4MusnEYMcsF1xY+Na5ViMBw7E ki+cA5AKmxATdKeeGzYFwpIVxzf96j7BEbKyxVv3aJPMx3jTKrcKSJAbdTJEP2mE+K STJdUz48Sq6XZ2WYFaunX0+JqUbE5egbhmNfV+TU2uoJyq4uVn1al2yRjnlNGFrbWq TTc7nhDmJ8fOSh6DnPOAQYA1L5AlBy++Y6Td3ln6INrc6S0t2fze5lQLwqDG1F1Ex6 g6/TpLJ6suyvvuV2OE0vzDO1fXWADmY5H40CS2k1KcXndu0LeeCO8JqZSHC973A/vg p+qojwQ3pJhgw== Received: from de02.synopsys.com (germany.internal.synopsys.com [10.225.17.21]) by mailhost.synopsys.com (Postfix) with ESMTP id B2749A005C; Tue, 3 Sep 2019 10:35:56 +0000 (UTC) Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by de02.synopsys.com (Postfix) with ESMTP id 8DFE73C0D1; Tue, 3 Sep 2019 12:35:56 +0200 (CEST) From: Vitor Soares To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-i3c@lists.infradead.org Cc: bbrezillon@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, pgaj@cadence.com, Joao.Pinto@synopsys.com, Vitor Soares Subject: [PATCH v2 0/5] i3c: remove device if failed on pre_assign_dyn_addr() Date: Tue, 3 Sep 2019 12:35:49 +0200 Message-Id: X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series remove the devices that fail during pre_assign_dyn_addr() and were being sent on DEFSVLS command. With the change above, during the i3c_master_add_i3c_dev_locked() is necessary to check if the device has i3c_boardinfo and try to assign the i3c_dev_boardinfo->init_dyn_addr if there no oldev. This change will allow to describe in DT device with preferable dynamic address but without static address. Change in v2: - Move out detach/free the i3c_dev_desc from pre_assign_dyn_addr() - Change i3c_master_search_i3c_boardinfo(newdev) to i3c_master_init_i3c_dev_boardinfo(newdev) - Add fixes, stable tags on patch 2 - Add a note for no guarantee of 'assigned-address' use Vitor Soares (5): i3c: master: detach and free device if pre_assign_dyn_addr() fails i3c: master: make sure ->boardinfo is initialized in add_i3c_dev_locked() dt-bindings: i3c: make 'assigned-address' valid if static address == 0 dt-bindings: i3c: add a note for no guarantee of 'assigned-address' use i3c: master: dw: reattach device on first available location of address table Documentation/devicetree/bindings/i3c/i3c.txt | 15 ++++++-- drivers/i3c/master.c | 49 ++++++++++++++++++++++----- drivers/i3c/master/dw-i3c-master.c | 16 +++++++++ 3 files changed, 68 insertions(+), 12 deletions(-) -- 2.7.4