Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1045424ybf; Thu, 27 Feb 2020 04:07:45 -0800 (PST) X-Google-Smtp-Source: APXvYqw0ct2NejBGIJIjV+mlP22U1qb5EnNo05WRFUx16dTNMxbDk4b6v+LFmckkk7lyogEgj6rT X-Received: by 2002:aca:b483:: with SMTP id d125mr3058949oif.167.1582805265086; Thu, 27 Feb 2020 04:07:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582805265; cv=none; d=google.com; s=arc-20160816; b=vW5bpHVB8dao9iiRGMjQzzndRVwd0je/WZ+sD4ocHyON8aXLhdDV0cwY9k8EM7+z2A toNhBGGt4XWLMbaH9n5b5UvrJet70wt+wSmycgWyMadUcz7cDV7tisfrGChGcGbqWq+f VOpF9LRaIxj2/QQYewVv8GxJLg9bsf764FrX1UY7hHG5psUyA9T/91gF3+rqvaTJWssq Dq8ILfmDRN0WlcnNG4VMgs/1IeMvas66s2R2aP9dfz3uiccSZ5L7RtvR9OnjDwcUyACK OlZbluOSNyc9WtRqV9BB+WO153xwzGbBIBG3lAfNR+RWDRhfj0HmD6EhHkkyb+9BsUz3 POFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DLH6Acix5M1BKEcvLfWo58JWvq9L0Umgbaen22R2Dyk=; b=QOZXlH3zfc5Go80keBVr5iy6exDsX9WyVZ39ZhifmuNVqGhiJYhyBZQf1EIODmzQ0i 8FW6UJZhEZYiF7y1MO1P4S3zlxD0rFQSEc9+QXwlTp+KHuMYYDh14lGGEy8yotnnGMHf OCR9J2GLy1o+ypAfD6b+om4+FozR6aFuv4RRSRWTctv3+arLtrFcY6lyNBZH25P+Sfb8 2g3aVZXnynGGWJxTqDWWh7xOgAXRqMvKjXJ1DZRZF2uq8yB6yUMQ6sr4XL6M78X1pnSQ Z2n/G06R9A5aaii+NFowSn1cpS/vl2Z1hWp4dqSeHH3l8dw+ImQdA6lQqufFa/tkh13w RGRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WfasCkiK; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h11si1442674otr.197.2020.02.27.04.07.32; Thu, 27 Feb 2020 04:07:45 -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=@gmail.com header.s=20161025 header.b=WfasCkiK; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728956AbgB0MGW (ORCPT + 99 others); Thu, 27 Feb 2020 07:06:22 -0500 Received: from mail-pj1-f68.google.com ([209.85.216.68]:54990 "EHLO mail-pj1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728926AbgB0MGW (ORCPT ); Thu, 27 Feb 2020 07:06:22 -0500 Received: by mail-pj1-f68.google.com with SMTP id dw13so1044188pjb.4 for ; Thu, 27 Feb 2020 04:06:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=DLH6Acix5M1BKEcvLfWo58JWvq9L0Umgbaen22R2Dyk=; b=WfasCkiK0AFHSjOixeBAKtVxYMbxrTBLRfpwbS+uUi7bvimfuNjq7Dn0bkdAvVxw+v OiMRfyzNwS/ZDBNkTtaiYH+wNXar8pDhjmiajDFOMDXUrTFq/v1aLiyWPkOsAW+MheNl en9VcpHYhqcCft+pnKLNdMgwTHi8F8qFRPg2rPBjbzVqsnzHG30vetWnf6GKQXdFfPJP ytYKiEhUL+dGI/ve7l/LU6RKm0+47nZcZZhRNI6Jpgch14fqCORyKmUI16FR/hDcbaRL 3GZ/NpLf215mlZE6xnxfAsVkBW/n4gCp7Pp2qA7+NLLU5WtTJk0iKzUdPk4uFibj+mHa h5sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=DLH6Acix5M1BKEcvLfWo58JWvq9L0Umgbaen22R2Dyk=; b=WMdSSKuiqJqdPotISx7RheNdRUR7rx7nN+VimHyLkv9vTDUUTLUHeqYRmHDAM1GMaJ j1g18uLrOQesbtLQePI2Uj7HlKFZAlP5tJCfj7eC5Cj9DCe7Bz5XribUvkqwbkRqqVEg 8FKG5LbYEiyWgb8BsiBZJ3+tLJP/MDa5gpA5awePiC7iboJ/Ooz0Vi0BfkBtGHM5rsfL /H99lkvmZHnkgrp2IBc8nTlHBa+jUmGgDsGlJozgnpZlI03ELysSSMCDqw7C8zaa9FQu Xl1HZDcoloUc0LjIhj2OS1hvLuajanb3OS/VS/a9yL9cvLEilhCFBA8QHC2uM4XGh6Vv NE3Q== X-Gm-Message-State: APjAAAV0MaR7gLotRgvj9KLQElE4sM0qjlSxcp969aUaNattVNyGCPop H35ajutppDkdcWYh8k//TThT/HkTYJU= X-Received: by 2002:a17:902:348:: with SMTP id 66mr4232424pld.137.1582805181014; Thu, 27 Feb 2020 04:06:21 -0800 (PST) Received: from localhost ([106.51.232.35]) by smtp.gmail.com with ESMTPSA id a9sm6759999pfo.35.2020.02.27.04.06.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 27 Feb 2020 04:06:20 -0800 (PST) Date: Thu, 27 Feb 2020 17:36:18 +0530 From: afzal mohammed To: Geert Uytterhoeven Cc: Greg Ungerer , Finn Thain , linux-m68k , Linux Kernel Mailing List , Thomas Gleixner Subject: Re: [PATCH v2 06/18] m68k: Replace setup_irq() by request_irq() Message-ID: <20200227120618.GA6312@afzalpc> References: <73c3ad08-963d-fea2-91d7-b06e4ef8d3ef@linux-m68k.org> <20200227081805.GA5746@afzalpc> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Geert, On Thu, Feb 27, 2020 at 09:32:46AM +0100, Geert Uytterhoeven wrote: > On Thu, Feb 27, 2020 at 9:18 AM afzal mohammed wrote: > > Since most of the existing setup_irq() didn't even check & handle > > error return, my first thought was just s/setup_irq/request_irq, it > > was easier from scripting pointing of view. i felt uncomfortable doing > > nothing in case of error. Also noted that request_irq() definition has > > a "__much_check", so decided to add it. > > Most (all?) of the code calling setup_irq() is very old, and most of the calls > happen very early, so any such failures are hard failures that prevent the > system from booting at all. Hence printing a message may be futile, as it > may happen before the console has been initialized (modulo early-printk). The main reason to at least acknowledge the return value was due to __much_check in request_irq() definition, though w/ the compiler that i used, there were no warnings, i feared that it might warn w/ some other compilers & in some cases (may be W=[1-3] ?). Also as most are tick timers, if request_irq() fails, system would die in that case. But i have seen (iirc in MIPS), in the same execution sequence multiple setup_irq() invocations, so every instance might not be unavoidable for system boot. For tick timer cases, a BUG() might be suitable, but i didn't even think of that option as that is a recipe for getting trashed from head penguin (though he would not care trivial patches like this), same scenario w/ adding warnings. > Just my 2 €c. That is my 2 paise, but per exchange rate it will be far less ;) Regards afzal