From patchwork Mon May 2 18:30:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrien Thierry X-Patchwork-Id: 12834623 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 E965EC433F5 for ; Mon, 2 May 2022 18:32:16 +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=H48Q/fUGSoZmbz4XepKIHOemRefhPVn6ippCatjgztA=; b=g0cR/Tze6I0m9S Wnp2SVmwWNNh9AABu2C6u7oTrzfWImnoBK86u0T7a2gemErReDOSv135FdY663wwvfa3/kwurCVHl RqF5/paZMlcDFIu+CNK0rPVIqHwf/OmqfVcGQh5nlPhvmpiN+arUllNqI1ZK0a6rHy8OoaVx0etXF vqFPmrgEYeNDzEQSnTusOxX8MAGXTxBd7ViMHc8wYLqGX1JJvcjhXtPWCueBTpDhr/+N8p0THFXju M7p470kprAn6yrX8lTGdXRnR4cUJy3aRRao4Rg+IyLLmvCfHJvwiDwd+R1Z8qtcRbl9Hg7F6tuKhD VEDzhOplZPkgfYY46wdA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlaoy-002CHY-Gn; Mon, 02 May 2022 18:30:56 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlaou-002CFj-LL for linux-arm-kernel@lists.infradead.org; Mon, 02 May 2022 18:30:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1651516251; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rguDjv+d49kqJjpBxJsrbZOSzE2Lv6ZdoiYYlDDf/aM=; b=cE5h7CB+fIMSrWZ7aMmVTDjiKNpiVM9XULojE/BZL3Z/PSHPUNqsCq8IhyqIrvgcvS+ulX zcXB3vnDAVJEnE3s2wR6S03tcqX45WauLkQurzTfwP2VlujZYJCW3p7ic8IRUah9hC0CFv PoC/q98fdjfDCg18ASltXRgg0nLeARY= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-609-bE4-r886O4OWhS-tgvUvFg-1; Mon, 02 May 2022 14:30:50 -0400 X-MC-Unique: bE4-r886O4OWhS-tgvUvFg-1 Received: by mail-qk1-f198.google.com with SMTP id bk23-20020a05620a1a1700b0067b32f93b90so10691741qkb.16 for ; Mon, 02 May 2022 11:30:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rguDjv+d49kqJjpBxJsrbZOSzE2Lv6ZdoiYYlDDf/aM=; b=47F3/9TbkKbGJAvCnVwQMB9EaFTdu8u3Z4206tT3rmRbCRF+d6KRIMBVClZuGoBRh4 pmFSfAFjh4NSMFHA5iR/cw5lRviHO8Ar79+s0A/Th4YWkjV5G33ZOsJkXOaoEBibF7EJ azojidK/BKFHEXJFWoLY4FPW2IVoWwElhSNu2xcNotwenR7HnsTDZU8BQavt7wo/X7uW 06bcNSbuohjksNkvKchnPqXQsVCTMfqIRlkl69R5aj99A4B/NPOGlBet7Q8J54QNEyFJ Ov2/yEXaHlwv/o3sHt2zMbNFzsw9G8UDPJuQS0I+7tOly1PolWMF5FUYw5dC2OgDyqRa Sabw== X-Gm-Message-State: AOAM532KVXDyXfBx/cODBAHYq1b9C+6Ed+TKwK0Fzad2TEQYgTYEETM8 /V6vIthzLIy+gSMr04RS7zgZQNRPp7tNPmAUDGN2g3aWP6VFNJqTqrqt7LtAdRrkeOnGXm9CT5F SoQcERZ4O5eBM1BNZMPOG+EtU/rh1LZY/uUo= X-Received: by 2002:a37:b1c7:0:b0:67d:6a17:cdcf with SMTP id a190-20020a37b1c7000000b0067d6a17cdcfmr9049099qkf.402.1651516249929; Mon, 02 May 2022 11:30:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzGMrpuLrvTmxx8frRpTf9Qu2IQ5cz1FrI776CpFn8PKTAz9yYy6P2/rkP71HE8n8rRrh6LQ== X-Received: by 2002:a37:b1c7:0:b0:67d:6a17:cdcf with SMTP id a190-20020a37b1c7000000b0067d6a17cdcfmr9049093qkf.402.1651516249729; Mon, 02 May 2022 11:30:49 -0700 (PDT) Received: from fedora.hitronhub.home (modemcable200.11-22-96.mc.videotron.ca. [96.22.11.200]) by smtp.gmail.com with ESMTPSA id h12-20020ac846cc000000b002f39b99f68esm4412204qto.40.2022.05.02.11.30.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 11:30:49 -0700 (PDT) From: Adrien Thierry To: bcm-kernel-feedback-list@broadcom.com, Florian Fainelli , Greg Kroah-Hartman , Nicolas Saenz Julienne , Ray Jui , Scott Branden Cc: Adrien Thierry , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-staging@lists.linux.dev Subject: [PATCH 0/3] staging: vchiq_arm: remove some unnecessary global Date: Mon, 2 May 2022 14:30:39 -0400 Message-Id: <20220502183045.206519-1-athierry@redhat.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=athierry@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220502_113052_810489_EF195032 X-CRM114-Status: UNSURE ( 9.25 ) 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 This patch series aims at removing some unnecessary global structures in order to make the driver more robust. This is part of an effort to address TODO item "Get rid of all non essential global structures and create a proper per device structure". Adrien Thierry (3): staging: vchiq_arm: add reference to vchiq device in vchiq_state staging: vchiq_arm: get rid of global device structure staging: vchiq_arm: get rid of global vchiq_states array .../bcm2835-audio/bcm2835-vchiq.c | 40 +++++--- .../include/linux/raspberrypi/vchiq.h | 49 +++++----- .../interface/vchiq_arm/vchiq_arm.c | 94 +++++++++--------- .../interface/vchiq_arm/vchiq_arm.h | 8 +- .../interface/vchiq_arm/vchiq_core.c | 98 ++++++++++--------- .../interface/vchiq_arm/vchiq_core.h | 38 +++---- .../interface/vchiq_arm/vchiq_dev.c | 40 ++++---- .../vc04_services/vchiq-mmal/mmal-vchiq.c | 63 ++++++------ 8 files changed, 218 insertions(+), 212 deletions(-) base-commit: 5fe7856ad59afc56a6ff35d091bfaddd1d4f4bce