Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp909088pxf; Wed, 7 Apr 2021 14:47:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYLa/gRDR+Ts+hCaaEh3PLw76JJdVz2q3UQFcrpD/+3IDFyJZSYJywSsdA4VluxRFd9Y0/ X-Received: by 2002:a62:7d07:0:b029:21b:d1bc:f6c8 with SMTP id y7-20020a627d070000b029021bd1bcf6c8mr4767051pfc.45.1617832078707; Wed, 07 Apr 2021 14:47:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617832078; cv=none; d=google.com; s=arc-20160816; b=v2PDhk1Bnjcd1KF6Q35pboqop6AUk/I6IKyqhQB19iW2rjbEyGqSW2E8lmR+vNcxcZ mnMSJdIo8+umJMYbTcgDamjwKVIGivP6T7gcPgBScvUKbAJV1y83eq1smM0xmNNLsLND vzups9Ww4hUVHPQAxbgUNsOAHCVrgSDtbsyCTe3UOBN/XpLiEbF4B+3MITLx8tNDMFU4 VvTKCtZozq902GQwRPoP3dvOobUzef/JpiNwpDTF9A2kefR5sGG+ACj2bhj9QYpF1pti S4u64QeuJCFLi1UrKb40rXjNpqFR+cUWVcJcpreIef079dw3mI1OWMWm2gwzg7la6pw0 zR+w== 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=0Q6LhTFdBl3pId1fehOw3l2XJI1RGx5QVcoHgRmwHjY=; b=iDYyeMCOCnHb3I0yXxiO7+Ozf14NbH2FJMpL38B11UCnc/xhbMZ/8USZoDZhL7LG27 YGYDDCAeq+fZAG9CxQrb0zU73suPr/IuYMvBHqw1ct9xNP4KB3b+b9WUw5d8ovSW55FJ 5I3GQ71Mf3dgpguxeJyCMGUQ8rAM46D/WpwOkD2tP6J1jNJC8NhdGL4dXXAO5klexVFt +kW11kYHDx6kZr/LLQwvTuD5UczXFgrxYAlrm1h5WimQYwYkr5t3Zcjci8mqVAbLlZrI Kl2sIL8Sox3puYnAjJt/yDS54erhE+kWUk6E81dujowTx4Tfepawpo3TyzsTws3yv0U5 6wqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=omajU5pi; 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 w17si2383045plb.431.2021.04.07.14.47.46; Wed, 07 Apr 2021 14:47:58 -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=omajU5pi; 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 S229552AbhDGRvv (ORCPT + 99 others); Wed, 7 Apr 2021 13:51:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:54244 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbhDGRvu (ORCPT ); Wed, 7 Apr 2021 13:51:50 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D3C8561284; Wed, 7 Apr 2021 17:51:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617817900; bh=nTp/WvTjnSAnS4EME/mBxL+kfQ/uoYRLlrN/5NR97xU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=omajU5piXAUTclvgcNDnRJQzQDMDqpLqjznpZkQwXlJL1h2h/U7lfuJgbbdVSeTtf FfHr7mkdQiKx8exUyHsXxfojHllhpe/cHgowljZOUHnzI8ZUVkIkTO7P9xuV0ZWXC2 1qlAjU8uFFNwjrWk4z00apdfpX8ei2eZWlI1hR/o= Date: Wed, 7 Apr 2021 19:51:38 +0200 From: Greg KH To: min.li.xe@renesas.com Cc: derek.kiernan@xilinx.com, dragan.cvetic@xilinx.com, arnd@arndb.de, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v2 2/2] misc: Add Renesas Synchronization Management Unit (SMU) support Message-ID: References: <1617816815-3785-1-git-send-email-min.li.xe@renesas.com> <1617816815-3785-2-git-send-email-min.li.xe@renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1617816815-3785-2-git-send-email-min.li.xe@renesas.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 07, 2021 at 01:33:35PM -0400, min.li.xe@renesas.com wrote: > +/** > + * struct rsmu_cdev - Driver data for RSMU character device > + * @name: rsmu device name Why not use the miscdev name field? > + * @dev: pointer to platform device So it's a parent? Why not make this a real platform_device pointer and not a device pointer? > + * @mfd: pointer to MFD device You are properly handling the reference count of this and the platform device pointer when you save it off, right? Please check. > + * @miscdev: character device handle > + * @lock: mutex to protect operations from being interrupted What operations? > + * @type: rsmu device type > + * @ops: rsmu device methods > + * @index: rsmu device index Index into what? > --- /dev/null > +++ b/drivers/misc/rsmu_cm.c > @@ -0,0 +1,166 @@ > +// SPDX-License-Identifier: GPL-2.0+ > +/* > + * This driver is developed for the IDT ClockMatrix(TM) of > + * timing and synchronization devices. > + * > + * Copyright (C) 2019 Integrated Device Technology, Inc., a Renesas Company. Note, it's 2021 :) thanks, greg k-h