Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7143039imu; Thu, 31 Jan 2019 05:45:42 -0800 (PST) X-Google-Smtp-Source: ALg8bN7iFD/K+/KbOKsaSO6lRzxONS9wdg0U2GvquSt7ISY3VPz5Tv+yfS/sY5bUyGE22DM9iN+g X-Received: by 2002:a17:902:7c05:: with SMTP id x5mr34240015pll.273.1548942342921; Thu, 31 Jan 2019 05:45:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548942342; cv=none; d=google.com; s=arc-20160816; b=XF0A1XclBkDggfgOd7F+rmXQmTrq/+2SnAmHY0hOQ8K6vAdo+/sp75oZbCqfksKLB1 TWYbhgRjZzs+seutLe9viEwMvqpwTsFSGaFXAvY7XsMwEwcrktojzTSkvg088nAraw0i mNCC5YMNvsACXCY29s73pkJPpbWPCfM9OFwQ3ZaEUAe+J6HAiGEDHCtoI5Fnm+ViKoYc xwSGMOQbO9t1t/C4wSR7hVQRAHLMT8LeolPku+DMtX3BKULs0rvi0YFp2qIh/eaSmTBR 6stO3vl1ZwImqPjoqeaxVMwqEkzc5cpEiyBsNDee1GRwPLQCpulIcuIVWrxvl5bBFFY6 YmfA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=IVtjfjJdrfrUAxYWIg2RkYAV3AoagHAUWgDBm80EJqQ=; b=fNgLpKhQpUNFwcvx2hZSrk9SBxmTv1La6IcLvRQlELg5IIhjeNSIesDo9VENifrids AiyWlkXp2me2JeGXf0sU7e1it9SGdwasPrF4IKfZ2BLIj1cAWPDmHXP8Tqn/mScNqzsZ wpYDMoQrKk2aJMN+/d02QugjvZX4gIsFjQkZ82jdaGSm90ZTLVNggz0doCXjJviI3mTr bH8XH7TpeoYK9PmtePeAOEM+rCzoccXzOh+Y1ppJQmEoBDVPApiUsuiATeIdQMHkcKwg b8rrPNy1zTCeprVY2qTiiZ8xH58ColRmEkEga8dFky+xQQlXvesa9AaAj9hTA2/mWZZt mMmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=isRcx9mW; 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 u131si4439345pgc.287.2019.01.31.05.45.27; Thu, 31 Jan 2019 05:45:42 -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=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=isRcx9mW; 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 S2387745AbfAaNkF (ORCPT + 99 others); Thu, 31 Jan 2019 08:40:05 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:37692 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387707AbfAaNkD (ORCPT ); Thu, 31 Jan 2019 08:40:03 -0500 Received: by mail-wr1-f65.google.com with SMTP id s12so3341817wrt.4 for ; Thu, 31 Jan 2019 05:40:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=IVtjfjJdrfrUAxYWIg2RkYAV3AoagHAUWgDBm80EJqQ=; b=isRcx9mW+RI31av6Dcbwmiw+5pBDfRY828eYpRmdcfhI5YbEcusJ7sfAhK8Wy0De1O xYgIWwi7+iwOI0Zs5pwhFCys0QSqIHrkl72ohszExQQ3tObbCE76zlremfTzVsl0BB77 8npAmi5DrDEQuFeqJpuiVU1kgsPb1+aUoMbTJ90y+4m+jVRcSyXxUQGKv8HUp9bJmKfg AtelJll4scRpriPZ2Ms14WmPs3fGSojNsXbM7OFL0Hi3uVkfiNJnm5Ut6jPhDzkr41gV /8AtFLRaPh8DJoyLSP+HvIxkvSYPF3epPPMlYF9yHWV7Y/0MRQoHRPD0KnLQSp6vwE/X oxwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=IVtjfjJdrfrUAxYWIg2RkYAV3AoagHAUWgDBm80EJqQ=; b=GVVq9Z1dSRECaqNQ+IGh50r9ioqPnbxGNXWfSfFZsTapFN7KufDzwBhcdIeCh8JhNZ ENqdJWgsroYOYA7DEz++gJ0rQEOrXxgBYXa3MKWFQHuy82eb6V1pS148HdF/Rwkf4kiX Fh9FgHqqBvcx/AfXrr3lAYI5N+tx54k6DKyWdRAqqhcaRHT5YjT/KNXYaauDJVTZbedf RtqBEhIQrTM07YHx+hUQNW3AFiYbu2xqv57CkE2VPrUapVha2g9UUzTVGsYz/LjfGEJ1 pr/cAtEJ0RjIvAmKcSZIAqgsatvX8c542dqP1S7M5h0Tu7cpPKvZKHXBxRT3cOwlTCB6 jpMQ== X-Gm-Message-State: AJcUukdGYzROrOcWuPnQ7W2liS1flbeFHklq8VC4WVK3AWukGQSGhql7 KpCXreOFDeioYtksjIQEHDarAw== X-Received: by 2002:a5d:6850:: with SMTP id o16mr35273924wrw.123.1548942000881; Thu, 31 Jan 2019 05:40:00 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id h10sm5479768wmf.44.2019.01.31.05.39.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Jan 2019 05:40:00 -0800 (PST) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Thomas Gleixner , Jason Cooper , Marc Zyngier Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 16/35] ARM: davinci: aintc: move timer-specific irq_set_handler() out of irq.c Date: Thu, 31 Jan 2019 14:39:09 +0100 Message-Id: <20190131133928.17985-17-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190131133928.17985-1-brgl@bgdev.pl> References: <20190131133928.17985-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski I've been unable to figure out exactly why, but it seems that the IRQ_TINT1_TINT34 interrupt for timer 1 needs to be handled as a level irq, not edge like all others. This timer is used by the dsp on dm64* boards only. Let's move the handler setup out of the aintc driver where it's lived since the beginning and into the dm64* SoC-specific files where it belongs. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/dm644x.c | 4 ++++ arch/arm/mach-davinci/dm646x.c | 4 ++++ arch/arm/mach-davinci/irq.c | 1 - 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-davinci/dm644x.c b/arch/arm/mach-davinci/dm644x.c index 24ad7a09aa15..beb97101c881 100644 --- a/arch/arm/mach-davinci/dm644x.c +++ b/arch/arm/mach-davinci/dm644x.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -616,6 +617,9 @@ void __init dm644x_init_time(void) void __iomem *pll1, *psc; struct clk *clk; + /* Needed by the dsp. */ + irq_set_handler(IRQ_TINT1_TINT34, handle_level_irq); + clk_register_fixed_rate(NULL, "ref_clk", NULL, 0, DM644X_REF_FREQ); pll1 = ioremap(DAVINCI_PLL1_BASE, SZ_1K); diff --git a/arch/arm/mach-davinci/dm646x.c b/arch/arm/mach-davinci/dm646x.c index ab02cc93813a..70505c92d5fb 100644 --- a/arch/arm/mach-davinci/dm646x.c +++ b/arch/arm/mach-davinci/dm646x.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -599,6 +600,9 @@ void __init dm646x_init_time(unsigned long ref_clk_rate, void __iomem *pll1, *psc; struct clk *clk; + /* Needed by the dsp. */ + irq_set_handler(IRQ_TINT1_TINT34, handle_level_irq); + clk_register_fixed_rate(NULL, "ref_clk", NULL, 0, ref_clk_rate); clk_register_fixed_rate(NULL, "aux_clkin", NULL, 0, aux_clkin_rate); diff --git a/arch/arm/mach-davinci/irq.c b/arch/arm/mach-davinci/irq.c index d67f443a471d..2e114ad83adc 100644 --- a/arch/arm/mach-davinci/irq.c +++ b/arch/arm/mach-davinci/irq.c @@ -142,6 +142,5 @@ void __init davinci_aintc_init(const struct davinci_aintc_config *config) davinci_aintc_setup_gc(davinci_aintc_base + reg_off, irq_base + irq_off, 32); - irq_set_handler(IRQ_TINT1_TINT34, handle_level_irq); set_handle_irq(davinci_aintc_handle_irq); } -- 2.20.1