Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp182551iob; Mon, 2 May 2022 16:30:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEvC6mR/CmBR92uOqdlWPiNAlNKM6y6XH7GIMZFIa2/NaoAdWhMqiTUgqSU+/sJEAQZLv0 X-Received: by 2002:a63:cf4d:0:b0:399:40fc:addf with SMTP id b13-20020a63cf4d000000b0039940fcaddfmr11575969pgj.416.1651534244421; Mon, 02 May 2022 16:30:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651534244; cv=none; d=google.com; s=arc-20160816; b=uvlKVWUVLNzDFgxQvj26pUDe80HdJdJ8R8eo+wIrlVIxk3hjG4rXDCQh4p26Au0d8A n1n0UVkzJOUiR//NWisFskzis0xpe98Dq0DjAYDAawqQS7cpKltvazEN/HlLKyGClBMN L7k1f4JAK5cSE0i8MREftEWjOKBICzqH3y+/eyu4n+lqp8B0uXCLi6xMndRrPkOI7MTm vzTl9YNFjGdnZ0SmVemIYrzSWhpwa8ECh0SWIdbfwSvrNo9tMi4/IeYmq3W9xIVjaBYh YstENMD1jtYwR5XeyeX9ndFP78zT/ka6uUGUjdx82j2sDkAzeiRhWgIVtXPGE3RiLHoD VzcA== 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=rguDjv+d49kqJjpBxJsrbZOSzE2Lv6ZdoiYYlDDf/aM=; b=d/9IcAUxMexulOwyrMflS2pHVd7Gh36k/k9Kbvbh/PJY7z7V51YqKaqi3UwFVL427r YBVDJRJnKEwK97/hHcpQpSpXS0qEmzXxV7qsEwXqD/MjLxJ5XcqPj0y8jNIlS26fgJ/g kZvEg88/qWipIxqZ6p4EEzIbkMwqhNmJ/LzrEsh3I+KnwDLuFaZgUJapvzuqURtiPRg2 xIWFW1mR75Hy5no+qq6QcboPp2XQ1LxzYIDLt4cxzcKOG+mySDP4YLfwj01wnesrvCgw VIjsYl8k7SNXnlo4Q9d6pUWPJOidbam6Kan9g2k2g7WZoTzqnQ9sCoS9XNwY5vPyJi4/ IgRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UQylH6CP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y20-20020a634954000000b003c1e24ba350si6531900pgk.786.2022.05.02.16.30.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 16:30:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UQylH6CP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0B8E42DDD; Mon, 2 May 2022 16:30:21 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1386891AbiEBSeY (ORCPT + 99 others); Mon, 2 May 2022 14:34:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235027AbiEBSeW (ORCPT ); Mon, 2 May 2022 14:34:22 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7345C614D for ; Mon, 2 May 2022 11:30:52 -0700 (PDT) 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-transfer-encoding:content-transfer-encoding; bh=rguDjv+d49kqJjpBxJsrbZOSzE2Lv6ZdoiYYlDDf/aM=; b=UQylH6CPG8U/t5qRZ4wcvzmwy1mMQbGhZSCud7bOyzbi5r3uQlt5iOouLAh6+9gkkWhFcC VZO0/KdT9SQQUS17dWiEt2dE2bq/toPXwS09BSIcbMD+1IhJpP776flR58SJuii8mKPjpP D83veIpLRsqrmjQklVbxskiprE7lcuA= 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-605-X8mkzM8SMtq5YmsGE3ksTA-1; Mon, 02 May 2022 14:30:50 -0400 X-MC-Unique: X8mkzM8SMtq5YmsGE3ksTA-1 Received: by mail-qk1-f198.google.com with SMTP id bj2-20020a05620a190200b005084968bb24so10689587qkb.23 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=Ko+sY5Jabm6tyZZdiYwIgV73vKFK3E4+s++AUg92e+uwV1wQtOYQwOWUkdRyQTCleI cg0Jdr6OFCZkQG36keH88ZF0EaENWLrfzv4i8BNm62cWgHGKhmyyea0pfTy2tivj5u7v +qbsNa1qZ3jFQEf92fSlSiS3oiXUCfPSjLxBVj62YlcwEge1E5Ahpx8KPYnKxJfPIuNC opagKsomBeh2mT9G0ZQ7Zd7+BYoO/r+/fodro3oVx+rvfpZNqPiCx+r8fX+Vjd5v5SMx LMqvjuVkretCiPVT9CYYKaz9/Dvu4SGGOKNj4r8CaqcUVZgkq7ytJvDM8L38SJ92YPi/ g4sA== X-Gm-Message-State: AOAM533px1Cx4J/RnJ2hvW8WfuVmGE56Nu+vXGVqI8oyXikhx2YwXjO5 4NwfQlU5kcRaQKjFTjFkQWtJ7wd7DFSXj8Jqn076b7ZQYiIKRHk8KeGJFwudeIZK2dZQi5K0NJ5 3yLs0C3CMSXFofuKMcLBqTMVP X-Received: by 2002:a37:b1c7:0:b0:67d:6a17:cdcf with SMTP id a190-20020a37b1c7000000b0067d6a17cdcfmr9049105qkf.402.1651516249933; Mon, 02 May 2022 11:30:49 -0700 (PDT) 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 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 -- 2.35.1