From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AF8E6C433EF for ; Wed, 29 Dec 2021 18:49:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229946AbhL2Stk (ORCPT ); Wed, 29 Dec 2021 13:49:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229794AbhL2Stj (ORCPT ); Wed, 29 Dec 2021 13:49:39 -0500 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D6DCC061574; Wed, 29 Dec 2021 10:49:38 -0800 (PST) Received: by mail-wm1-x32f.google.com with SMTP id n14-20020a7bcbce000000b00332f4abf43fso7373896wmi.0; Wed, 29 Dec 2021 10:49:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id; bh=G0Og+6NFv6SaO+M7/U1stCtiQeGo6vEyctBfh1ct+NQ=; b=awhOfFI0n/FtrovD0sUPAiLgT2R5Mt7EByWUIQLtNKa/PrB+s0kkPwb8wG/7r7rF5Y 0olUmcn/jI31TTgfs0m3SYak5mUPHh6I08UsEHSHTAgpDGNiSn58VraAmldH+aeX/4er 1Zx0dk6KOvvsA8bCcd4xXwHXdHLIM5USs1Nro073QDX7wdB4bEDO96b0297vAZO3kCza cnGKliWB2gT8Ns+3qK9SIvPxUWwWj1PrksJYCDINo6h0Y6cIOuNXnYsfQhC7TTBwa5B2 MagO/PDqG4hJRBIJOfPNEytkm8JaBRdTRpSMSUpRojcIFqOD0UYSGdvWWPwnysNFc/OG cYnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=G0Og+6NFv6SaO+M7/U1stCtiQeGo6vEyctBfh1ct+NQ=; b=orFXkCyXBkJUJUDLBK5+T6pdg4NjuU39SCAe4XK7tgUXP+dVqj7a99rf8NnY/4LsL7 HTOVBbkNFy8Clzs2dgThdL48rrDSg0mCsasKNhAZQXe0W/p2sH04k2QjSazo4KVxouEX jY5aW8xNzVoOQitaIwj62+HnY28gsd3T8VM3QFnsjMceCnM7CoL3PK60WMFOVnRWS0SA 7B2GXxOVew/ukc3iYQnec+y7bbtXw3cKIVZ5RpYriAXsIVvUc/xXuZyHkeSjVie/Ohh5 0HiTyZyLIqbAGmbC0TNs/4A/8vLkZb6WO0WISsfqF0cr+SHp7nmrNn9g/fxkvglCmpB2 v39w== X-Gm-Message-State: AOAM532jnlCHJja5qbatycoD7UdwqcAIg/1QfntAxGJRup+/GdNEkqjK jngTa6FmY7hw2WANo1Ba3BA= X-Google-Smtp-Source: ABdhPJxZou4FoIQiYriEye75yWz59pj2EmTtYjlPZrwnyKJqjILkmd7cVuZv8inu85aIEoLt5XYouA== X-Received: by 2002:a1c:494:: with SMTP id 142mr23348978wme.191.1640803775991; Wed, 29 Dec 2021 10:49:35 -0800 (PST) Received: from felia.fritz.box ([2001:16b8:2626:5600:5f5:a4cc:1dcf:a62]) by smtp.gmail.com with ESMTPSA id j85sm35617430wmj.3.2021.12.29.10.49.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Dec 2021 10:49:35 -0800 (PST) From: Lukas Bulwahn To: Daniel Mack , Haojian Zhuang , Robert Jarzmik , Russell King , Philipp Zabel , Paul Parsons , Marek Vasut , Tomas Cech , Sergey Lapin , linux-arm-kernel@lists.infradead.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Lukas Bulwahn Subject: [PATCH] arm: pxa: remove dead and obsolete IrDA initialization Date: Wed, 29 Dec 2021 19:48:54 +0100 Message-Id: <20211229184854.3466-1-lukas.bulwahn@gmail.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit d64c2a76123f ("staging: irda: remove the irda network stack and drivers") removes the Intel PXA2xx Internal FICP driver, and the config PXA_FICP and the config IRDA. Further, this removes any proper effect from the setup functions in the file ./include/linux/platform_data/irda-pxaficp.h. So, delete all users in arch/arm/mach-pxa/ and this header file. Clean up radically various left-over of IRDA in the ./arch/arm/mach-pxa. Signed-off-by: Lukas Bulwahn --- arch/arm/mach-pxa/balloon3.c | 18 ----- arch/arm/mach-pxa/corgi.c | 10 --- arch/arm/mach-pxa/devices.c | 42 ------------ arch/arm/mach-pxa/eseries.c | 8 --- arch/arm/mach-pxa/hx4700.c | 11 --- arch/arm/mach-pxa/include/mach/eseries-gpio.h | 3 - arch/arm/mach-pxa/lpd270.c | 1 - arch/arm/mach-pxa/lubbock.c | 22 ------ arch/arm/mach-pxa/magician.c | 12 ---- arch/arm/mach-pxa/mainstone.c | 27 -------- arch/arm/mach-pxa/palm27x.c | 16 ----- arch/arm/mach-pxa/palm27x.h | 6 -- arch/arm/mach-pxa/palmld.c | 2 - arch/arm/mach-pxa/palmt5.c | 2 - arch/arm/mach-pxa/palmtc.c | 19 ------ arch/arm/mach-pxa/palmte2.c | 9 --- arch/arm/mach-pxa/palmtreo.c | 2 - arch/arm/mach-pxa/palmtx.c | 2 - arch/arm/mach-pxa/palmz72.c | 2 - arch/arm/mach-pxa/poodle.c | 11 --- arch/arm/mach-pxa/pxa2xx.c | 29 -------- arch/arm/mach-pxa/spitz.c | 23 ------- arch/arm/mach-pxa/tosa.c | 64 ------------------ arch/arm/mach-pxa/trizeps4.c | 67 ------------------- include/linux/platform_data/irda-pxaficp.h | 26 ------- 25 files changed, 434 deletions(-) delete mode 100644 include/linux/platform_data/irda-pxaficp.h diff --git a/arch/arm/mach-pxa/balloon3.c b/arch/arm/mach-pxa/balloon3.c index 26140249c784..9cf9dca337e8 100644 --- a/arch/arm/mach-pxa/balloon3.c +++ b/arch/arm/mach-pxa/balloon3.c @@ -46,7 +46,6 @@ #include #include "udc.h" #include "pxa27x-udc.h" -#include #include #include "generic.h" @@ -330,22 +329,6 @@ static void __init balloon3_udc_init(void) static inline void balloon3_udc_init(void) {} #endif -/****************************************************************************** - * IrDA - ******************************************************************************/ -#if defined(CONFIG_IRDA) || defined(CONFIG_IRDA_MODULE) -static struct pxaficp_platform_data balloon3_ficp_platform_data = { - .transceiver_cap = IR_FIRMODE | IR_SIRMODE | IR_OFF, -}; - -static void __init balloon3_irda_init(void) -{ - pxa_set_ficp_info(&balloon3_ficp_platform_data); -} -#else -static inline void balloon3_irda_init(void) {} -#endif - /****************************************************************************** * USB Host ******************************************************************************/ @@ -780,7 +763,6 @@ static void __init balloon3_init(void) pxa_set_stuart_info(NULL); balloon3_i2c_init(); - balloon3_irda_init(); balloon3_lcd_init(); balloon3_leds_init(); balloon3_mmc_init(); diff --git a/arch/arm/mach-pxa/corgi.c b/arch/arm/mach-pxa/corgi.c index 593c7f793da5..7e9764911bf6 100644 --- a/arch/arm/mach-pxa/corgi.c +++ b/arch/arm/mach-pxa/corgi.c @@ -47,7 +47,6 @@ #include #include "pxa25x.h" -#include #include #include "udc.h" #include @@ -508,14 +507,6 @@ static struct gpiod_lookup_table corgi_mci_gpio_table = { }, }; -/* - * Irda - */ -static struct pxaficp_platform_data corgi_ficp_platform_data = { - .gpio_pwdown = CORGI_GPIO_IR_ON, - .transceiver_cap = IR_SIRMODE | IR_OFF, -}; - /* * USB Device Controller @@ -750,7 +741,6 @@ static void __init corgi_init(void) pxa_set_udc_info(&udc_info); gpiod_add_lookup_table(&corgi_mci_gpio_table); pxa_set_mci_info(&corgi_mci_platform_data); - pxa_set_ficp_info(&corgi_ficp_platform_data); pxa_set_i2c_info(NULL); i2c_register_board_info(0, ARRAY_AND_SIZE(corgi_i2c_devices)); diff --git a/arch/arm/mach-pxa/devices.c b/arch/arm/mach-pxa/devices.c index 09b8495f3fd9..d475a934e8c3 100644 --- a/arch/arm/mach-pxa/devices.c +++ b/arch/arm/mach-pxa/devices.c @@ -14,7 +14,6 @@ #include #include #include -#include #include #include #include @@ -376,47 +375,6 @@ struct platform_device pxa_device_asoc_platform = { .id = -1, }; -static u64 pxaficp_dmamask = ~(u32)0; - -static struct resource pxa_ir_resources[] = { - [0] = { - .start = IRQ_STUART, - .end = IRQ_STUART, - .flags = IORESOURCE_IRQ, - }, - [1] = { - .start = IRQ_ICP, - .end = IRQ_ICP, - .flags = IORESOURCE_IRQ, - }, - [3] = { - .start = 0x40800000, - .end = 0x4080001b, - .flags = IORESOURCE_MEM, - }, - [4] = { - .start = 0x40700000, - .end = 0x40700023, - .flags = IORESOURCE_MEM, - }, -}; - -struct platform_device pxa_device_ficp = { - .name = "pxa2xx-ir", - .id = -1, - .num_resources = ARRAY_SIZE(pxa_ir_resources), - .resource = pxa_ir_resources, - .dev = { - .dma_mask = &pxaficp_dmamask, - .coherent_dma_mask = 0xffffffff, - }, -}; - -void __init pxa_set_ficp_info(struct pxaficp_platform_data *info) -{ - pxa_register_device(&pxa_device_ficp, info); -} - static struct resource pxa_rtc_resources[] = { [0] = { .start = 0x40900000, diff --git a/arch/arm/mach-pxa/eseries.c b/arch/arm/mach-pxa/eseries.c index f37c44b6139d..5631ab600ad6 100644 --- a/arch/arm/mach-pxa/eseries.c +++ b/arch/arm/mach-pxa/eseries.c @@ -37,7 +37,6 @@ #include #include #include "udc.h" -#include #include "devices.h" #include "generic.h" @@ -67,11 +66,6 @@ static struct platform_device e7xx_gpio_vbus __maybe_unused = { .id = -1, }; -struct pxaficp_platform_data e7xx_ficp_platform_data = { - .gpio_pwdown = GPIO_E7XX_IR_OFF, - .transceiver_cap = IR_SIRMODE | IR_OFF, -}; - int eseries_tmio_enable(struct platform_device *dev) { /* Reset - bring SUSPEND high before PCLR */ @@ -542,7 +536,6 @@ static void __init e740_init(void) gpiod_add_lookup_table(&e7xx_gpio_vbus_gpiod_table); platform_add_devices(ARRAY_AND_SIZE(e740_devices)); pxa_set_ac97_info(NULL); - pxa_set_ficp_info(&e7xx_ficp_platform_data); } MACHINE_START(E740, "Toshiba e740") @@ -742,7 +735,6 @@ static void __init e750_init(void) gpiod_add_lookup_table(&e7xx_gpio_vbus_gpiod_table); platform_add_devices(ARRAY_AND_SIZE(e750_devices)); pxa_set_ac97_info(NULL); - pxa_set_ficp_info(&e7xx_ficp_platform_data); } MACHINE_START(E750, "Toshiba e750") diff --git a/arch/arm/mach-pxa/hx4700.c b/arch/arm/mach-pxa/hx4700.c index 1d4c5db54be2..1b4ff555c604 100644 --- a/arch/arm/mach-pxa/hx4700.c +++ b/arch/arm/mach-pxa/hx4700.c @@ -42,7 +42,6 @@ #include "pxa27x.h" #include -#include #include #include