Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751038AbeAQF1H (ORCPT + 1 other); Wed, 17 Jan 2018 00:27:07 -0500 Received: from mail-ua0-f170.google.com ([209.85.217.170]:34019 "EHLO mail-ua0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750810AbeAQF1G (ORCPT ); Wed, 17 Jan 2018 00:27:06 -0500 X-Google-Smtp-Source: ACJfBot9Irxb5Imu0jU88kzPpku3vthogE8v2398CuwPOcUjRKkogJnjlG1jd+lv5qcs65pJ2gd8dg== MIME-Version: 1.0 In-Reply-To: <20180116132540.18939-6-jeffy.chen@rock-chips.com> References: <20180116132540.18939-1-jeffy.chen@rock-chips.com> <20180116132540.18939-6-jeffy.chen@rock-chips.com> From: Tomasz Figa Date: Wed, 17 Jan 2018 14:26:43 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 05/13] iommu/rockchip: Fix error handling in init To: Jeffy Chen Cc: linux-kernel@vger.kernel.org, Ricky Liang , Robin Murphy , simon xue , Heiko Stuebner , "open list:ARM/Rockchip SoC..." , "open list:IOMMU DRIVERS" , Joerg Roedel , linux-arm-kernel@lists.infradead.org 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 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. Best regards, Tomasz