Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp666882ybz; Wed, 15 Apr 2020 16:15:34 -0700 (PDT) X-Google-Smtp-Source: APiQypJDbkcGAeHaDndZunvVlURNWDfkXKMTMyxbWdSsdS3CE+EdQjBvts3gWmQ8kmbTiRXJkVjX X-Received: by 2002:aa7:c64a:: with SMTP id z10mr27665926edr.126.1586992534238; Wed, 15 Apr 2020 16:15:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586992534; cv=none; d=google.com; s=arc-20160816; b=HuOZ+AhvIxBvnPkY82dtdMMdZzTl79d4EH5s92ghiH25val+iBRF+Z9bVqdeMqDk65 lim+LVN018Lttj6CmgE8U5Ke4w3YcaZTgrZ8L76zKuG5yifB7MOmeqUUDHPO8dQ6D6vi a53rxoRZjTKPhRU6HFnzA3sFIUvgCml+jdt7pcY+u/r+Kc6swS+prxlp5zKynf8eDPar pKYTV9UmNootVwLQFWr1M/gd7+0HraMQ7CmX5RDAI15M2hjT9kqW8WQlAEXAkJ7HDWaN XESG+pnpJI8kvPEDnRNHzhh8mY8owFZtZWVhbfU2Nr13a1YpzlCk79Kg4rLIUOPag1l8 w8GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=YgsT68WOs4n4TxIuY0QfnrnIjeHEkomnNrALUnGkU1w=; b=Zk898oxMlaQOTfk0XY5CL7dP4MvetrGvu6ViVp9RIOxMfIhRtMt6mcN3qbX2JjZ9Jb T4nEyxPJzKo77RwnTVYYYNBXOkl4llMlxanLLZ6TzWn3yhPorelsZfb55IvK0j5uDy7O 3euVqDod0KB6Om3bUsDeNB+tjyaxeqkZdPUf8Losl6f5IRHr64C8ByezNyL87/FdnEm2 CqsVhXUAln83feOe7hjpwwenw0OKPlnvzjmoJ0d0xtiWaEUug5XlfVO6xpR7eO6ticAh Ll28n6v2MksKayUA+1X5foBGEWv9lXtWt4To+D8IWQVGXTK3dwKGdmisxO4OpFlPKjxc +dBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rv10si1950369ejb.519.2020.04.15.16.15.10; Wed, 15 Apr 2020 16:15:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2409925AbgDOMaS (ORCPT + 99 others); Wed, 15 Apr 2020 08:30:18 -0400 Received: from mx2.suse.de ([195.135.220.15]:52318 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S369427AbgDOM3p (ORCPT ); Wed, 15 Apr 2020 08:29:45 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 7F854AC11; Wed, 15 Apr 2020 12:29:42 +0000 (UTC) Date: Wed, 15 Apr 2020 14:29:40 +0200 From: Joerg Roedel To: Lu Baolu Cc: Joerg Roedel , Will Deacon , Robin Murphy , Marek Szyprowski , Kukjin Kim , Krzysztof Kozlowski , David Woodhouse , Andy Gross , Bjorn Andersson , Matthias Brugger , Rob Clark , Heiko Stuebner , Gerald Schaefer , Thierry Reding , Jonathan Hunter , Jean-Philippe Brucker , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-s390@vger.kernel.org, linux-tegra@vger.kernel.org, virtualization@lists.linux-foundation.org Subject: Re: [PATCH v2 13/33] iommu: Export bus_iommu_probe() and make is safe for re-probing Message-ID: <20200415122940.GB21899@suse.de> References: <20200414131542.25608-1-joro@8bytes.org> <20200414131542.25608-14-joro@8bytes.org> <1853992c-47a6-3724-812c-a52558c13732@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1853992c-47a6-3724-812c-a52558c13732@linux.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Baolu, On Wed, Apr 15, 2020 at 02:10:03PM +0800, Lu Baolu wrote: > On 2020/4/14 21:15, Joerg Roedel wrote: > > > + /* Device is probed already if in a group */ > > + if (iommu_group_get(dev) != NULL) > > Same as > if (iommu_group_get(dev)) > ? > > By the way, do we need to put the group if device has already been > probed? Right, fixed both, thank you. Regards, Joerg