Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752275AbeAQHTk (ORCPT + 1 other); Wed, 17 Jan 2018 02:19:40 -0500 Received: from mail-vk0-f48.google.com ([209.85.213.48]:33826 "EHLO mail-vk0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751019AbeAQHTj (ORCPT ); Wed, 17 Jan 2018 02:19:39 -0500 X-Google-Smtp-Source: ACJfBovXTVa4zO/Bf0wBNrnBizSCVuNLypxIfDJptZLWIjwQ+Cr+kuMYaEKx5kM6KRbSsHpUNLvM1g== MIME-Version: 1.0 In-Reply-To: <5A5EF7D3.90405@rock-chips.com> References: <20180116132540.18939-1-jeffy.chen@rock-chips.com> <20180116132540.18939-6-jeffy.chen@rock-chips.com> <5A5EF7D3.90405@rock-chips.com> From: Tomasz Figa Date: Wed, 17 Jan 2018 16:19:16 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 05/13] iommu/rockchip: Fix error handling in init To: JeffyChen Cc: linux-kernel@vger.kernel.org, Ricky Liang , Robin Murphy , simon xue , Heiko Stuebner , "open list:ARM/Rockchip SoC..." , open@263.net, "list@263.net:IOMMU DRIVERS , Joerg Roedel ," Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Wed, Jan 17, 2018 at 4:14 PM, JeffyChen wrote: > Hi Tomasz, > > On 01/17/2018 01:26 PM, Tomasz Figa wrote: >> >> On Tue, Jan 16, 2018 at 10:25 PM, Jeffy Chen >> wrote: >>> >>> It's hard to undo bus_set_iommu() in the error path, so move it to the >>> end of rk_iommu_probe(). >> >> >> Does this work fine now? I remember we used to need this called in an >> early initcall for all the ARM/ARM64 DMA stuff to work. >> > yes, i think it works now, i saw there are some other iommu drivers also do > this(arm-smmu-v3, mtk_iommu) :) Okay, if so: Reviewed-by: Tomasz Figa Best regards, Tomasz P.S. Looks like your email client is set to HTML messages. Your messages might end up dropped from the mailing list.