Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp105168rdb; Sat, 17 Feb 2024 00:14:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXnRzLOFJy/v81zJT10XRAdQp0JnCKB3SCR3BrEGx8uKKBR9G8wazJcdulEy4ptBRxTjnY1bLHdHNstqYkE0gGBcnNV09b55Grt7NtCiQ== X-Google-Smtp-Source: AGHT+IGyAK8r/EGWhpu5LAKkuWkMQTWtrgT2lbcwaQgjwLPqjfuq+jxGmodAm8kp1r8kXpsnXBAj X-Received: by 2002:a05:6808:2023:b0:3c1:4d44:6752 with SMTP id q35-20020a056808202300b003c14d446752mr479416oiw.15.1708157640085; Sat, 17 Feb 2024 00:14:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708157640; cv=pass; d=google.com; s=arc-20160816; b=lSA0wmjEgFoR3i9F88f5ssi4JOLsMhZ+aF6LpyN6NfKRgW1V2Ni3aprxcgFLbEfnCL SJvFfLqxJL4pYjStq5u4WMVx2Q1GEysFgkcfEc8aEQTHgzgQwPW8h2yk16Or0TB3aXDo LkR+6Zx14Iy3L/vu+WcnEipjdK4GZDBBIt6iZN7JGalIgZe3vBwJVCho/nvtAuWUvRur g6PP98MlJSW9Bvr01dn4EcNF6KHhCNMGnbmNDdlK/Zw7e6ZZZNd8yHFLWWdtLtaHqgYB jVOZ8ULyWV4xr3K0v0osvw5u7U8jtgJFCq9Xb/JQVDIZ130d5dkwtjQ43kJTjf1Fs/8u UJZw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wyaEzsgLyy3/xvv5R+kAcioRzD8qBQx4Tj3bScWRAnY=; fh=hLFYHZmDNRFjBxFUE8Zk5aMhXt/RdWY4doPcLbzcriI=; b=T9YHcyvlqpJzyWd6j36ZweYabtJtIFYEmubZ0wSQ+rPru2D01FVPRCIfqon2vCTzg5 wIRwnXGw3A+ya5q0BI4lSVGeR3Vkl0JqdlJBHh2tuI+kUC7eDx5NGe79knLFZ66ENP+8 QKLu/Xw3l+GvvqDmSYe9ULdOk9ZUg5mfJiFU0z2fRxoP03D/LacksLlVthZyP9z6t6C+ oVhKpgEq90G00tqGV8RrFIMXygGIJl1mEZjvIjSQ/NXXQB5W7BwQflmy38V2gkCcCTud L8JXTabGnbz+xCBAnLH/4yNN1us81mMqEBKv0nZ0cs7W+Cb6ylYf4SR3AY9hsger/PF5 bZfQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NSQ1PPzE; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-69740-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69740-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id bn22-20020a056a02031600b005d71b72c632si1230557pgb.81.2024.02.17.00.13.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 00:14:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69740-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NSQ1PPzE; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-69740-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69740-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B08DC282DD2 for ; Sat, 17 Feb 2024 08:13:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E2F11CD2A; Sat, 17 Feb 2024 08:13:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="NSQ1PPzE" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 74B9B1CABA for ; Sat, 17 Feb 2024 08:13:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708157634; cv=none; b=Zcc+6LIepd9+siFgPH8ajNLzRmbgPUXqH4+jY/IAyfn6IPuB5RUJa1OzPCGlNKDLzoGy02pSAuhc9MW2PumY3+7fYVjtouAkoE3bqRZndIz3tgcG73OEYZLiSMS8wbwKup5kPzTf9Y2LY4hK6p0wcdeupA6/pH9Qn3yBKrB22X0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708157634; c=relaxed/simple; bh=CEV0GAwlNnqfAjykp4IK9n4NFhtb0MDhdCn646Civqg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=d/dq5ZTLiXp7d1pKyp4kWTYO3eO3xgSvK/XOrMcLF4mCjzCkfRJP5Wh2f4OV7IGHt/+B3IrSCr5o+FigGny2RNC3WvpnzknN0YmyFFsJ4KbxxQtHYSCZNrU6n+WyPdUQTUIgFyhLJciRbdS9yqz3IHZLu/zpBOwBngUF/XZlbkw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NSQ1PPzE; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99053C433F1; Sat, 17 Feb 2024 08:13:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1708157634; bh=CEV0GAwlNnqfAjykp4IK9n4NFhtb0MDhdCn646Civqg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NSQ1PPzEcOFaYuZ7KxU23OKA1QrgG1M18oGywN4ZSEs06HkZsd6g53VFH9knGq5pH oAuiTiOyaJkzqGrhaV4BNEKM7B30FC6Yj40nSIlpe/v2WcSAYOALExqGYIWHHe3CsJ Gil+WN7oXxfv2nbiSDKFbnJGymJQJBVAMtAjynpU= Date: Sat, 17 Feb 2024 09:13:50 +0100 From: Greg KH To: Vamsi Attunuru Cc: arnd@arndb.de, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/1] misc: mrvl-cn10k-dpi: add Octeon CN10K dpi driver Message-ID: <2024021713-corrode-landline-e186@gregkh> References: <20240216103225.1255684-1-vattunuru@marvell.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240216103225.1255684-1-vattunuru@marvell.com> On Fri, Feb 16, 2024 at 02:32:25AM -0800, Vamsi Attunuru wrote: > Adds a driver for Marvell CN10K DPI(DMA Engine) device's physical function > which initializes DPI DMA hardware's global configuration and enables > hardware mailbox channels between physical function (PF) and it's virtual > functions (VF). VF device drivers (User space drivers) use this hw mailbox > to communicate any required device configuration on it's respective VF > device. Accordingly, this DPI PF driver provision the VF device resources. > > At the hardware level, the DPI physical function (PF) acts as a management > interface to setup the VF device resources, VF devices are only provisioned > to handle or control the actual DMA Engine's data transfer capabilities. > > Signed-off-by: Vamsi Attunuru > --- > > Changes V1 -> V2: > - Fixed return values and busy-wait loops > - Merged .h file into .c file > - Fixed directory structure > - Removed module params > - Registered the device as misc device Why register as a misc device if you don't actually use it at all? That feels pointless and extra code and confusion for everyone as you have created a device node in the system that will just fail all operations made on it. confused, greg k-h