Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10725103imu; Thu, 6 Dec 2018 05:54:17 -0800 (PST) X-Google-Smtp-Source: AFSGD/V9NRqyhED4HYFll5bTiuFcmouk12M4weLPsx5ZraAVVOWaSbI9gQpNa2no4H5oslEdtPH1 X-Received: by 2002:a17:902:9a81:: with SMTP id w1mr27070203plp.19.1544104457036; Thu, 06 Dec 2018 05:54:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544104457; cv=none; d=google.com; s=arc-20160816; b=EY7p3l+i24y6hasHiBB1IJei89iY1xmuW7Z11nGeNbufbOKa3Sksr15REWi90mtVTR G4C7PBRiCwk/5L57hxVu7pYjHpH9MLSrPdxD8dH5lzJDLcbQ7knjfx8arPdj3Meujzzv vw2wBLIIDJRrFQxWqpGBdptwUvUIs4jahSHkJau6hziIo+/c1atG8aCKBo3lOHFpuuJS ++LtmTfKAOK1RDrLrzvCaSXxYiZ3uK6ydbPAxMBDmCoTzZ+JsF7uhVqO8jxJB2Xk/Z71 y/FkGiCkA7Y4ESpxX2M0OFfsMJooWra0/4JEJkUcA7tMmVve3RFYBvLYmR8JNydNZr73 Al9A== 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=yy6l/iRp9CrVfp/bbzPknHObJPMU6ENmX97ROOkaz6Y=; b=D/szDDhUV79cFimBPMBSMOn9Iv/SAmISb5o3YTyqxuqg+q0oNL2RFsHhAviH8j/KcZ 42grzboBZEr5V78l5n/7/zoEBPpXeJIwsoWjJxAiANJ+GvlXYjPP7Sn1fXKW0Sww11A5 1Nat2dnbwlEa4Uk9kkaMqRRyFS3GkY0PlKPTUhce7jkJsBVQVgAPFhJ/P0gu+v2N1j3d xrTL8lT1Fm6DYaiCJfbGkauEBlfDdtXZ2zubPGzhJWULibl7l7T1eKiytpepZ2DTmS7n 9/SmYFnNnr4lFBzl143Y2NI7OafCaZYK6/XgtM66dfRwsyl6MTUbp3++agfXOP0ti+oF WIZQ== ARC-Authentication-Results: i=1; mx.google.com; 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 t5si305324pgm.79.2018.12.06.05.54.00; Thu, 06 Dec 2018 05:54:16 -0800 (PST) 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; 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 S1728697AbeLFNxN (ORCPT + 99 others); Thu, 6 Dec 2018 08:53:13 -0500 Received: from mx2.suse.de ([195.135.220.15]:57180 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727685AbeLFNxM (ORCPT ); Thu, 6 Dec 2018 08:53:12 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id A4936AEBA; Thu, 6 Dec 2018 13:53:11 +0000 (UTC) Date: Thu, 6 Dec 2018 14:53:10 +0100 From: Joerg Roedel To: Robin Murphy Cc: Joerg Roedel , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/9] ACPI/IORT: Use helper functions to access dev->iommu_fwspec Message-ID: <20181206135310.lj5aiosr5ldno72g@suse.de> References: <20181204163002.15800-1-joro@8bytes.org> <20181204163002.15800-3-joro@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Robin, On Wed, Dec 05, 2018 at 05:50:23PM +0000, Robin Murphy wrote: > This needs to reload the new fwspec initialised by iort_iommu_xlate(), in > the same manner as the OF code. I think the best thing to do is encapsulate > the dev_iommu_fwspec_get() call in iort_fwspec_iommu_ops(), and have that > take dev as its argument directly. Yeah, that makes sense. I changed the patch this way. Thanks, Joerg