Message ID | 20220620163650.18756-7-stefan.herbrechtsmeier-oss@weidmueller.com |
---|---|
State | Accepted |
Commit | 18fcb49db51eaae58dc68f527c4880958ec5e3ca |
Delegated to: | Michal Simek |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=weidmueller.onmicrosoft.com header.i=@weidmueller.onmicrosoft.com header.a=rsa-sha256 header.s=selector1-weidmueller-onmicrosoft-com header.b=JAbJWS4k; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LRb1R0WDXz9sFx for <incoming@patchwork.ozlabs.org>; Tue, 21 Jun 2022 02:38:18 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4F965839E6; Mon, 20 Jun 2022 18:37:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=weidmueller.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=weidmueller.onmicrosoft.com header.i=@weidmueller.onmicrosoft.com header.b="JAbJWS4k"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1BEA283345; Mon, 20 Jun 2022 18:37:21 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FORGED_SPF_HELO,SPF_HELO_PASS,T_SCC_BODY_TEXT_LINE, T_SPF_PERMERROR autolearn=no autolearn_force=no version=3.4.2 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on061c.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe1e::61c]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E40E682072 for <u-boot@lists.denx.de>; Mon, 20 Jun 2022 18:37:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=weidmueller.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=stefan.herbrechtsmeier-oss@weidmueller.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kJKgo3tVhNYmMNxY3RqasuL3UGd6EOfl3dWZy2lkMzzue7EyetrDE1uBssDUclUNfDuJU/6IMr6G35tPHiFTvyFawAoY12kDtI6JryF+nyjBl8iCKS3SaxKND2OFwODBP52V7EB1TwDPmdMksKZ1nnbr8HqDkr8vH2q49ckFQDQS/VjRRCtArSf5ZivOg6U4gWZrsE//A9aoXnIQkhOwGGDC01GVx1EIB3tHCa4M5aTfmomT+8atO5bPEnLvBkk2YgfpLXeovAylYv65eLfjtckS2rfIf/aIa0GKcvamk/XOL5NhrxHDlaEZ/DW25jY8ROLEMDewfPNdMhDj6XuIDw== 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=p6/ALjxl4PZAY2r3ZA0QE94eNb/R945z7mcr/Wjht0c=; b=dbFrCgyJv4nzlNXPYUjMMpjNe+exjZFp21ghLUFdmFsbYBVZVIv3ZqxrCwN1v57CN5O1q09rM2NCXpQf9X+9LME3deBog2LVpK5DfsPEwAq0HF3ene9cbRotuhcRjFy9CszMB9OGxElHA/1i66LPmk4D3R1nrS4CtrJFgdrREsQBD2qg/Y8PnJXvDRPJg8lRUT+NnoADLekmggP07A4hU0g5gPPQi7cjtyMJjvGvGxZoYUiwUfcXWzyMSy8jDjzkz9QU1Y4EXsyOBcdxUV7sLOM9OdBq1EbjOlafpsU23E0JoGFv+irHLK3MZf0mZ/fGrS8FGZz9Mf3g1h3EmEx37Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=weidmueller.com; dmarc=pass action=none header.from=weidmueller.com; dkim=pass header.d=weidmueller.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=weidmueller.onmicrosoft.com; s=selector1-weidmueller-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=p6/ALjxl4PZAY2r3ZA0QE94eNb/R945z7mcr/Wjht0c=; b=JAbJWS4kuXdphFOF0apkG9JlT60bIofYYhezMZ/Ezo4ejazfaIgySCINRq1M+mIyAz+b1ib42RJRrtGB4XNE56dhE/jLzFTQQHIoRPP2FRkDKzHD01aizEOpEos0fwzkt5b+uFAYCPGF6L1EwJyFKH1VB/AAG90CHqC09Gl1+zw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=weidmueller.com; Received: from PAXPR08MB6969.eurprd08.prod.outlook.com (2603:10a6:102:1d8::23) by AM6PR08MB3928.eurprd08.prod.outlook.com (2603:10a6:20b:a9::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.18; Mon, 20 Jun 2022 16:37:16 +0000 Received: from PAXPR08MB6969.eurprd08.prod.outlook.com ([fe80::49a6:e5ff:7f94:8787]) by PAXPR08MB6969.eurprd08.prod.outlook.com ([fe80::49a6:e5ff:7f94:8787%7]) with mapi id 15.20.5353.022; Mon, 20 Jun 2022 16:37:16 +0000 From: Stefan Herbrechtsmeier <stefan.herbrechtsmeier-oss@weidmueller.com> To: u-boot@lists.denx.de, Michal Simek <michal.simek@amd.com> Cc: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Subject: [PATCH v2 07/15] soc: xilinx: zynqmp: Remove redundant checks for zynqmp_mmio_read Date: Mon, 20 Jun 2022 18:36:42 +0200 Message-Id: <20220620163650.18756-7-stefan.herbrechtsmeier-oss@weidmueller.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220620163650.18756-1-stefan.herbrechtsmeier-oss@weidmueller.com> References: <20220620163650.18756-1-stefan.herbrechtsmeier-oss@weidmueller.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: AS9PR06CA0560.eurprd06.prod.outlook.com (2603:10a6:20b:485::10) To PAXPR08MB6969.eurprd08.prod.outlook.com (2603:10a6:102:1d8::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ba4cd5a9-0977-4da0-a5ed-08da52db2317 X-MS-TrafficTypeDiagnostic: AM6PR08MB3928:EE_ X-Microsoft-Antispam-PRVS: <AM6PR08MB39288BBFCC43A95E4D87C6DFD7B09@AM6PR08MB3928.eurprd08.prod.outlook.com> X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DF/Bc37TazetMf/7hxbVv9UjNm1zhhHn5u4Vk6pBvN/Qd1SEgRVzfz4oI6D6SYkqMIG2z1R4jy9p52gHEOxd1Eh2iiUSbBDrpVfT78mbJCFPme2+2DZw8qu5wenRsEyW8JwGnEX98XAQbcLKcLz7T6UX8bzjO5+J2dOHQERx7reT3Al+uSa4sEGWWH7Mn2DmbxX+oMedEoXzXou4Xa6BeIahggR4IbBnd4pU25AgWKAR5Fwp0jGhOTL6vcB/fVWghJNgbD0i/7c6QyCe7OahdHIUrOhkFtP4CVfxLYdows04u9lEXukdZQqOyNl1g4T0kC4Kd30bq6Otl1LTcqRw4OwrLIhvh+ISbsBwXKhKJSBjLNY0bFgS9ku29kcQVIHayYtfvFIMnmTUwRNS6uoxWtGQHm/ZLoGN9BIJgJtS5ToDJgjjZiZf20mcVNGyAuasb4LmQFgneZpsGZ5fgDEaNDBUxe0PeGQpCCED1gSamEqOtF/qVpIaFiSfeHzVionPrkDWX9KsNL9Rto6chdWhmQdYrv7qQKao40pvDymbXmv7whZLj2nAV3hBj9dZIMGsCq0hJkYtHR/xotoSmvlsv21Td7B0VKcm8YPUmhIete3EfIJwiKwZTqidCxieC44fGiHIuR/qE4H44s2hwAc9GYdMuVj77e03gZqC9Zxiez23zPoaovNxGNatr/7H0PatCxUQgHuf4xWVcCYM4wUVJw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR08MB6969.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(346002)(136003)(376002)(366004)(396003)(39860400002)(4744005)(66476007)(6506007)(66556008)(8936002)(4326008)(6486002)(1076003)(6916009)(478600001)(8676002)(316002)(66946007)(2616005)(5660300002)(186003)(38350700002)(41300700001)(107886003)(6666004)(36756003)(2906002)(83380400001)(38100700002)(6512007)(26005)(52116002)(86362001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: EkYLX9O+XIzLKe/pcKS07tkv2D5V1QSjEP0Mix2MpvRpneXbEKVxGKv2D6zKNBkl7kXyebaQ364iODGxI9Nyk/vIEm64hS8CiJk8AwsfkXE6S9vCG2dgSeEsuZ3Fg/cTp3+gTsy6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eeM7dIUDVXJ23e5TcS20Sesxn81RGD2kL2fXs70E32AwjOHH4bjS/3MTSD5r2nnnExT/fAddi4TOeUvP33yNvJWsUzSWBqtqhX2Sv59s51eFaZl8NiL/u8riq6DoKtn0X9wEN7QPjcv7ip1tI+kTR9TsjGB8EBa/uWGTVCbfYFa+CVyEmo8J1CgD9dM/3vJtUISHxHIgVKZzu3bbqy7HjYkAdk/n1W3T36Nsmgr6RDTrBiLtl6CUQ5WxsBTn4mcds6a8pCVnk+OPDkWoBlqTSdBzuRHm9TBkzIMwflx1fYr0ZYKnxvJtyo4mzkdth4kVkXdVfOUoi7LpKlCPtJcw+Py5coF7XUAxs+J9HRbAYAZeTfmmv2a2tsjHiGpcKpHbmcA1kZCUZzIkc7qNG6Zh3ZeaKoRhstjhgOUdfxEEIAVXUNhp17Vx0PCf6Z6pLtbNo6ll0Dn0YuDkEbwsPcfGNFwPD47qrOi7HeXzwHy/D6SF5HnDzSfLVY5nmYnxDTRZ+WkMKMfphQMjTPRCywMiPyo/Hvt9xi+vQdXpBegB3yI= X-OriginatorOrg: weidmueller.com X-MS-Exchange-CrossTenant-Network-Message-Id: ba4cd5a9-0977-4da0-a5ed-08da52db2317 X-MS-Exchange-CrossTenant-AuthSource: PAXPR08MB6969.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2022 16:37:16.8757 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e4289438-1c5f-4c95-a51a-ee553b8b18ec X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: MX4Yu3HXe9K+T8QOafA22PWdmTD3dDWznpw0YumcdwX+OKJ+EQt8bVQCBKVS+uc3vdyekxprsIn97GD1+U+cQQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB3928 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean |
Series |
[v2,01/15] firmware: zynqmp: Check if rx channel dev pointer is valid
|
expand
|
diff --git a/drivers/soc/soc_xilinx_zynqmp.c b/drivers/soc/soc_xilinx_zynqmp.c index a71115b17c..563d93da24 100644 --- a/drivers/soc/soc_xilinx_zynqmp.c +++ b/drivers/soc/soc_xilinx_zynqmp.c @@ -54,8 +54,7 @@ static int soc_xilinx_zynqmp_probe(struct udevice *dev) priv->family = zynqmp_family; - if (IS_ENABLED(CONFIG_SPL_BUILD) || current_el() == 3 || - !IS_ENABLED(CONFIG_ZYNQMP_FIRMWARE)) + if (!IS_ENABLED(CONFIG_ZYNQMP_FIRMWARE)) ret = zynqmp_mmio_read(ZYNQMP_PS_VERSION, &ret_payload[2]); else ret = xilinx_pm_request(PM_GET_CHIPID, 0, 0, 0, 0,