Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp169526pxf; Wed, 7 Apr 2021 23:38:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGKhYcrJ0owQR3KudbcrZKE4VPbHuitw8X5kOip5a7QvbIPObg6cAgmemc/Y8NF0MWzXbT X-Received: by 2002:a05:6402:42d1:: with SMTP id i17mr8928775edc.131.1617863882934; Wed, 07 Apr 2021 23:38:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617863882; cv=none; d=google.com; s=arc-20160816; b=HrEQIux28JMriTfwrwJAqyE/iTCaOkcwQw54k1CEouSPhd0Uytg8RODdtTlnbadA06 wl10KHMQeCGwGr3l+GFfCc7s510J4htHM5ycdeL3t7DCLL7c9KIDRbda0sqUwZeicQvd M3bdgkshZ0RMP1aY5ShkuFg97Own1rez8QuQlTQJBAD5ah5bYGEx0rTqJohtp1rUuy83 E1GtmYjWkZ7eqNeuxBF5eiJlAkmpVPWjKoeSzFjIRjxIwnwE99cnls8FHZMxGFuAp1FR Pek+h1Q4ipSiItgnxZ4Mn88GxLhpWDC8S2aRLjIZtiMjJ1ENFnczwk7T969f+IAX47tZ b+ng== 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=3oKkwQqosUTZRq0s5jGIJPOiChc4dUujiWZRZh7RPCM=; b=H9MB5c7aDtn3R+LoAO2qYAMJzxvW5IMORlU+npD1ruvN12MwnZ9jpyoFvrwQ6imVct uzWAFu2y4EkWPG7RFP0JpRNRwTxb/xodR/QVZd4UfaLxMPrR94bm4sWQ907cg/7AheTx rFxzlz6UIE1tlJ8sqC5u+bgNdl0hLlziEBDBDQep8ms03bPZpcbYri7qREvOFUFaYvCt v0YnaxYVI5uujjMEbj4w+F0URQ4Y3UKg37qv/7hGWXxkS8lQjgpgBUzZMoAPuPPXw/aw mo3HYTVYsToFbN/y0vDq0vDq5VFJ02KEJU0gPBhoxyWRkRMWmF9xHUKAr4ASrZsxXSon N95g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nTbfAuFM; 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 26si20373218ejy.13.2021.04.07.23.37.38; Wed, 07 Apr 2021 23:38:02 -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=nTbfAuFM; 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 S229937AbhDHGgf (ORCPT + 99 others); Thu, 8 Apr 2021 02:36:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:37738 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229745AbhDHGge (ORCPT ); Thu, 8 Apr 2021 02:36:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 230BB6113E; Thu, 8 Apr 2021 06:36:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617863782; bh=d4bJMeSthNxp55dudnuK71kNjSClI8zdSk9EiYVKAaY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nTbfAuFM/rg4TQxV2/4IRTn5GspMUomlryuKbyH0G2kL2cfYbATZ492pBaAujihix hdLNLq70fkzUq2Dp3VdXLmjvzzxFZ4XPx2nHZADTh3mTB6FcicvQGwirE0e+2h+MyF Lmp3WjA6Ls7EmKsY1SZYHOrlchvdqvx/Z1EcpLY4= Date: Thu, 8 Apr 2021 08:36:20 +0200 From: Greg KH To: Min Li 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: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 07, 2021 at 08:12:10PM +0000, Min Li wrote: > > > > Why not use the miscdev name field? > > > miscdev name field is just a char pointer and I need an static array to manipulate the name with index Why? > > So it's a parent? Why not make this a real platform_device pointer and not > > a device pointer? > > > > It is not parent and mfd field is the parent Then why are you saving it off? > > What operations? > > > > The MFD driver will create 2 devices, one is for phc driver and another one is this driver. > The lock is to make sure these 2 driver's operations are synchronized. Ok, that should be documented a bit, it wasn't obvious :) > > Index into what? > > > > index is passed by mfd driver and will be used as part of device name such as "rsmu0" So you can just look it up from the name? thanks, greg k-h