Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751473AbdINQ7k (ORCPT ); Thu, 14 Sep 2017 12:59:40 -0400 Received: from mail-bn3nam01on0074.outbound.protection.outlook.com ([104.47.33.74]:56192 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751277AbdINQ7h (ORCPT ); Thu, 14 Sep 2017 12:59:37 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=David.Daney@cavium.com; Subject: Re: [PATCH] gpio: thunderx: remove unused .map() hook from irq_domain_ops To: Masahiro Yamada , linux-gpio@vger.kernel.org, Linus Walleij , David Daney Cc: Thomas Gleixner , Jason Cooper , Marc Zyngier , linux-kernel@vger.kernel.org References: <1505356645-19765-1-git-send-email-yamada.masahiro@socionext.com> From: David Daney Message-ID: Date: Thu, 14 Sep 2017 09:59:26 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <1505356645-19765-1-git-send-email-yamada.masahiro@socionext.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [12.145.98.253] X-ClientProxiedBy: DM5PR07CA0028.namprd07.prod.outlook.com (10.168.109.14) To BN6PR07MB3491.namprd07.prod.outlook.com (10.161.153.30) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8e6ff299-d4ba-4441-6367-08d4fb91f7b8 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:BN6PR07MB3491; X-Microsoft-Exchange-Diagnostics: 1;BN6PR07MB3491;3:fCv0DfGRC1L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zWAfKhdCPPBQbdNwZENfESj9LopCLljU1DrPROj/C+qpaYwVijR/H+WOjaQv6VFCDat79VqVT7D/cj1kYtlD8wDEgnVL7EbZQoB4RgUN08F4x9M3G/qb4gr7sv+vPhwUScY4R9e9BjpUne3dce6wWoey4TC3vBAS2clorUljrZiek1pehp2Yx+MqNMnxmQIKroGecYxhWY1INZ5kqIVjTuGDhSledDklFmoQGclmcBzjJvK7fNbBGhaO2OIdJpmeaJanP4o7GscXCh8jT/nDte6ZaE+rQzwSk5s5Okk/SYjoLl9LqjoPfqZhJm6vYsqnJh9nRwDzXdokeEHuGOlNvamlcnnuU0jnV0r3s6woJOs3IdNYm3mZiDg6ObKxJXc2QOQ5GpcjSiLZ4GXxgQOlMd5cAlYkXyee4xk3Wl2VBhvbF2orLY=;4:hq37OEz8509rKJUwb4eaOkwvmTB/HRq+IdMJ2A3acs0oIopfysTlJzimYd5UoRf1mLqFUF7wouMeBriXshy/vbcbYfjjaNPUclfsf2Ye0vyTD3cTkCThSIRaWSHHuaQnkD56J1sngwHjf7rJkQcsoy4DdM9cNT1I1mQiKr4q+Va6p4YbEE+w0mj59D8Gn9q3Hs1YOiOKOqgcUKKhyqpHu8wQwxN//0n1nDbkgdmuoHRUeAuxU5HQ9K46RJD+zPs4 X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(93006095)(3002001)(100000703101)(100105400095)(10201501046)(6041248)(20161123560025)(20161123558100)(20161123562025)(20161123555025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BN6PR07MB3491;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BN6PR07MB3491; X-Forefront-PRVS: 0430FA5CB7 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(6009001)(376002)(346002)(24454002)(189002)(199003)(377454003)(50466002)(230700001)(5660300001)(50986999)(65826007)(69596002)(54356999)(66066001)(31696002)(76176999)(2906002)(65956001)(64126003)(4001350100001)(65806001)(16526017)(47776003)(97736004)(101416001)(31686004)(33646002)(6246003)(316002)(189998001)(81166006)(8936002)(81156014)(23676002)(53546010)(83506001)(305945005)(54906002)(7736002)(53936002)(6512007)(105586002)(72206003)(8676002)(106356001)(229853002)(36756003)(4326008)(6666003)(42882006)(68736007)(2950100002)(478600001)(53416004)(76506005)(6486002)(6116002)(3846002)(6506006)(25786009)(142923001);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR07MB3491;H:localhost.caveonetworks.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjA3TUIzNDkxOzIzOmZlNFp3K3FVaktIUERPZ2cxTkZ2U1ZyVE4r?= =?utf-8?B?SmVkYUZwc3F2alAxekdqSTBkQ2JFWlpDaCtGNlNmMjltalN5N2hIZnRPb1NT?= =?utf-8?B?RGxyVURZRXRYYjFaL09HQkRMTXI4djhobXpLYWNwU2Q5aUQxQVlSYUdOVlhH?= =?utf-8?B?eGt0ZEY3RS9maWpIekxkZzFuSVJ4QzhaMEtlajdPb2FhcHhjRUd6S2hML3NI?= =?utf-8?B?Y3hoOVZPYytjVEtEQzRqY00zNExuZDZLNEUzb1VNNkJ1OUloNkFxNEVYMWFU?= =?utf-8?B?bnQrRU9wczRhSDF2b2NmdGZ5NDd0QTdvR0poMEtFMkNYYUV4T0xLRWpDWDNV?= =?utf-8?B?Q01CN3lwbSt6U0ZlbHhsL04zcXA0N052R1lhSUt4UC80SDlHTlhaTzBnbCsr?= =?utf-8?B?OXpYMWR2ZTRFdG5QNW9TdnB4c05p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RU4tqC3/1Pi8uXW92fNQXLsLQip/CZ19WCFqvjB1DZ77ePrrLP/U6MDEDYI+rrv32/2HEnDTxZOA==;5:jsmTtxCPyH9G38AkFRRU4TOcwJMk9UllQW+lHjhUktjEZ0qoQ7GXBYehPOlbZxiq0CU0yOT71aVGX6SKmtv+Dj0C6KKQi+G51WEdVo0o8/hVRkqXAgKOMkDGkhbeX5nHSux9TMlIRun5S/HNOoYyXw==;24:syV2GAZbLzt3vbaUrz7nhezxEUH3CI7Ou5ViL6vkxth/rsmqrDvcrkgXjKtE0O0tfCawwD7atN2Vw0eOuo9VtK83maAzHqNWjGqDX4Z5AkM=;7:DN3npr9jvlYn6ch7j/qld1ERCsmtQ/LA3kyXJO26k540N07xmwHf1zTmtG1Qk8UqjltnJcWYFBPczJEUBT4tG2OlCHjgLJ0NJ/n2Bk3xHVn9OhrSfeyGNZ4OscPPzeSbWo6Ni+KM6Nx/t80aooxOUNm37b0HvFkMQutTempEAMhY9Xx7nkUqjlGPSDKm46/Yfe0hbjuBiWcJV4yqLB2UZBWTTGeHHgvpPtedbsLrFyw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2017 16:59:29.8624 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3491 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1479 Lines: 51 On 09/13/2017 07:37 PM, Masahiro Yamada wrote: > This driver implements .alloc() hook, so .map() is not used. > Have you tested this? I will have to test this on a real system next week before I can really comment on it. David. > Signed-off-by: Masahiro Yamada > --- > > drivers/gpio/gpio-thunderx.c | 13 ------------- > 1 file changed, 13 deletions(-) > > diff --git a/drivers/gpio/gpio-thunderx.c b/drivers/gpio/gpio-thunderx.c > index 57efb25..b5adb79 100644 > --- a/drivers/gpio/gpio-thunderx.c > +++ b/drivers/gpio/gpio-thunderx.c > @@ -417,18 +417,6 @@ static struct irq_chip thunderx_gpio_irq_chip = { > .flags = IRQCHIP_SET_TYPE_MASKED > }; > > -static int thunderx_gpio_irq_map(struct irq_domain *d, unsigned int irq, > - irq_hw_number_t hwirq) > -{ > - struct thunderx_gpio *txgpio = d->host_data; > - > - if (hwirq >= txgpio->chip.ngpio) > - return -EINVAL; > - if (!thunderx_gpio_is_gpio_nowarn(txgpio, hwirq)) > - return -EPERM; > - return 0; > -} > - > static int thunderx_gpio_irq_translate(struct irq_domain *d, > struct irq_fwspec *fwspec, > irq_hw_number_t *hwirq, > @@ -455,7 +443,6 @@ static int thunderx_gpio_irq_alloc(struct irq_domain *d, unsigned int virq, > } > > static const struct irq_domain_ops thunderx_gpio_irqd_ops = { > - .map = thunderx_gpio_irq_map, > .alloc = thunderx_gpio_irq_alloc, > .translate = thunderx_gpio_irq_translate > }; >