Received: by 10.223.185.116 with SMTP id b49csp3602035wrg; Mon, 19 Feb 2018 02:55:12 -0800 (PST) X-Google-Smtp-Source: AH8x224x/DcGrlFDo12U455qXnNhoIhR8QwBTneDTFBGsTJzY/R9HxOiU1rC3zmGV5S++/gOQDP3 X-Received: by 2002:a17:902:6c0e:: with SMTP id q14-v6mr13932620plk.445.1519037712240; Mon, 19 Feb 2018 02:55:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519037712; cv=none; d=google.com; s=arc-20160816; b=yNn/38vimUiieDDu7duGJeRFQLh2Zjme4QHpKihHPophh+uHTziIwSu5QouhuZJYsn ppMuyYOWjyvLvS9+dbEdh722sHpw+7zgpsAH5tJHHOtJQ2Uv1adopv142yoo4CCnAu3t BRXb7WUo1h1DaiLMx3SWrCrYVbWWcPwf2Q8qbkukF8F8xepHtT35wPUQxYvH/2VDZaVr 56Uv5CQvnwVN9AeJoIylY+j2RzZ14k3dXImjUcHTuzj8kEFt5ceod6thMma5TGPL/91F jtiDehvdCUevj9fRRAs71h/8SMbJ0z6lLjs3GQnObTgeK33mQf6GbnW8BM+Gnc+CWUYx Y2RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=EO+cCrND/zXldstUgrnkHWgjHsU9j+lss/16NLGpN3o=; b=C9LqHUsX/hUYj3rXnbjCkVwKONiicTcDfyvryAQEDuCSwETX/7BBdvxiVI45mBmztc YJXcbFgkIPTCM27MXSwaZ/YiFC1nsVehpM79VKt0JX2JZD6Ki12Kv57mnFTcqR/x6FzV F0XtrdNxPYDgJRe4TOP+xN9iPetha6zvU+fCqF+bFSKlJGlJOwOXhlbJOE7aSqqk2zSl DW2Tmk/E2d8dyg1zLLAmYBOGfOJcsGdeIc+X+wZFbuQOWI+ZFQ82zC6iG9/md/rlWOfK 3kDs5zW9qH0RAV97qAHr/INECtoSoElMlmSX2kt5IyXtWXMdCD45jBZAtAMhLff9OalE 8Gaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=cA0wMUa0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q10si2290445pgd.335.2018.02.19.02.54.57; Mon, 19 Feb 2018 02:55:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=cA0wMUa0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752558AbeBSKwy (ORCPT + 99 others); Mon, 19 Feb 2018 05:52:54 -0500 Received: from fllnx210.ext.ti.com ([198.47.19.17]:50246 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752380AbeBSKwx (ORCPT ); Mon, 19 Feb 2018 05:52:53 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id w1JApqb2018129; Mon, 19 Feb 2018 04:51:52 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1519037512; bh=HfR+z8n7AzgXj2wcAE+yP5pxccWau1scaEQ0cbzgUzY=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=cA0wMUa0bAs3T8RJ2Zql8HkdpkeACmwVk63H0C/Q5YpohAASTUdlpjNUIv9EdmosN 84acVKnHXp6iMNOVlVndybEdoaKZxhZNfcG/vsDbWOcTuVPwJN4q9T6EMNHA3D0/gB Z3wdOgQT2lSwTGR6oPUvSq1YxjV2x1qrXovWWY5c= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1JApq1Z008079; Mon, 19 Feb 2018 04:51:52 -0600 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Mon, 19 Feb 2018 04:51:52 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Mon, 19 Feb 2018 04:51:52 -0600 Received: from [172.24.190.172] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1JApnqx013622; Mon, 19 Feb 2018 04:51:50 -0600 Subject: Re: [PATCH v2] ARM: da8xx: use platform data for CFGCHIP syscon regmap To: David Lechner , CC: Kevin Hilman , Bartosz Golaszewski , Adam Ford , References: <1518924144-5308-1-git-send-email-david@lechnology.com> From: Sekhar Nori Message-ID: <7f7ea722-6563-0c11-68f9-947f8ae7a26f@ti.com> Date: Mon, 19 Feb 2018 16:21:49 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1518924144-5308-1-git-send-email-david@lechnology.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sunday 18 February 2018 08:52 AM, David Lechner wrote: > This converts from using a platform device for the CFGCHIP syscon > regmap to using platform data to pass the regmap to consumers. > > A lazy getter function is used so that the regmap will only be > created if it is actually used. This function will also be used > in the clock init when we convert to the common clock framework. > > The USB PHY driver is currently the only consumer. This driver is > updated to use platform data to get the CFGCHIP regmap instead of > syscon_regmap_lookup_by_pdevname(). > > Signed-off-by: David Lechner > > Acked-by: Kishon Vijay Abraham I > > --- > > v2 changes: > - add #ifndef/#define to header file Thanks. Picked this instead of the earlier version I had queued. Regards, Sekhar