From patchwork Tue Feb 13 01:32:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Anna X-Patchwork-Id: 128186 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp3763817ljc; Mon, 12 Feb 2018 17:33:11 -0800 (PST) X-Google-Smtp-Source: AH8x227cKCD8pwJPX1d8ZjuY4xAy5GFLiuUPynQ0mGxMBOKRRtrAyAyjZaS7Y4YWsXrutcmaiyT2 X-Received: by 10.99.6.85 with SMTP id 82mr5096535pgg.181.1518485591367; Mon, 12 Feb 2018 17:33:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518485591; cv=none; d=google.com; s=arc-20160816; b=kDj7cRB9LZUIiqOY3cULX09e6XzFg2ZZJuSYt329x5a6xQ658r25RK/Dcj7Yj+TsKp Lao5gw0Dv708vnVeMpeNMqjLUpMfkcM/2PlSUqwUZN1rEKCpLt/8cLCK73dNMJmkPl21 3L/uOWRqAGLG6dhB710KmWWrw9Gwo0WM0V31P1flz10AbzmGXdVvuHEsPvJg/yfYrcqV FBIREWcS7pGZvxK0HbqUflCyy3/8i4lWzo4Q88TLpPVbxsOv0v2ayW4fbvdDvOkoGGs5 J+SUQiy+fT4eyjczJpuTHB9RjgVAQ/5QWPJ+HhSq4B0AshSK3s+l3b9KlaAO1Zampkox y5jQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature:arc-authentication-results; bh=+DDmf8SA/ET5aZNrfcqQWVmrvemtfiOA6GYQ4Z85NN4=; b=ua9168Lzi/yDicRC4IBDW5vWvxQ1EjYUMhRblSzbE+lisEXnqkhuKLlH9GMspT5RXf Guo4ax7/F3wRU2kf2Lc6cWI4hOhdb3dlWuo13ZucTfngmv1QTKHu0kT+oVCkgFblsl+s Sh5i7uXlyOxgp8zO/dsL6RP2Obo8EODagYOyvikOQj7IKwskxWxERYUMqsittVHh2MR5 wNGtlokkygi7LVOd8QwFRXooeE8101+Jkf2GKYzHrwNeT0O5fYsvgcQkwlfI0gX+6Axi +JqzmCjmBOJAE5tlHef9/OVpj2OmGuWwnbiLi2+thn9oFKPifr3EZCYJ5dcpA4PnAxiC Tpbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=jd8ziFiR; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=fail (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 m10-v6si343954plt.185.2018.02.12.17.33.11; Mon, 12 Feb 2018 17:33:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=jd8ziFiR; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933148AbeBMBdH (ORCPT + 5 others); Mon, 12 Feb 2018 20:33:07 -0500 Received: from fllnx209.ext.ti.com ([198.47.19.16]:39646 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933080AbeBMBdF (ORCPT ); Mon, 12 Feb 2018 20:33:05 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id w1D1Wkcv008316; Mon, 12 Feb 2018 19:32:46 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1518485566; bh=gQi/vn2iWo2dNgK3GMhClWxpWX4VYyStx7bwjcXbfNo=; h=From:To:CC:Subject:Date; b=jd8ziFiR8r9q6aDgrGD/XHSr0V5ic67dKrivNtDXRXiqraoUTxAYE+JsiZLAbR91C 7HVtFmYmcZXsdjMQFq5yoIdfW3Ev2byETgprVbUHPZibvG+qKAwAwZBvLorxfGc+Xm swF9dOG8JA6mIEMW85f5w1AoPNPfquf9by6p3E9Q= Received: from DFLE101.ent.ti.com (dfle101.ent.ti.com [10.64.6.22]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1D1Wk0i005698; Mon, 12 Feb 2018 19:32:46 -0600 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Mon, 12 Feb 2018 19:32:45 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Mon, 12 Feb 2018 19:32:45 -0600 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1D1Wjcp005690; Mon, 12 Feb 2018 19:32:45 -0600 Received: from localhost (irmo.dhcp.ti.com [128.247.58.153]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id w1D1Wjx01759; Mon, 12 Feb 2018 19:32:45 -0600 (CST) From: Suman Anna To: Tony Lindgren CC: , , Tero Kristo , Keerthy , Suman Anna Subject: [PATCH 0/9] Some OMAP2+ legacy hwmod data cleanup Date: Mon, 12 Feb 2018 19:32:34 -0600 Message-ID: <20180213013243.8378-1-s-anna@ti.com> X-Mailer: git-send-email 2.15.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Hi Tony, The following series cleans up some legacy dev_attr data associated with OMAP DMTimer, I2C, McBSP, McSPI and GPIO modules and removes roughly ~500 lines. Patches are based on v4.16-rc1. I have build tested for both omap2plus and omap1 defconfigs, and booted on a few OMAP4+ boards that I have on my desk. Here is the patch summary: 1. First two patches fixes header inclusion in omap-dmaengine.h and hsmmc-omap.h as I am getting build errors on subsequent patches when I removed some of the platform_data header files. 2. Patches 3 through 7 remove the .dev_attr data for the above modules from various hwmod data files and some macros from McSPI & McBSP platform data header files 3. Patch 8 moves the plat-omap/include/plat/i2c.h into mach-omap1 folder as there is no common i2c code in plat-omap folder anymore. 4. Last patch is a minor cleanup of gpio headers from couple of files. Some important notes/comments: - The DMTimer patch cleanup will conflict with Keerthy's current dmtimer-> clocksource series, but ideally he wouldn't need to convert the plat/dmtimer.h into a clocksource header with the removal of the plat/dmtimer.h inclusion from the hwmod data files. - I found some gaps w.r.t DMTimers on DM814x/DM816x platforms, and haven't fixed them. Both seems to have DMTimer1 through 8, but only DMTimers 1, 2 and 3 are defined in dm814x.dtsi, while dm816x.dtsi is missing DMTimer8. DMTimer3 hwmod is not in the dm814x hwmod list, while DMTimer8 is left out altogther. The timer capabilities are also different between the hwmod data files (lists always-on) which is missing from corresponding dts files. Not sure which one is correct. This leaves the hsmmc-omap and omap-dma pieces still using the .dev_attr. The former is only used by one OMAP3 board, so can be cleaned up if we limit the init code just for that one board. regards Suman Suman Anna (9): dmaengine: omap-dma: include header for bool type mmc: hsmmc_omap: include types.h and provide header inclusion guard ARM: OMAP2+: Cleanup omap_gpio_dev_attr usage ARM: OMAP2+: Cleanup omap_i2c_dev_attr usage ARM: OMAP2+: Cleanup omap_timer_capability_dev_attr usage ARM: OMAP2+: Cleanup omap2_spi_dev_attr and other legacy data ARM: OMAP2+: Cleanup omap_mcbsp_dev_attr and other legacy data ARM: OMAP: Move plat/i2c.h into mach-omap1 folder ARM: OMAP2+: Remove unused gpio header file references arch/arm/mach-omap1/common.h | 3 +- arch/arm/mach-omap1/i2c.c | 2 - .../{plat-omap/include/plat => mach-omap1}/i2c.h | 9 +- arch/arm/mach-omap2/devices.c | 2 +- arch/arm/mach-omap2/hsmmc.c | 2 - arch/arm/mach-omap2/i2c.h | 15 +-- arch/arm/mach-omap2/msdi.c | 1 - arch/arm/mach-omap2/omap_hwmod_2420_data.c | 11 -- arch/arm/mach-omap2/omap_hwmod_2430_data.c | 18 ---- arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c | 60 ----------- .../mach-omap2/omap_hwmod_33xx_43xx_common_data.h | 3 - .../mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c | 23 ---- arch/arm/mach-omap2/omap_hwmod_33xx_data.c | 4 - arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 116 --------------------- arch/arm/mach-omap2/omap_hwmod_43xx_data.c | 8 -- arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 75 ------------- arch/arm/mach-omap2/omap_hwmod_54xx_data.c | 54 ---------- arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 53 ---------- arch/arm/mach-omap2/omap_hwmod_81xx_data.c | 29 ------ arch/arm/mach-omap2/omap_hwmod_common_data.h | 1 - arch/arm/plat-omap/include/plat/dmtimer.h | 4 - include/linux/omap-dmaengine.h | 2 + include/linux/platform_data/asoc-ti-mcbsp.h | 12 --- include/linux/platform_data/gpio-omap.h | 5 - include/linux/platform_data/hsmmc-omap.h | 8 ++ include/linux/platform_data/spi-omap2-mcspi.h | 8 -- 26 files changed, 16 insertions(+), 512 deletions(-) rename arch/arm/{plat-omap/include/plat => mach-omap1}/i2c.h (90%) -- 2.15.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html