Message ID | 20230705130416.46710-3-frank.li@vivo.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1865735vqx; Wed, 5 Jul 2023 06:22:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ57kTUj8z70ta0nyH/TD3kIsNOZw5x4BLp+80btHSET7hnyLqpZQi3x//7q2rRTDGBh3VSa X-Received: by 2002:a05:6808:1786:b0:39e:df4f:e68f with SMTP id bg6-20020a056808178600b0039edf4fe68fmr16719018oib.6.1688563336244; Wed, 05 Jul 2023 06:22:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688563336; cv=pass; d=google.com; s=arc-20160816; b=xhWWC/ZXyPLIr4VzJ05pLzYtAKflSpDRNSMcCg5TVyyrUEknx0/s7L3NNR/lfKrSZE HbaFTLb2SUV3j+zGG8gy8+9ia5c0oV1Q0A6+i4FHKgLodCW6qXA6PvjGZizoxcnPqgcu T4z2QPjou7QBxWNgaMMA5foLI/cI5E3dmmlC/+/6CWFtMy6g98OsT0LmrO9PRv8HsmMk mjhF+4yP6yYDs7XwADLeyp6eKCHE4KIWPbKn5TZ685F59CgsEqa/PRb5xTK/LvUOQUxJ YzTFEUgGFc8AuQmCLflQ5Ikt40/64zSNqSJIEBKNY3MB4l3mWL668lOJjxYBCJ/sPuUq 2DOQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=v2vDKdTnYEZ2BkR7gpe8HiidFcsF9ao4hHyBZX9JBic=; fh=ToHs2YdO86XnoGUFT0TnFHGvycWAf+fUWFtvvtfr4uE=; b=apVXdxaCTnaI2f2Q/Ecla2wyUkxE9Xrnt8HeA2Hxuiemx0WgjiYdcaEG9tUo+J8PO4 z8/v8VGGrFWrwhTxLivtiKdRAyT2LwIRVJpIZgf9W3BgLeoGRbvVscMfQs7EH+sFE3TL HU3ptMesEvgzd+XXBT9gTeymeyDaXWbxK2zvvKPAPgVZS1KNToeLI0UH4Ee27Az/cQqA gODtCFNZU6GNPrheWxkyMbxX/hEN0KMTPE/xxEx39hd7Dnm1xAYR+0yP2EDX38qG/e9p ER/D32APtASv5/fFtUZxvSp2MO9MV076mRlrWk2X/bqCY7jydymfL0hOW8Vf8eq7+rZu riCQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=C4SgY0eP; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n188-20020a6327c5000000b005536fc5187asi22620989pgn.47.2023.07.05.06.22.00; Wed, 05 Jul 2023 06:22:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=C4SgY0eP; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232125AbjGENEj (ORCPT <rfc822;tebrre53rla2o@gmail.com> + 99 others); Wed, 5 Jul 2023 09:04:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231204AbjGENEh (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 5 Jul 2023 09:04:37 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2102.outbound.protection.outlook.com [40.107.215.102]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 031DCE3; Wed, 5 Jul 2023 06:04:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hsRP8ff67lywLfBG+T5ZDDY+h2CljiS+Ib0A08t8wUR/bQvsjaQhL5QZ+QIRTmcJ+Yc3XMLiYDbmB9gt8sdgbapr24CaQOnnWQvd3aoj9gIc9qRHlgBlbLCfneLZDq3pmgiNwIsUGjBoImjT1/q8rtwGxj5mu8ysA7za0wWpw3fvjJWtoVStyfA3Uo+YNmgRZXOgjSw922LNeAdy+6KUZojHoe3ukyeMI+m3ctkTst5zJL/6aXOjfDw1z8UPOcdGzFKizRoDGkxVN/Mzl3RMbIySMuXfU3R3h+P9oYAF20F3zXqVt2oDMVQi+eV0vAMkV3EAwFfZpLO3BQ9AHuCtCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=v2vDKdTnYEZ2BkR7gpe8HiidFcsF9ao4hHyBZX9JBic=; b=A6ufcOMdqPrkYJ+YyJfqhGHOgyUfeVAZWIsZ624EjFcHmDJTeEeNaHPI6ejCwLEK0rutWVjE7KnGK6RcSFGvuGl2Zsw+gbEEU/nTKh9PIs7/37by4vdIwryBks4T5ZvTtSp4TVJjCneS/Y4IURuElU/ikBzWjUiRhdmjsnEn8nlMZjb9Zbp6y7Y5IwhKgwTxCxQbKzDKMwP5YedHc3nq1CjdifVqL45hw2ENwufZxpCaMpkNEyUqI9MVYWOhJuHhBujV0yItsJV9MEfc97UIs0PoJlxD4TcXJFterJ81AOsn6xKwM2G6uGWdH/OV5xwoBGBDK5W6cFYZaC8t5Jkigg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=v2vDKdTnYEZ2BkR7gpe8HiidFcsF9ao4hHyBZX9JBic=; b=C4SgY0ePnzHpVPIKcLrIwFdLEIDZB4G50b2gFAW+i5s40JosCvHq/yb8nVdCo2EoF3tZTcUhN7CfaR6hNExgVsnusn8hZ042SdYqHqcqeXtm4fQX7YNfOLdOVDA+RTE7P+Dp9VEV173Zn0OmTgBWTu/G2U5wMz2KAYVx3pWNCTKMt60IplVvla2Rnevl+wqWBRDfYfLyidEaUTA2BRd6k8HRVQZKPcDRvAsobhagn2uBqCBjhhsuxhiNBzzoFxpCAsX4YuPIu58BMReTgv/DNIrofsZGBHB37FGy/DBVQdKYShC2PEtzgQFTcKGxQqqCVK1x7VJ71F5E1WP5Tbv1Ug== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by SEYPR06MB5891.apcprd06.prod.outlook.com (2603:1096:101:d4::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Wed, 5 Jul 2023 13:04:31 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%5]) with mapi id 15.20.6565.016; Wed, 5 Jul 2023 13:04:31 +0000 From: Yangtao Li <frank.li@vivo.com> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Joerg Roedel <joro@8bytes.org>, Will Deacon <will@kernel.org>, Robin Murphy <robin.murphy@arm.com> Cc: Yangtao Li <frank.li@vivo.com>, linux-arm-msm@vger.kernel.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 3/6] iommu/msm: do some cleanup Date: Wed, 5 Jul 2023 21:04:13 +0800 Message-Id: <20230705130416.46710-3-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230705130416.46710-1-frank.li@vivo.com> References: <20230705130416.46710-1-frank.li@vivo.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI1PR02CA0057.apcprd02.prod.outlook.com (2603:1096:4:1f5::10) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEYPR06MB5891:EE_ X-MS-Office365-Filtering-Correlation-Id: 1070cd5f-4988-488a-7464-08db7d585f5f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nqOmhLZe1CiQ9ZIFG1ZlOZjtBhiot6PcGs8zqcZZXRIJK0gjfiwBtzkBJCVAD9BziHih8kOEpRqhDvKYCnoF4zEPILx+ZTPlmMVw/o6ouPUlsSzgImK4p3mv+SFWaTSucCwwSXba2lcZ83n7xzZvEFSqPmC+8v4VzPcxEA1I7CfnrOHvsL3vRT9Bvb95JifdmwgOln0ckmVuTeAlV8o6lp4whuVN6eLJ99VrELE+OzbI27P18EtKOZjSkZVWMJgW7p41FPfAek2RK1M2Rgp81fBphN84F7qeEwx6WKFw+qOec2FppvOrbYo2YV8w2nRTC3+xAK4KYC+Al5OBP9ltxJIHWrzsGmKp4IE+IyousrfpR7Zsl4fiMww5oW+yp9vcMTOOQN8zrY7hDdU2h9L22a2VD8lWZJFvhIleRhQRmeHOQij+U+adimG6ts3VUMLVzGGBuAG3PQ7cFEX3YgsGy5Nov2a+u3PCP6x0lsUneADgWv4fOVNVf3R9lAEudecOQ2b88KtQMiK6eUG5Oy4/8jZ27Iv6ozpiLZvh/Bvj0qa62knMOyzrtTOLDuYtzlWF41aDDpQzGJTXCAF/qSYegPM53Jl/a0+HVuZ2s+0+al7scKCA3I7QXDm7Kefik+wp X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(366004)(346002)(136003)(39860400002)(376002)(451199021)(478600001)(52116002)(6486002)(6666004)(110136005)(66946007)(186003)(6506007)(1076003)(26005)(6512007)(66556008)(2906002)(41300700001)(4326008)(66476007)(316002)(5660300002)(8936002)(8676002)(38100700002)(38350700002)(86362001)(36756003)(83380400001)(2616005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: pIYm9A7JBM8BC/Mv+30WTXXq5+3g5Erajf/fgcvaqBAqzioWgWNKkztSHQ29FszaXf9Du76hIREw20bo3lgDctB2goGaCNYypSpn27Bn1caYvEdVUJFxKUqZv5WhvZvfDoIu41ArEgunosWmyIV9JTrq/LzP6201zJXzPByAO6LDUO2Qha2zCg2HhViqcpz8eArkf+D4XvlL9VoY8ZTRoJVG9rlmHtK8FAFWkpPILpJIQGFzm5k/T2OK8OtQI8mYW/2j1RxlSpYYlogcqjVTnFoQXpEoCpqKHhMRB8Rz/R3QyqQr4nwgM8FKJrjcl50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s8EV85b30xF4ZRgBP+MSEmZ2HJX8BdqZblw99Mzo0GzeFukGOKt8f7/0outtif4y7MCYkasQRWgAZZvsJgOPllL3E1FX17f6g1dRo+O8bhVTJzizAa8SF9KMJ63tknmP1IPOsOjiPcFN24ixm/xb56n6LqfgSGzZ2bzFrFsNKfqHIs7fgrE+7lnFcHAea9cdSEu X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1070cd5f-4988-488a-7464-08db7d585f5f X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2023 13:04:31.5840 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: jvuy1nYgDe9VEGZ7Z5FfJaDK7LBZh283gZxMoG8eSYbkhz1RCHvg8P7dm1UIutw9TB9ULIbNSYH13B7N9OUejw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB5891 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770586989137279444?= X-GMAIL-MSGID: =?utf-8?q?1770586989137279444?= |
Series |
[1/6] iommu/arm-smmu: do some cleanup
|
|
Commit Message
李扬韬
July 5, 2023, 1:04 p.m. UTC
Convert to devm_platform_get_and_ioremap_resource(), remove redundant msg
and fix return value when platform_get_irq fails.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/iommu/msm_iommu.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/iommu/msm_iommu.c b/drivers/iommu/msm_iommu.c index 79d89bad5132..349b46b4b714 100644 --- a/drivers/iommu/msm_iommu.c +++ b/drivers/iommu/msm_iommu.c @@ -735,17 +735,16 @@ static int msm_iommu_probe(struct platform_device *pdev) return dev_err_probe(iommu->dev, ret, "could not prepare iommu_clk\n"); } - r = platform_get_resource(pdev, IORESOURCE_MEM, 0); - iommu->base = devm_ioremap_resource(iommu->dev, r); + iommu->base = devm_platform_get_and_ioremap_resource(pdev, 0, &r); if (IS_ERR(iommu->base)) { - ret = dev_err_probe(iommu->dev, PTR_ERR(iommu->base), "could not get iommu base\n"); + ret = PTR_ERR(iommu->base); goto fail; } ioaddr = r->start; iommu->irq = platform_get_irq(pdev, 0); if (iommu->irq < 0) { - ret = -ENODEV; + ret = iommu->irq; goto fail; }