Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4560758imm; Wed, 30 May 2018 07:52:10 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIQCNKWCPP1DzA3qvW0SNCnKJ6S4py8BdC/wPGumtZrld3Zw/dv/4n71e4cD0punVlQgRU/ X-Received: by 2002:a65:5c4a:: with SMTP id v10-v6mr2523184pgr.247.1527691930408; Wed, 30 May 2018 07:52:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527691930; cv=none; d=google.com; s=arc-20160816; b=qmE9HA1E3uOlaIHlRsJeSGNzSpttgqPFUMUzrq9QEBzDMcVdwYuSKMep/Vk8tmMXuG gP0A+pbDxANDl7NW7nBdOaOzHStrkcKZ3Le8TRPDIHQip9/4fXxvis1uPa7PqBmo1c/y n9DALEaO8rMY29V6W20QWoVSYMgxzbXXGOFocy+SoDshcWIvPMoioG46sg7ipW42928G sbzqNOY4ZggWvADvdeABgOaxfgaW4Kad6P/iMLsHThmGwDT7z8MXVf7ov0ddGsEGKO8V yWnPWNUPWOxqyI+U/w/VJ1DPrYJdjZ0xvsyenGU4RVgVIY3s/XXY+b5MhydlvM5Mx9Hf bnVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=XpTQYR2IrhDa7n3+bmeoSU7wtolHjrK8OWG6Mjv5b9I=; b=IW+Y7vfQZbTTWQ7VeSmFgrPdMWcXQH5w3lODNj+4JHYvXcTatMdKbByWZyuoH861cc sW6/ZFufYyOV9xBLQQ4Mw0pWzRl/TFZBNeDKrAc2dWdMDxXqUC0HC2RYWfS7z7BD9aZW tZuXq1XIJxyu1sJdcZbPfTjEQqz4eCEIijsN7OYeucbA9nLJD5b1s/9v/iNgPn0g2sI6 HAYEs0xeFZm43l05+lOplFAQDcEVhbPrCKr6E8JTnszdBc/AhC6K3xJvUCHcjNtLkqgk 9rDcdd5MlPqYRaQ4lhv8D4F58SqeZ/J52936hlm1FL1xBd/v0+yePFDupvDSFxxhqPy9 IZXA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l7-v6si22594014pgq.121.2018.05.30.07.51.56; Wed, 30 May 2018 07:52:10 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753561AbeE3Ouz (ORCPT + 99 others); Wed, 30 May 2018 10:50:55 -0400 Received: from muru.com ([72.249.23.125]:45186 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753432AbeE3Ouv (ORCPT ); Wed, 30 May 2018 10:50:51 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id AE58380CE; Wed, 30 May 2018 14:53:12 +0000 (UTC) Date: Wed, 30 May 2018 07:50:47 -0700 From: Tony Lindgren To: Faiz Abbas Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, robh+dt@kernel.org, bcousson@baylibre.com, paul@pwsan.com, t-kristo@ti.com Subject: Re: [PATCH v2 1/6] ARM: dra762: hwmod: Add MCAN support Message-ID: <20180530145047.GC5705@atomide.com> References: <20180530141133.3711-1-faiz_abbas@ti.com> <20180530141133.3711-2-faiz_abbas@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180530141133.3711-2-faiz_abbas@ti.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Faiz Abbas [180530 14:12]: > From: Lokesh Vutla > > Add MCAN hwmod data and register it for dra762 silicons. > > Signed-off-by: Lokesh Vutla > Signed-off-by: Faiz Abbas > --- > arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 32 +++++++++++++++++++++++ > 1 file changed, 32 insertions(+) > > diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c > index 62352d1e6361..a2cd7f865a60 100644 > --- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c > +++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c > @@ -1355,6 +1355,29 @@ static struct omap_hwmod dra7xx_mailbox13_hwmod = { > }, > }; > > +/* > + * 'mcan' class > + * > + */ > +static struct omap_hwmod_class dra76x_mcan_hwmod_class = { > + .name = "mcan", > +}; > + > +/* mcan */ > +static struct omap_hwmod dra76x_mcan_hwmod = { > + .name = "mcan", > + .class = &dra76x_mcan_hwmod_class, > + .clkdm_name = "wkupaon_clkdm", > + .main_clk = "mcan_clk", > + .prcm = { > + .omap4 = { > + .clkctrl_offs = DRA7XX_CM_WKUPAON_ADC_CLKCTRL_OFFSET, > + .context_offs = DRA7XX_RM_WKUPAON_ADC_CONTEXT_OFFSET, > + .modulemode = MODULEMODE_SWCTRL, > + }, > + }, > +}; You should be now able to leave out at least the clkctrl_offs and modulemode here. Please also check if leaving out clkdm_name and main_clk now works :) > @@ -3818,6 +3841,14 @@ static struct omap_hwmod_ocp_if dra7xx_l4_per2__epwmss2 = { > .user = OCP_USER_MPU, > }; > > +/* l3_main_1 -> mcan */ > +static struct omap_hwmod_ocp_if dra76x_l3_main_1__mcan = { > + .master = &dra7xx_l3_main_1_hwmod, > + .slave = &dra76x_mcan_hwmod, > + .clk = "l3_iclk_div", > + .user = OCP_USER_MPU | OCP_USER_SDMA, > +}; I think this we still need though for the clk. Tero, do you have any comments on what all clocks can now be left out? Regards, Tony