Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1031669ybl; Thu, 22 Aug 2019 08:23:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVoqAUGXmWGv06QV45I0SLekyr2ueC+CSvC2Y20TbNvVAbMFnUttF2sjlR284BS6b2ytE3 X-Received: by 2002:a17:902:2bc7:: with SMTP id l65mr27148671plb.119.1566487394979; Thu, 22 Aug 2019 08:23:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566487394; cv=none; d=google.com; s=arc-20160816; b=OTm5TWV8kdP/D7pF0CfVX8dPmw+GrZsmpGVb6miCoSO+99VVlsqqboWkANjLNXSD2S VSzwKy6cc45JXOZLfhjAEgb5o74uXpUkoirgMzL9PaPgpK6CiJ9es9/B+FtVKFadkP/m Jke4zmr46kN7h5nTJ1CEKaut8nTJvxsEoa1K4vpCbHFSGO04EunbIGJOIvAWFvVGlhpN wYNPRKfFEYpWTiu1q/6eMDNgTMpwIkrLuCXwxX//orMz+Ak+AzTX9oVANCStaRnmhqGo LotT7YaS5mEaPjKHdr6sxULngcDzcGIdnaKSR9CgYZOayNwolWuk1Z/v8V5soRSw4vdC Ts4Q== 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=Wa9ICQMLAkpnUdtW+YKoJlW1OdLRx4OMeLNV/HO4rkE=; b=GlJWnmEQAhdeKyGVOwChGjv523MmUuOcMgpV3SAI9qabss07QFy5KBHmVKq5twKq3l jsyNa9JcK7CCdsHk8DoHJdPz3mFPT6vSMrkb0yI3APy1LbKTtXWLfTa+6xCtK54LYve7 n4i6u3L1G7aexIpewoUoikqsHVJRbTu1/99RUe4aXDXn9UgP7z2YnRfE4g1OMgcSfW6H qiZRzpTpBfg3cprxnBm9zt3AXMmm32CkKFyy8Exs37JVbYnTEnXpMwwtrMv/1az/SOUW rJ3frS4iV1chAuvutErcjoo0kaGpGYAqXjm7gduSPvu+5QDZfrglQyChnMs0CZIWqoQe ZPnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=vmwnltKT; 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 c4si18132311pfn.71.2019.08.22.08.22.58; Thu, 22 Aug 2019 08:23:14 -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=fail header.i=@lunn.ch header.s=20171124 header.b=vmwnltKT; 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 S1731195AbfHVNsq (ORCPT + 99 others); Thu, 22 Aug 2019 09:48:46 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:51892 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725941AbfHVNsp (ORCPT ); Thu, 22 Aug 2019 09:48:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Wa9ICQMLAkpnUdtW+YKoJlW1OdLRx4OMeLNV/HO4rkE=; b=vmwnltKT4ugdUB8ZCu8srnRnnk bMQVJ+gJtyCR/Tmp991ooRQh2dw70kqVVOSnYuOfTR4Ylk3OjMjGtVs+DsTJfsY1jYjsjWssBqw08 LrvTVSI72obWRuKgbfl7xOasjyvBC85u2GQojwaFiM1qzurKbHCbYBzcz2mgwz08Oe+s=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1i0nSD-00044Q-OF; Thu, 22 Aug 2019 15:48:41 +0200 Date: Thu, 22 Aug 2019 15:48:41 +0200 From: Andrew Lunn To: Federico Vaga Cc: Peter Korsgaard , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] i2c: ocores: use request_any_context_irq() to register IRQ handler Message-ID: <20190822134841.GG13020@lunn.ch> References: <20190822132132.16557-1-federico.vaga@cern.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190822132132.16557-1-federico.vaga@cern.ch> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 22, 2019 at 03:21:32PM +0200, Federico Vaga wrote: > The i2c-ocores device is an HDL component that get instantiated in FPGA. > The software stack used to drive an FPGA can be very different, and the > i2c-ocore ip-core must work in different context. With respect to this > patch the IRQ controller behind this device, and its driver, can have > different implementations (nested threads). For this reason, it is safer > to use `request_any_context_irq()` to avoid errors at probe time. > > Signed-off-by: Federico Vaga Reviewed-by: Andrew Lunn Andrew