Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1258224pxv; Fri, 23 Jul 2021 04:04:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7n7rwaNnGX/9DEEA0VUb6+8Ou9ObowfNiugdLNUwAaPtr7BVrNRsr2umJ9AQ3qjLKXG8e X-Received: by 2002:a17:907:c08:: with SMTP id ga8mr4145512ejc.318.1627038291698; Fri, 23 Jul 2021 04:04:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627038291; cv=none; d=google.com; s=arc-20160816; b=m2KTlQUdjcaGKqLGOGzsjZnzcbujyb00NrjUp8tJQPz2QmlHr6q4Ru/zfBWXOhNUDr /W2HSMAgk7xo8hJU+At4g9RbuEGs6GQzbgGGpKXfF/5Qj9Kq+YriScDILSWyZrR3MacN J8twQeg1zTf9NrP5hMCR2qqg6j2xMvTVjA6uBlQf1AqGKV7zCdlr/ZBsPKZyF1MK3O1C Bd3yCVlap7I6NKSA1r8EVtChfE5PG79XbhPj5vWTsickfTMtuo69BGuoBXkoq77UA/qS 2roSZE/hMLbec3vchclFW4vroA2C74uHEdSOr71Q0DWhFIPGJkw8GbHE1IxXjEZPgex4 lNEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=qL10KkCrJJf56G4OrUvoXBajOjIKiVZ8I1HdmVpsy7Q=; b=B3scwg0cnv23zwRSqjN7BFvKUQjT69nRmfmJU4vaElK5o7Ns8BcfNVvruvz3FE5I68 MDDqa+FOusQ3GYkqY1YWEXVey9GH/cUFkadIXDqY2SCLz5uDdUqI4Lc2tK4OJfL0l2fj 93ikZuBG6C6V95/ZddYx+nwR8dCIjFar+xjY+avwxFaRmdu4xg+G7W1rMp3e7UsAZP/i K96/sOz0r1gtG5x+kleT/rprHg7nzASZUEfuXEGFWk/atIHfjeSAugVhognxPvFNbgHf 6pbG8LMMTtYvuXMnCWa48Q0NdOrKRTVyaBSrcsSB9MFLZtzGHfPbc8NN2MI+miXXPAiA M5GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HPWRbVJ8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y20si33172930ejr.227.2021.07.23.04.04.27; Fri, 23 Jul 2021 04:04:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HPWRbVJ8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231428AbhGWKWO (ORCPT + 99 others); Fri, 23 Jul 2021 06:22:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:56562 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230135AbhGWKWO (ORCPT ); Fri, 23 Jul 2021 06:22:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 31B1360EB2; Fri, 23 Jul 2021 11:02:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627038166; bh=tErI2vcqXTeZiUkoPXX1NnocpSrL2pNRd47WOhAS1uQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HPWRbVJ8YcJoyO0iwG9wvtQMqVCrpjLHDGtYwSiwYyN82MDk6lVBWUcopcKpF+v3K m1zq3/K9LJplD0gyYGfa2OpQITeoxTM60EKctoVEt7bstbQTlAMOtNug+XBZrXXfcB HVHCBvGF+qtyw4hL4RrQwt5ZKf/0f+U/aQmwPwZg= Date: Fri, 23 Jul 2021 13:02:41 +0200 From: Greg KH To: Ojaswin Mujoo Cc: nsaenz@kernel.org, stefan.wahren@i2se.com, dan.carpenter@oracle.com, phil@raspberrypi.com, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 0/5] vchiq: Patch to separate platform and cdev code Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 21, 2021 at 09:50:48PM +0530, Ojaswin Mujoo wrote: > Hello, > > This patchset adderesses the TODO item number 10 specified at: > > drivers/staging/vc04-services/interface/TODO > > For reference, the task is: > > 10) Reorganize file structure: Move char driver to it's own file and join > both platform files > > The cdev is defined alongside with the platform code in vchiq_arm.c. It > would be nice to completely decouple it from the actual core code. For > instance to be able to use bcm2835-audio without having /dev/vchiq created. > One could argue it's better for security reasons or general cleanliness. It > could even be interesting to create two different kernel modules, something > the likes of vchiq-core.ko and vchiq-dev.ko. This would also ease the > upstreaming process. > > A summary of the patches is as follows: > > - Patch 1: Move cdev init code into a function > - Patch 2: Shift some devlarations from vchiq_arm.c to vchiq_arm.h for > sharing > - Patch 3: Move vchiq cdev init code from vchiq_arm.c into vchiq_dev.c > - Patch 4: Decouple cdev code by defining a Kconfig entry to allow > optional compilation of it. > - Patch 5: Merge code in vchiq_2835_arm.c to vchiq_arm.c > > Changes since v3 [2]: > > * In Patch 5, replace forward declarations of some of the functions with > function definition You dropped the reviews of others, so now I need to wait for them again :(