From patchwork Fri Oct 28 19:12:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 13024227 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 876EEC38A02 for ; Fri, 28 Oct 2022 19:13:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=rQvYHhZbRCCdEzsHBAwoQ3LBek9B5kwQC3AHUIH8otg=; b=dvesqTFJGzmkBh T+Lzsla9EVjy37ConAz2p4fcINn7BkamD/8bw4lWA+TyaAth4o/PmYvBmo+DjHGoXgzs0ayCpk/2n fUFO4nY8qC6GLzD2usbhHOuj20w15gKI54ZG5xZJ+k1TDLaBAommPf0ae5G1A02zWzD1IgXe6BfCx Z5vAR1A4QTsGk2WtHtxW1b2kihuE0k0tjDRYhqSfvgOl7GQOmvDo7tk515xA8L4mwmXVoXIVo8haz OecBSt0S7+dwWeD5sNRN4VuETUahhiNK6Mll7STHvRJjH+JfOMm9xhcJYvH7LPYOdGhi14lOr7blW ju//6uzo+VOg1s0i/v7Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ooUmj-001q6Y-3t; Fri, 28 Oct 2022 19:12:53 +0000 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ooUme-001q4H-Vm for linux-arm-kernel@lists.infradead.org; Fri, 28 Oct 2022 19:12:50 +0000 Received: by mail-ej1-x630.google.com with SMTP id kt23so15122520ejc.7 for ; Fri, 28 Oct 2022 12:12:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=KXpKlDaHcGP9aL2xwDRjvuf/ZwMUXVgeArUbFNz1VVw=; b=LSfBJW23LFoqUDPoE33wm7pBBscnRPehQlHh/GjsUbvvxRfa0TzP2oaoTqW4e9oJus Ng4CR7xtFl7DzRkeyl1BsZLqzKzLaTwNjTOObdHDgMGRt1MY3HMx7OgQseweWwcNRMBT xTpEwvfeBO6dCqun6ouMwpleX5jd6nqG1N6OC4V/Y5e7w0ccwRIFIPC0/qsrNSIS61on BwHjxDxDOe8sCOmNzh+XUBXjtJTAWum0G1TbHRaryVAZZt9mOXVjGFO8rEqYk3TJcT1R K8yyXR8Lo3GPRvbCWZs+/nS7wZLyru5Q8h0W0W91aTVjmmVcjxEaRVTcUeikaGlQWiUJ BXEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KXpKlDaHcGP9aL2xwDRjvuf/ZwMUXVgeArUbFNz1VVw=; b=8E2iE5NxaM5C7CZidOwoBjltVT8uhDFHsgYYeGOwDsTmtBGAATslpSgzadzjwhCStU IA7GLgeVwHdCpPkFqrA7AfWsL40Ief95nWVDwmC7DQEftl/6e4EMP/1R07AlvFHBM8dU 8dKQUGVpF2UO4WCQllykenLlKtjQPCS9FzalyCD3GLiC5cc/vXDFhDCuwSwzBziZUYJ3 KH3wMffgznTdgnL1XSar5PCDjMRFWt62qEY7lgsP7ohg/9YS2C2IgqQG9Tnk44DZOzOL aHjvnPfzhVXzf0zhqF4QYe7Pt2aR2o86vdgLPsTSphyiWD4hVXJOfWWwAqJeFiMND+pm SsKw== X-Gm-Message-State: ACrzQf20i/YDNIMJbtW+uGZSBAPeMcde/s682pCCXFj3H/3fC3WBW7+B +zN/fNyWhGJcFphRP62+ZdNGvA== X-Google-Smtp-Source: AMsMyM5MkZl53YFLn2UatfBLI+3bULVVllqhzGA402l1oTddZxFQiz6yVf7w7PtP3re7q0Po01Tv7Q== X-Received: by 2002:a17:907:1dc7:b0:7ad:83d5:6abd with SMTP id og7-20020a1709071dc700b007ad83d56abdmr755570ejc.412.1666984366090; Fri, 28 Oct 2022 12:12:46 -0700 (PDT) Received: from localhost (cgw.msart-bajzova4.ke.cust.o2bs.sk. [90.176.4.227]) by smtp.gmail.com with ESMTPSA id cd13-20020a170906b34d00b0077a1dd3e7b7sm2544787ejb.102.2022.10.28.12.12.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 12:12:45 -0700 (PDT) From: Sam Protsenko To: Marek Szyprowski , Krzysztof Kozlowski Cc: Joerg Roedel , Will Deacon , Robin Murphy , Sumit Semwal , Alim Akhtar , Janghyuck Kim , Cho KyongHo , Daniel Mentz , David Virag , iommu@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 0/4] iommu/exynos: Convert to module Date: Fri, 28 Oct 2022 21:12:39 +0200 Message-Id: <20221028191243.31721-1-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221028_121249_115401_FF99BD1A X-CRM114-Status: GOOD ( 11.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org As exynos-iommu driver is not a critical platform driver, it can be converted to loadable module, to avoid loading it on non-Exynos platforms in order to improve the RAM footprint. This patch series converts it to a module and does some related cleanups. IOMMU/DMA specifics were taken into the account, so remove/exit methods weren't added. Sam Protsenko (4): iommu: Export iommu_group_default_domain() API iommu/exynos: Fix retval on getting clocks in probe iommu/exynos: Modularize the driver iommu/exynos: Rearrange the platform driver code drivers/iommu/Kconfig | 2 +- drivers/iommu/exynos-iommu.c | 353 ++++++++++++++++++----------------- drivers/iommu/iommu.c | 1 + 3 files changed, 186 insertions(+), 170 deletions(-)