Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752338AbeAQHsH (ORCPT + 1 other); Wed, 17 Jan 2018 02:48:07 -0500 Received: from regular1.263xmail.com ([211.150.99.130]:56131 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750969AbeAQHsG (ORCPT ); Wed, 17 Jan 2018 02:48:06 -0500 X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 X-RL-SENDER: jeffy.chen@rock-chips.com X-FST-TO: tfiga@chromium.org X-SENDER-IP: 103.29.142.67 X-LOGIN-NAME: jeffy.chen@rock-chips.com X-UNIQUE-TAG: <802e11e6fd95e0cfb6770e01e35666d0> X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 Message-ID: <5A5EFFA3.6070206@rock-chips.com> Date: Wed, 17 Jan 2018 15:47:47 +0800 From: JeffyChen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:19.0) Gecko/20130126 Thunderbird/19.0 MIME-Version: 1.0 To: Tomasz Figa CC: linux-kernel@vger.kernel.org, Ricky Liang , Robin Murphy , simon xue , Heiko Stuebner , "open list:ARM/Rockchip SoC..." , "list@263.net:IOMMU DRIVERS" , Joerg Roedel , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 11/13] iommu/rockchip: Use OF_IOMMU to attach devices automatically References: <20180116132540.18939-1-jeffy.chen@rock-chips.com> <20180116132540.18939-12-jeffy.chen@rock-chips.com> <5A5EF94E.7010806@rock-chips.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 01/17/2018 03:30 PM, Tomasz Figa wrote: >> >but it's possible the probe failed after calling iommu_device_set_fwnode, so >> >i'll try to add some checks here, and maybe adjust probe() to prevent it >> >too. > I think iommu_device_set_fwnode() is not enough for of_iommu_xlate() > to find the IOMMU. The IOMMU is actually added to the IOMMU list by > iommu_device_register(), which is last in the sequence, so I guess we > should be fine. > hmmm, the later patch would change that ;) i'll fix it in the next version. > Best regards, > Tomasz > > >