Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1325193ybh; Sun, 15 Mar 2020 00:13:25 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuaTy1SvesPi4EAxUYaIDfebc+VTZESzn/lGtkHPeE1Os1poRTNn+0Q8jBiVjG0kynp3MZp X-Received: by 2002:a9d:1a2:: with SMTP id e31mr18601660ote.30.1584256405374; Sun, 15 Mar 2020 00:13:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584256405; cv=none; d=google.com; s=arc-20160816; b=xj/U8fcb9VW8dCR6ObPcN18h7eg+L01vGRSZJmHlAut+KibIswIc5VA7gVuUsTKrEY smfFLXcUb6jn2yktTom6N17vk4zuQXcUa4p+Uhk3hVnBOgrL+nuyh7WxJ1SZu7PSejIG 1hIwkIfecYzych10kuThx39Aj2fATJoAr1QnHnRL5g/RBsk15sl8KpFM5/4xAbWDfDOU Fm6Hcr5mFba05Zka1j38EmU7xHNdthgB6iVsX8RpRMggrsXe1AaGK5r5mECsnTBoFwuN N53p1im0uGNIlIAd/djeuZCux4NZpdEcOAGj7n0XfEzMjsLJfiC+ogkuh+JN5BOCPSeU rYSA== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Iv77R9xIf2Zpsv1uSDBTkW8/S6yCOSOT3Zqw79KydcQ=; b=s2y7N99Sa3Sb/dAcQkmi6Ivyc2ojU/kwkJl5fRcwIR9WemrM+evY48M1bDBmg5THo+ CcTy7VfKbxqVvGOiohf7nYaRjjjLaKIU99F8rDn8ZtZ0eDfKYbTiuiKVGeDWPQLbWMUo zG/tBEkmUG6JUyfiAYT6wYmEByP9MvppRMTvuWBkRfEUegxdF6wrmZq/sQLFF+rIQnfY 68/6B4htvDm39S/d+ujr6QCcoqNhJEHNy/4YSHwoOdqgTwwe/7qefpcCoEcyXteAc+B0 TNEChYgAMjDxvMA2q04ArWqbzJF5wx/uSSd4d5jcGM5iruqM2i85ve004UM6BTpUuTak Lcwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jY85eJ2U; 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 i7si7942767otp.96.2020.03.15.00.13.11; Sun, 15 Mar 2020 00:13:25 -0700 (PDT) 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=jY85eJ2U; 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 S1727259AbgCOHL6 (ORCPT + 99 others); Sun, 15 Mar 2020 03:11:58 -0400 Received: from mail-oi1-f195.google.com ([209.85.167.195]:36198 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727012AbgCOHL5 (ORCPT ); Sun, 15 Mar 2020 03:11:57 -0400 Received: by mail-oi1-f195.google.com with SMTP id k18so14325929oib.3; Sun, 15 Mar 2020 00:11:57 -0700 (PDT) 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:in-reply-to:user-agent; bh=Iv77R9xIf2Zpsv1uSDBTkW8/S6yCOSOT3Zqw79KydcQ=; b=jY85eJ2U5VTlShse99xoMUEpxK9C3/jNRTt4TsSlUV/X/A9mb0yc9Izf++OUtEaXeY aqB0crDjj5kG9Am46iR8uxP4K8MYsc2uVSPxUjJfQZJUTISZPPwy7G0edlrcDMbgtK3L 2dEU6jA8WppacltoUkYSR7x9D8b8xKv8pD0nj2++nLlDFFr/1aNIWDnGzLta+xCkfbnU fTwyrRhMMWO+bfBW2fM2T/VAXW4CtkxvdNLdiYgZqj28Zg+IEsy1FaRToVHFvcNkqDf2 ygwxG9Z+6SEvS29n4h6JzvVojUA1hqmJ9rmGYA2hdpY/lFZdi7YJhHab2SjcQ8/o/8uE yWTQ== 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:in-reply-to:user-agent; bh=Iv77R9xIf2Zpsv1uSDBTkW8/S6yCOSOT3Zqw79KydcQ=; b=EFJUS2pgS0Qo7NJ/WwGsoF0BoXlBo9i5JRFhwSJhs5VMwQbcgIhGm2jokHZPqs41OL N90ONAIWhvR8Avk8RImrX5u5tGIpQSasGbYEZEre8pTvY50kl2pwR4Ywy1amN2oNnRJH oDIPODC7kncnJQGPFFMEH+RdunNGGxnMfYI+eoUOSihPm0P1XPwfuyEu3Mxl2mwd6JIh UCh6R6HNi1yKKmV7YO7hG8KsdVBhkzKZ+MSofSFVsRKiXWsOwrEHpeKmGk6TfLJNqxSh 02W15HR+lBlCgeLFfLsqPbaQAODwjpq28l0X6if1V9rfwY7X33tXFD/8wxicQ/2xeXwX 84iA== X-Gm-Message-State: ANhLgQ0pQxTzjyiaG0Vzx3lB1ckE7/xhIQ5sHEqb0SE4NOvQntQrRA2+ f+yQTunzvVoXtvtFBYf9CZ4= X-Received: by 2002:aca:aa55:: with SMTP id t82mr13291293oie.147.1584256316688; Sun, 15 Mar 2020 00:11:56 -0700 (PDT) Received: from ubuntu-m2-xlarge-x86 ([2604:1380:4111:8b00::1]) by smtp.gmail.com with ESMTPSA id c3sm8649193otl.81.2020.03.15.00.11.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Mar 2020 00:11:56 -0700 (PDT) Date: Sun, 15 Mar 2020 00:11:54 -0700 From: Nathan Chancellor To: afzal mohammed Cc: Thomas Bogendoerfer , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Ralf Baechle , Paul Burton , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, "Maciej W. Rozycki" , Jiaxun Yang , Keguang Zhang , Huacai Chen , John Crispin Subject: Re: [PATCH v2] MIPS: pass non-NULL dev_id on shared request_irq() Message-ID: <20200315071154.GA31696@ubuntu-m2-xlarge-x86> References: <20200304203144.GA4323@alpha.franken.de> <20200305115759.3186-1-afzal.mohd.ma@gmail.com> <20200311053126.GA48442@ubuntu-m2-xlarge-x86> <20200311090308.GA5060@afzalpc> <20200311104217.GA10615@alpha.franken.de> <20200311131210.GA5115@afzalpc> <20200311160307.GA15464@alpha.franken.de> <20200311163249.GA4984@afzalpc> <20200313121138.GA5985@afzalpc> <20200314081312.GA4948@afzalpc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200314081312.GA4948@afzalpc> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 14, 2020 at 01:43:12PM +0530, afzal mohammed wrote: > Recently all usages of setup_irq() was replaced by request_irq(). > request_irq() does a few sanity checks that were not done in > setup_irq(), if they fail irq registration will fail. One of the check > is to ensure that non-NULL dev_id is passed in the case of shared irq. > This caused malta on qemu to hang. > > Fix it by passing handler as dev_id to all request_irq()'s that are > shared. For sni, instead of passing non-NULL dev_id, remove shared irq > flags. > > Fixes: ac8fd122e070 ("MIPS: Replace setup_irq() by request_irq()") > Reported-by: Nathan Chancellor > Suggested-by: Thomas Bogendoerfer > Signed-off-by: afzal mohammed Tested-by: Nathan Chancellor