Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758385AbcJYJiC (ORCPT ); Tue, 25 Oct 2016 05:38:02 -0400 Received: from mail-qk0-f182.google.com ([209.85.220.182]:33966 "EHLO mail-qk0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755604AbcJYJh7 (ORCPT ); Tue, 25 Oct 2016 05:37:59 -0400 MIME-Version: 1.0 In-Reply-To: <7f9efe9d-0912-e10a-3e45-24c5d2b455ab@ti.com> References: <20161024164634.4330-1-ahaslam@baylibre.com> <20161024164634.4330-3-ahaslam@baylibre.com> <7f9efe9d-0912-e10a-3e45-24c5d2b455ab@ti.com> From: Axel Haslam Date: Tue, 25 Oct 2016 11:37:18 +0200 Message-ID: Subject: Re: [PATCH/RFT v2 02/17] ARM: davinci: da8xx: Add CFGCHIP syscon platform declaration. To: Sekhar Nori Cc: Greg KH , Johan Hovold , robh+dt@kernel.org, Alan Stern , Kevin Hilman , Sergei Shtylyov , David Lechner , manjunath.goudar@linaro.org, Mark Brown , Alexandre Bailon , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1101 Lines: 39 Hi Sekar, On Tue, Oct 25, 2016 at 10:10 AM, Sekhar Nori wrote: > On Monday 24 October 2016 10:16 PM, ahaslam@baylibre.com wrote: >> From: David Lechner >> >> The CFGCHIP registers are used by a number of devices, so using a syscon >> device to share them. The first consumer of this will by the phy-da8xx-usb >> driver. >> >> Signed-off-by: David Lechner >> [Axel: minor fix: change id to -1] > > Can you please clarify this change? There could be other syscon devices > on the chip for other common registers. Why use the singular device-id? > in the case of non DT boot, the phy driver is looking for "syscon" : d_phy->regmap = syscon_regmap_lookup_by_pdevname("syscon"); if we register the syscon driver with id = 0, the actual name of the syscon device will be "syscon.0" and the phy driver will fail to probe, because the strncmp match in the syscon driver (syscon_match_pdevname) will fail. should i change the phy driver instead? Regards, Axel. >> Signed-off-by: Axel Haslam > > Thanks, > Sekhar >