Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1858301imj; Fri, 8 Feb 2019 08:28:01 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibe4dp7bTDrQ4NYfKtUi4a18W6moiu4K1mtK9OuGsYmf81C0SFHGW/BLLdNyMAB/be1fewC X-Received: by 2002:a62:3888:: with SMTP id f130mr22604205pfa.132.1549643281171; Fri, 08 Feb 2019 08:28:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549643281; cv=none; d=google.com; s=arc-20160816; b=J60J2LrMvchcyxIvUvnNHy4rZ4FS5it2ZibRb40pFn/5mePHgrAn5n4M2MKzz6uySq 1DGTzhBCBdXITq0jsJG60Zk2myzt2+39aIO9neGA88jwQTLB+P2yuVfpEl+WrKUoMKxr N7gz+EgpT19mz2KBbQYzWsm9RqcDr3d84avacoX1MMnPXgnX92EZy9M/ajHeh2lirSa6 SiFA2IYII2Xon3nExFciegVnEaqhYHTE+mlIdHpWWTVmXVHpHLLg7xL+aIZ3lq4Z8mcl AYmDJbX5rt4Huehru3mDlCdMYaju6wjJAX2t7Lra+eerDkjVl6NEusokrNfRtT5lB8Ll M5Gg== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=4MrPTQfL+aqliH6C1atcII6SPJlu1ysjr91YRTpgFmE=; b=iTlhzee5Ump36zeLxocOKBgsfxZfoonnc7NbD6X3Pnq4iugFTgIOMDYUAbLHeJTlGe eTODgFWE8HFbGKUnPYa3DQI0GAK3SBM18LbT4JHgwPaC9iQUd2EjZPECWHjQKz9nS0Yt S9GWFZ2VNMSRu4DXaPnO+9CpB3e/C1OkrTiyvQZzjpuguCfDb2D0U22q1JyKHlB3KSJe 3lZEVOrW4yhg6lQrZpQ+6rjQGxWzubBalSW1fL7xy3y5hUAVx6rbAsdEUYaG34hwYfh2 h/sdW0YBwglUfAc4sLBO4BmwZC5bQS9J+K0hVjLovZclrriaT9dj22qsexuVMwIimIB0 zIGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=BuJgVxzH; 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 64si2709103pfe.74.2019.02.08.08.27.45; Fri, 08 Feb 2019 08:28:01 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=BuJgVxzH; 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 S1727353AbfBHQ1e (ORCPT + 99 others); Fri, 8 Feb 2019 11:27:34 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:42885 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726524AbfBHQ1d (ORCPT ); Fri, 8 Feb 2019 11:27:33 -0500 Received: by mail-ot1-f65.google.com with SMTP id v23so6706721otk.9 for ; Fri, 08 Feb 2019 08:27:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=4MrPTQfL+aqliH6C1atcII6SPJlu1ysjr91YRTpgFmE=; b=BuJgVxzHyi1y7uQnhs6w7HKPQs4iM0vxEbQNuSuFbEd/7biWtL3H2C7hZKGjafvTvQ sUkJpTsgqUQcaiaFVi5Z4F9pbKQkiFpj1nhw/JIfDE34PPDVkbH+Xw+enEf618vXwGoB VRFwqtHcEdPJ40vNsDFf/MrzMphsCeSGhSVDMtqKpDYtDwDCXGDTyFVVk4lu7lbd5E/6 45xyEBFBF/mwHEIl++wXacjcPSZ6N24LMdI3gy5SjJdKUqKmMl053LSgxMsghLwTEogA RwesFZP6ZKerisv+1tXyhSUi8kTmvbajckU4O+8LIkIvBc3fNv8YndyqeML5VvkDmZhf 8igA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=4MrPTQfL+aqliH6C1atcII6SPJlu1ysjr91YRTpgFmE=; b=r50qiuyDMDwdsjpcRWmKCjJS0VGpiwagBCW91A7cYMzvh4KB1Ysg3hrAr/gYntz6WU 3KawH7wZrgpA8pzhiO3NEfxyAwdU83HUZPL9GPtcSQQhtzDOYxpEWYlWeo3PEb1/dnDO bqNV9wzKfr94bcYRyqd59BVTvDIGd69SoWtLoKgc6TgVZ6k2lLQb90RaDMv4rtoW01u5 lkLzJes8P9qHoMaO3L+MF2OW0m0gEax13zwHEZcggLKqDn6M6zNfbGUaq/cEEBoMRFpx sZ2Q7Ys8TebrsGLKKVtHI8n2vySEy1hWNXnNvSDPD9FVKMxB6hISk6xmcqfo9a2LrK9b e1zQ== X-Gm-Message-State: AHQUAuYJpQipzHqR3p1SF3qJ/TpT6Vsw9prrh/rm1BZePJkzaCC3XD4/ JHQZX+/BSxp/e707owrIIm6r36K/dq74uhEMMwyODehG X-Received: by 2002:a9d:76c5:: with SMTP id p5mr13458873otl.108.1549643252459; Fri, 08 Feb 2019 08:27:32 -0800 (PST) MIME-Version: 1.0 References: <20190131133928.17985-1-brgl@bgdev.pl> <20190131133928.17985-26-brgl@bgdev.pl> <55b5797c-ee0b-c2d8-9eb9-0d681da08018@lechnology.com> In-Reply-To: <55b5797c-ee0b-c2d8-9eb9-0d681da08018@lechnology.com> From: Bartosz Golaszewski Date: Fri, 8 Feb 2019 17:27:21 +0100 Message-ID: Subject: Re: [PATCH 25/35] ARM: davinci: cp-intc: use the new-style config structure To: David Lechner Cc: Bartosz Golaszewski , Sekhar Nori , Kevin Hilman , Thomas Gleixner , Jason Cooper , Marc Zyngier , LKML , arm-soc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org wt., 5 lut 2019 o 01:29 David Lechner napisa=C5=82(a= ): > > On 1/31/19 7:39 AM, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > Modify the cp-intc driver to take all its configuration from the new > > config structure. Stop referencing davinci_soc_info in any way. > > Move the declaration for davinci_cp_intc_init() to > > irq-davinci-cp-intc.h and make it take the new config structure as > > parameter. Convert all users to the new version. > > > > Also: since the two da8xx SoCs default all irq priorities to 7, just > > drop the priority configuration at all and hardcode the channels to 7. > > As mentioned in a comment on a different patch, this isn't strictly > true (although in practice, it probably is). > > This patch deletes a code path with the comment "Default everything > to channel 15 if priority not specified.", so it is possible (although > unlikely) that this patch could change a priority of some IRQ that is > being used. > This only happens if no priorities are specified. Otherwise we just iterate over the provided array and set priorities for all interrupts. Bart > > > > It will simplify the driver code and make our lives easier when it > > comes to device-tree support. > > > > Signed-off-by: Bartosz Golaszewski > > ---