From patchwork Thu Dec 22 19:14:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 3237 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp122763wrn; Thu, 22 Dec 2022 11:20:00 -0800 (PST) X-Google-Smtp-Source: AMrXdXsrFWGci0tDTPsPwMNDQCugr/n78GIhqLOk4Vp6mTiJ+9clcsga0E7zIZVmfpAoIi3FpIIC X-Received: by 2002:a17:903:22cf:b0:189:ad19:dd11 with SMTP id y15-20020a17090322cf00b00189ad19dd11mr9522147plg.46.1671736800167; Thu, 22 Dec 2022 11:20:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671736800; cv=none; d=google.com; s=arc-20160816; b=RgDBRi2fVeMT8/S2hmHLE0PtpIaYXNcHZpZprRwIJ+QgcsfqypOnk/z128R33UgHnW LENLj311sjBsxV0sd/KBLZJ3xF5iBEERb/sD4Dyh8mf5yLtHc+sAwIpZHzvRY4Q/vycp 60WVVLclsBjDhGDbnuhiBLRyF14ApYfSMbIRpftbEtGPmA0IXLj5rrnRGGEfWYfbC2UB wFThiFqL2kh9qkp3xvUDdE+bsOwiQsZagIqwPmLvSUqT52ZeHYxJi5Ws302fZjmizVwM kRiDXSo5M92zvy47OgluZAai0TnKl+2Lr5HRApG7TVXDE9W2ZPBbfSf6PFs1tgTcA7qD +aEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=NfNIGs82Lum7QZ9kjkNH1Ejtf47dgxlmC+FfX29wdO4=; b=hmFvFKiXdgaovOH10+K/eEh0l8GoBd/V5MJcq7WcmvA55oM3kytlMZHvqdockcTnOA 6tbtfghXguvilqexwB6uZ/W9CsH4pOkbQmgfyCe8PAeJv1zdOhLAmVhv+++1l1ECxKAv 64lHer3z7hbAeam4ZHfBbFtiq6zWwTpbrJRTQ2HGX2DGAlGRWPhf8E6L8iHtMy3oAZIM ZDlIQWzC/+0M9yYme3yVgh8Fj6kDDTXS8XQH2AwBEiHFndHNUUZrfrDibCQnYJ0FbpI7 l7ITnD38mIOTdQbfHcq9FjSHQv4hKA96Fb/YYvN/fTVOu//35ronVzKcItP71bEQli+J Uh8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=WLz96d20; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ik13-20020a170902ab0d00b0017ef8bf8a91si1222279plb.439.2022.12.22.11.19.47; Thu, 22 Dec 2022 11:20:00 -0800 (PST) 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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=WLz96d20; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235039AbiLVTPV (ORCPT + 99 others); Thu, 22 Dec 2022 14:15:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229843AbiLVTPR (ORCPT ); Thu, 22 Dec 2022 14:15:17 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31CE327CD8; Thu, 22 Dec 2022 11:15:15 -0800 (PST) Received: from umang.jainideasonboard.com (unknown [IPv6:2401:4900:1f3f:d076:4da6:b729:f032:ed0a]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 1C1F7471; Thu, 22 Dec 2022 20:15:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1671736512; bh=YxPVSern8c6BOEbRmDUoR5qKPKTaeKpaIusaimppST4=; h=From:To:Cc:Subject:Date:From; b=WLz96d20tboBXh4/SZ/mHDETiyar8Zei97l2GZiDWT7ud/bfHm0LqXhECgTmRGMUH HITUHkf9W54ihP0lIBKDgsVM9aPgTJVu65qxQqPb9n83lJDgJmQpMSu3KqOttrFl3k VdAQ5qRiJDzYFoCRGzk0E7pIK9OfljNF6YEHWaCA= From: Umang Jain To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org Cc: Greg Kroah-Hartman , Adrien Thierry , Stefan Wahren , Florian Fainelli , Dan Carpenter , Nicolas Saenz Julienne , Phil Elwell , Dave Stevenson , Kieran Bingham , Laurent Pinchart , Umang Jain Subject: [PATCH v2 0/4] staging: vchiq: Rework child platform device (un)register Date: Fri, 23 Dec 2022 00:44:56 +0530 Message-Id: <20221222191500.515795-1-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752943086651139892?= X-GMAIL-MSGID: =?utf-8?q?1752943086651139892?= V2 series for addressing the TODO item: "Get rid of all non essential global structures and create a proper per device structure" This series: - Fixes a platform device leak (1/4) - Simplifies vchiq_register_child (2/4 and 3/4) - drops global references for child platform devices and prepares for addition of new child devices in future (4/4) v1: https://lore.kernel.org/all/20221220084404.19280-1-umang.jain@ideasonboard.com/ Umang Jain (4): staging: vc04_services: Stop leaking platform device on error path staging: vchiq: Do not assign default dma_mask explicitly staging: vchiq: Simplify platform devices registration staging: vchiq: Rework child platform device (un)register .../interface/vchiq_arm/vchiq_arm.c | 40 ++++++++++--------- 1 file changed, 21 insertions(+), 19 deletions(-)