From patchwork Tue Feb 8 14:59:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Tudor X-Patchwork-Id: 12738840 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 87E64C433EF for ; Tue, 8 Feb 2022 15:02:00 +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=RYPlRcow7iyLOMsBgB3GomY8HLh2P7oqMAhlNTpHJRE=; b=vh6h2Nd0FLGGYJ EI+BI+AwwwvURM/SIz2TbBOIhnI3MUHsV2HdJjoOxkH1pagpX8QyvC2RxGOlSZl2IB+ALkwr91ZI8 0RnfuOVjn+XEUwUDIOn0s5hDgcBm9YhByE9N9O5XONX3hkxArkTSOUp9UEzj8K26pEFxd4hzsg+Yx Zocc6Mm938Y0vFnqnEx0FIEcZWso7bq3Q3IxO2rnf6IcqkR79DZD7Mp/eoncSAJZP7gyIoyMQ9xC0 1gVfudv10bMoTAdHWiSW1GRHqiYUhyctGpLuYjw2pgwT6puAh0vE4fDeIB5ik10aDuXXODhlizlLp AwuDVO72cm6VHUuoaUww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nHRyY-00ELr5-2h; Tue, 08 Feb 2022 15:00:15 +0000 Received: from mail-eopbgr30046.outbound.protection.outlook.com ([40.107.3.46] helo=EUR03-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nHRy8-00ELgd-Ts for linux-arm-kernel@lists.infradead.org; Tue, 08 Feb 2022 14:59:50 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ewc7whPqoaQYOO36XBLg7UhkWCgW0XyKKoh/+8/Qf3kNH/brdh/jeRUgxXtEqDa64iAhX0LQW7n/xo+x/O4PcdWjdsCLn2uR6Yveqh2x5/dxMOOewRLMlCmiYasKM6ki0DBmVMLJGyWF78VR78ba5VqnGJtQIZTWvaDzJ4ets/yekOWXmoHB7pFsFRe4lP0jE/4t2LtUbeGSf/LtCx9MAxgUjTflmEpV8l2F2KmqEQkAzwMpWJqyxr8Il0n7FppaQ+xkOHflUXzd9l7vrTM9wYlzSW7m2TYiQXU9GTGGAKdIBnecTyIhr8Ss2uet1YV4QFQSSWMd0QFgAg86ut90fw== 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=GKFQR0hA8rDXqDC5X7c0kl6i1a652gZ0b4wH8tJcUTA=; b=Jz7lm4P4FrWnuqtKJXP01IOZRov5infK0Pmz19D4qzp3xVcIehKNg6vm3Su+c9I9rtiED6n1oveR5jFOnCUEcdHD/mnIIpBMvzHPVnJDRAe3fJvugi4EEM3mWtj3cOTpc+ZH+VPFm+vt15hP2PLohHsnvR6cSwv8ntfCm5/gruwB+auFxMWxy8h5Px21xzVwrlAviU1e4yOMgM/QQBmJgNlM4BodlJvof/rutVAHduptdQfEP9//toxL+QnPK16WuRjrUR6fFa90dSIbJKLxCVtsEgKzxTbnuSt5qd9GTNe4wa89GwNUAjIm8FOoPjSJnMZ0MZLcd1NaocDPxPS6FA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GKFQR0hA8rDXqDC5X7c0kl6i1a652gZ0b4wH8tJcUTA=; b=JW4sQ3dAS0mEcW+qYlaMp4qh0Uhh1+Lg+priEJTvY7IX6Smw+G12qZrX2OJTBmPpAM4dsNAMMtKlA5CJ7Z7a8fde/vGwoU92v4nT5B3gY1NxX4zg2y1B+d1AKfImlJUf6XFzf4qLH9BmAfLQnMYna5du2kxtVRC9/Y1AV0Te1IM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from VI1PR0402MB3405.eurprd04.prod.outlook.com (2603:10a6:803:3::26) by HE1PR04MB3018.eurprd04.prod.outlook.com (2603:10a6:7:1f::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.19; Tue, 8 Feb 2022 14:59:38 +0000 Received: from VI1PR0402MB3405.eurprd04.prod.outlook.com ([fe80::f826:3bf6:b77d:5a53]) by VI1PR0402MB3405.eurprd04.prod.outlook.com ([fe80::f826:3bf6:b77d:5a53%7]) with mapi id 15.20.4951.019; Tue, 8 Feb 2022 14:59:38 +0000 From: laurentiu.tudor@nxp.com To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: ioana.ciornei@nxp.com, diana.craciun@oss.nxp.com, jon@solid-run.com, Laurentiu Tudor Subject: [PATCH 0/6] bus: fsl-mc: fixes and .shutdown() op for dprc driver Date: Tue, 8 Feb 2022 16:59:22 +0200 Message-Id: <20220208145928.12468-1-laurentiu.tudor@nxp.com> X-Mailer: git-send-email 2.17.1 X-ClientProxiedBy: AM0PR08CA0025.eurprd08.prod.outlook.com (2603:10a6:208:d2::38) To VI1PR0402MB3405.eurprd04.prod.outlook.com (2603:10a6:803:3::26) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4061f29b-2a8c-4bca-19c5-08d9eb13a069 X-MS-TrafficTypeDiagnostic: HE1PR04MB3018:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9ip5LeGO94C0gDJkxTbhcFvTEZlGF9nWMPohnd8k4n4aeuHzqrlLaPJU6+aKcmFuIQ6Xw0HH81Szqu5cLFYsYecvAi1oNwOs7e2Y63oAgeDIV3Vg3ipzk0oEi6Y0pkNQfGLvN+BBtCbENDVKMv0VJTI0SzRIu3OiKdiAF4dJYWxogvZL1xe3gzwcNcUVI8+wZFFyHG/n/VPWM9Et4UJVBDXJc5mTnYdHDCdpF4flYKMgK9KhTMyOdfmIrt3boLc2hC4luMhipKGc+aRziWLdIclse/4C7pwhZ3NlLi5sSdDQJaBfVYmYbq1o1hMzF4aEt1akIzZrwQUWC1xxf5eUjfp0c49RE3uyapNhcws98ZmvO6k56+URQ6sqLaenc/DRAyVjpS01iFQcFPKBdtJ63iE0k0dGkbYMPkkAp48ApFChT06tjEMZee4pbXXor221QRVajzXUJk6gFPuwoPoLLKgoqjcwJpS1HjatKO1XClvy6FNSmEBRFLUrzIWefb+YYhU46kBov/5gbCk3/Jq9DhrYRDyv5yNNcnVSfVVKqmx5S9xBAYGDdWbaLAEGX5zLQgwDVvQKSxjjqWgxWH2VJyex9TVw6pBX8jlTrb2Rud8Ajh90TiaoMyuM26ib7WaFhPdjHYBaa1umHemR6WYgvcgidwKlRBPiOlmI2Q5IzWHg79gUCLV1UUgKnJY5GqKqYSgGyYuH+ZmsOkBwuQGfOPlFYZxlAtZchnY0nd+YBx0= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0402MB3405.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(2616005)(6666004)(66476007)(316002)(9686003)(66556008)(508600001)(52116002)(4744005)(186003)(6506007)(2906002)(6512007)(1076003)(26005)(5660300002)(6486002)(8676002)(66946007)(4326008)(86362001)(36756003)(83380400001)(8936002)(38350700002)(38100700002)(142923001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: zd4aV3eKn+u3JFkIY0qRMNURENJI2wNcTQFv9MTmNwYunYq45bCxwVcsOkRXXnCBwbG/1Q7rjeFLSoVbSJ7T3icxk1xrwn3gqBdvXHlsuvEbjdDB478NzdP3ov0xISny0rjSM7gkp2V1dsXvpcQu7rD0GeI7EXL/wJ7WcnfPda2DCiGAj8HbqQ9Hkt6KFAdaBfhcEUWrnTkxyoq75grCnExSFZFqKJYCbl/ehK/basGLAuSB3zPAGtuGESSZf8KCStJdQ8LJaOh3dUskMFhdE8zuJUsbJgtWF6cbX2ywmueEDrg09NuZVPBLI4+zacD2oJIM/Bu4SrHG67uQjqopzOwBZNza8Y84MKjBYRs0sm/5/6r2BrZ/aOHLkUh+F9eBz4cp34drRoc3wjlEYlvgMgVo8gL7cOZ8ud1d+AK4XRpkwnSuLzLyBuW0RGCw2g0CW7Ax5/B9wm1fX7dq3997uXxEEg6cLC9SmFQ5m0Jy2FBBdWWmY5J+9D655Od/bWYjTZRKNmyu9KgumiTUnLAPXGmLWGAsG+nN+wwVNu9+w6oAYCYILolAjOAvrWDVP9GnL+q4ClMYJ219yBQnuTuUsY4WH1bP/o3YlLVt2IdNMVXEZ/oA6+43I7FNLA/MHh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rossTenant-AuthSource: VI1PR0402MB3405.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Feb 2022 14:59:38.0596 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: +GzsLnX7yihGxXBq7omp0fSHfGh6ph2A09A0SjbTbl80vlbppvAm0MuzhxJ6yTgS98q3s0e5UsFWit/+nNsE8w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR04MB3018 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220208_065949_000945_B735C3A9 X-CRM114-Status: UNSURE ( 8.17 ) X-CRM114-Notice: Please train this message. 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 From: Laurentiu Tudor The patch series addresses various issues showing up on DPAA2 driver bring down, fixing scenarios such as kexec, bind/unbind and halt/reboot. Most notable change is the addition of the .shutdown() op for the DPRC driver. Laurentiu Tudor (6): bus: fsl-mc: drop useless cleanup bus: fsl-mc: fix a use-after-free issue bus: fsl-mc: fix double free of the root DPRC fsl-mc device bus: fsl-mc: check for null irq array bus: fsl-mc: move uapi misc dev create/remove in probe and remove bus: fsl-mc: add .shutdown() op for DPRC driver drivers/bus/fsl-mc/dprc-driver.c | 61 ++++++++++++++++++++------- drivers/bus/fsl-mc/fsl-mc-allocator.c | 24 ----------- drivers/bus/fsl-mc/fsl-mc-bus.c | 34 +++++++++------ drivers/bus/fsl-mc/fsl-mc-private.h | 2 - 4 files changed, 67 insertions(+), 54 deletions(-) Reviewed-by: Ioana Ciornei Reviewed-by: Diana Craciun