Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp776875pxj; Wed, 16 Jun 2021 13:22:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMjlk15wQz7K9WHmtBW2NbbIJy2GeWfVoljsEOJuphG6nhxAtWFt1QpbTp6MBvx9wCmWgL X-Received: by 2002:a05:6402:31a8:: with SMTP id dj8mr1892200edb.296.1623874948355; Wed, 16 Jun 2021 13:22:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623874948; cv=none; d=google.com; s=arc-20160816; b=G5drPt9pP3LWsnSB9GC+UeQCIz5TnHaRXGRK6clHuS7s9b4fa1vBfcsBovwZ4W8j5r rO/IEC4ll7Gq32wXINT+McbrNx7cJeYfLVxlYNBxsY5K2+SKEKL14ZEvVbRxhRCeqeIv 90qTIm/0G9UcJHQKhcbjlXmJ+0rfkJjSv4Uhol2PRzzGYZTZnk4HcljScQ74pQn7vhj5 86POfA2+o5UKtw1esEUFaT966w38kJATFGBu3k0TNKD34cn6mtwZH70C0jeKCSGnjukM /eXXDEl9+xwmYtiISbuI/CEPb+TDGulG5SFbcmJ+pfTfJJizZYox5BPLSKz5Q+W/1+wS fdiw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=PO3bafkqYILWJqWytS8gUShKgfwibzvfh84wirCWy1s=; b=cFcVaAYsMhCia3HVTym2cFaSamttLLirWKwNnthi+couwdIeln8muh9BOMqNWhQcJ6 uTMuPQLxOn7B5nDTSHIvwymZgpChIgbBHriQ5/5Ure4CFJpll+ZNTxnvOeDAO34PyosT wjqcd6apQkT47sj4+guubBoQtNy7N2I8ce8jy7JFxIrlZCG9LPeAj+OJ/H1+r39ig6wc L29+qNL8kOcbeeF/7IaxlbYbap1xzA75IaUrCsOoLXQiWpVSBfYcyj0ZMYgKbYF0y0oV iYxgJVzvxxHbR570jjqd5SFxYv6AW1a6WnesU9sqARFF7SO3x1xWWnaQ2qBpXDP1DAAj STtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bNYdxkGO; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 18si3276851ejr.397.2021.06.16.13.22.05; Wed, 16 Jun 2021 13:22:28 -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=@linaro.org header.s=google header.b=bNYdxkGO; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233860AbhFPOxg (ORCPT + 99 others); Wed, 16 Jun 2021 10:53:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234087AbhFPOxf (ORCPT ); Wed, 16 Jun 2021 10:53:35 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECCFAC06175F for ; Wed, 16 Jun 2021 07:51:28 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id q5so3044246wrm.1 for ; Wed, 16 Jun 2021 07:51:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=PO3bafkqYILWJqWytS8gUShKgfwibzvfh84wirCWy1s=; b=bNYdxkGO+wjRgDRieFSzyn8BVGnlO2jMlt1eMjYjfu9AqzoKcL/bY6C6MHP63cIYRR z2aF9F2dpjzPaKe6mgKittxuFMoQE+sRwEj7S9ViKIVkgLP1xz/KFxW2Cin8BdvYD9f0 cbssyNEcAj7R9pymnM7nnMwIWckb1U8VpxycM+Agm2AI8XbM3SRoqfZEubeiACeb+xA0 932QYj0TmtuJPPLUBKhjQvheDc+Fp8MeubxNkuJ0fkH6fiJfAuDZWm0mUWejCLPRJqDm 6a1GUetsm1tIrPbUUdOCcf/HrNbuXBWBdP7wS+KbMb+vlIHpgmAYIzmNfa+96AayfCC0 RuWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=PO3bafkqYILWJqWytS8gUShKgfwibzvfh84wirCWy1s=; b=hHBjU8TVskh+5ZqLYsSm3zqrfBiNY0+RZ51dYlauv6ju9niBpRh6/ZeFX+oX4MjyFP OiWdkDu48J4NoTyBTDf/ynFm0GciVrbyvsLzhHsPCJm66r0aVasVHdsnO/MPgFCJM+sf /Tri1MsvYiw26cqzB/P2Iv6VwVErYLETQ+KDpSGrUZfkS8QyBFnb+qzWsf3DQrIkYHEg ZFaL3U41UIarzfJo3keqytdixgo74XsigcaETfSvg41IWQSSYvqktI82Ge8GX6T/elnz E60/5B5dB1dS62b8dut69N0s3tfrVROee7bPMAysxIIGiAxKCNVuyPBzlvKcgjo5ssJ/ l9lQ== X-Gm-Message-State: AOAM532hltYkPK7BeKuZiatku2Zs/AQV0pSYXPr6Ctq0rZofHHiEAqwQ Wmj7Y0ok8LhIe0TiR8NzZnEWXCDM/WAukw== X-Received: by 2002:adf:9dd1:: with SMTP id q17mr5869188wre.402.1623855087572; Wed, 16 Jun 2021 07:51:27 -0700 (PDT) Received: from dell ([91.110.221.170]) by smtp.gmail.com with ESMTPSA id x18sm2349887wrw.19.2021.06.16.07.51.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Jun 2021 07:51:27 -0700 (PDT) Date: Wed, 16 Jun 2021 15:51:25 +0100 From: Lee Jones To: Min Li Cc: "sameo@linux.intel.com" , "grant.likely@linaro.org" , "robh+dt@kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" Subject: Re: [PATCH mfd v2] mfd: Add Renesas Synchronization Management Unit (SMU) support Message-ID: References: <1622652224-19103-1-git-send-email-min.li.xe@renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 16 Jun 2021, Min Li wrote: > > > > > > > > > > > +static struct mfd_cell rsmu_cm_devs[] = { > > > > > + [RSMU_PHC] = { > > > > > + .name = "idtcm-phc", > > > > > > > > Can't you have a nicer name? > > > > > > > Hi Lee > > > > > > I wonder which part of the name that you don't like? PHC stands from PTP > > Hardware Clock. > > > I was following the name convention like tps65912-regulator. > > > Do you accept "8a3400-phc"? > > > > I think you're trying to put too much information into the device name. > > > > Currently it's: > > > > idt cm - phc > > > > Where usually we have, taking your example: > > > > tps65912 - regulator > > > > So assuming the PTP HW Clock is just a clock it should be: > > > > 8a3400 - clock > > > > It's difficult to say without seeing the associated child device(s). > > When do you propose to upstream those? Maybe they should be part of > > this initial set. I think that would help a lot. > > > > Hi Lee > > The PHC driver already existed in the current tree as drivers/ptp/ptp_clockmatrix.c and > ptp_idt82p33.c > > Right now, they act as i2c driver. I plan to change them as a normal platform device driver > after this MFD change kicked in > > That is why I would prefer the name "phc" instead of "clock" since the driver is not a normal clk driver > under drivers/clk but a ptp clock driver. And down the road, we will have our real clock driver and I wanna > reserve the name "clock" for the real clock driver. I see. To be honest, I wasn't aware of the PTP subsystem. In which case, the name needs to match the one in the driver: static struct i2c_driver idtcm_driver = { .driver = { .of_match_table = of_match_ptr(idtcm_dt_id), .name = "idtcm", }, .probe = idtcm_probe, .remove = idtcm_remove, .id_table = idtcm_i2c_id, }; So, "idtcm" in this case. How else will it match? -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog