Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1625429ima; Thu, 25 Oct 2018 02:10:46 -0700 (PDT) X-Google-Smtp-Source: AJdET5eQlUHoLuI0qw24ExmcGcUCC3zPUKg1uvOFztoiedicy5GJKcldO1gSnHr1PQIXT6rS2kks X-Received: by 2002:a63:1d10:: with SMTP id d16-v6mr688399pgd.228.1540458646900; Thu, 25 Oct 2018 02:10:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540458646; cv=none; d=google.com; s=arc-20160816; b=cD9hItGLfmKt/l2rT0DBBCbPO4knKeVKHyXstVDrjdKfXmqLyX+p9+/tBtFUBu29sW SWoUvDaaE3LJX7b8GdbSCCHxBKz/KPMk1Xogegb1j1QXagR8SRG76VlyA8lJhgqBlU79 xFkVfqEoWXcG6vjN7w/h76AM+wOQD3gx8+hG5RZrPbpx2pColwgqhd0qqRbFxDZpAGgJ FHCPEF06yPAh6zumCuF1wiN6cysU217JK+nTD5UdV0NqsntzL27ObFuBvvij5GiFxJwo 05zn/qCvmULoTOYJ6hRpv5dgfGZ33L31vnsGMiLFsKnlvQFo+9letxlx0BfAng7eENOc ZdwA== 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=l+S5Ceyy8Ac56dhSROdqlF1bBhZT3O0dybbDGWYjPvs=; b=qzsFrs4QretGcPl9GBwJiT6lu9FeuUFLtLmZKfsmHiBdkQhJJ21k69oIbP+ZoNuaX7 qc1VyT6UGNtE4XrCw6ZSxia850+/j769We8VAXlIMgwXUGmcWtZnQV6L81ja6jFaQAf9 Uyiu3Ep7l4UcCumkW8Re+kWh/+9Od0Eep/grqyoFuePR4aga1oQtfQK8zP+ZLUD7l37I xORA3bmZqOyxDabMr5zc6le+lkmR55WtfEq2t58N4VGu4koZwSzSjAaOurKBQysFHFNd c98RB9xkecmXGZW0b4IHw07ANv7808y70VCtmwICY0DJQiIBWjZyokBWzjw/v+4boy5L tV/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TpH2ZZrf; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a3-v6si7296744pgb.457.2018.10.25.02.10.29; Thu, 25 Oct 2018 02:10:46 -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=@linaro.org header.s=google header.b=TpH2ZZrf; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726797AbeJYRl5 (ORCPT + 99 others); Thu, 25 Oct 2018 13:41:57 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:43535 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726546AbeJYRl5 (ORCPT ); Thu, 25 Oct 2018 13:41:57 -0400 Received: by mail-wr1-f66.google.com with SMTP id t10-v6so8441287wrn.10 for ; Thu, 25 Oct 2018 02:10:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=l+S5Ceyy8Ac56dhSROdqlF1bBhZT3O0dybbDGWYjPvs=; b=TpH2ZZrfqdrTcuCzU/0Dx7ZvAgpCxuZHzLupRNJMJtQjyq9VJoZIbRdMLyjG0zBEox qmJUDViOScdxSPhadSpXYkmBxkN0IDUKwapYh9TYxFq2ViOdtJaJ9AcuoZqskbfEDbzo tangj4I7iVHximQzra2QGqsIPG0L1QCRWc29M= 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=l+S5Ceyy8Ac56dhSROdqlF1bBhZT3O0dybbDGWYjPvs=; b=q8cdTmUMQdKBsqFP5TbzGSgksdBGnWq7a4XZhUy3YbuyC28NaFYIx18P4B2ReacCuO 0q+dd2fGNyyEaFHHqlNCAaPyj29Fo+if9a5XpLZDyZm1tViuDJjqVAtoO0kT8M7gW/Hp 3dU2LfdjZhiI06ABMTCCasQbSZnQgJkBy3ESl47cs82KNVA5xXJ5DEjsH9pEzySmFP// 4WvL0UerVAlKfM2jSeO42CYRxzkevUHSBLl2//mOPIei4D98v2ZEeDkiJHr3HnQT4IWm 54xViEz0Ay/V7vycOTy07aKSLPVLoXg94o/Az1pGkjdTTvbICr7MUC6ZQchFXh10FURq WtkQ== X-Gm-Message-State: AGRZ1gLzNMK0uRdtx8sED/OlqVFcELcvZz6O9UjGDvRwMEJaULB11O/o xS5lfLzgTu2G1t4fh5dhfejnTlGTEfc= X-Received: by 2002:adf:dc4a:: with SMTP id m10-v6mr951555wrj.84.1540458605109; Thu, 25 Oct 2018 02:10:05 -0700 (PDT) Received: from dell ([2.31.167.182]) by smtp.gmail.com with ESMTPSA id o13sm6286090wrx.53.2018.10.25.02.10.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Oct 2018 02:10:04 -0700 (PDT) Date: Thu, 25 Oct 2018 10:10:01 +0100 From: Lee Jones To: Nicolas Boichat Cc: linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH] mfd: mt6397: Do not call irq_domain_remove if PMIC unsupported Message-ID: <20181025091001.GM4939@dell> References: <20181022025505.27919-1-drinkcat@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181022025505.27919-1-drinkcat@chromium.org> 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 Mon, 22 Oct 2018, Nicolas Boichat wrote: > If the PMIC ID is unknown, the current code would call > irq_domain_remove and panic, as pmic->irq_domain is only > initialized by mt6397_irq_init. > > Return immediately with an error, if the chip ID is unsupported. > > Signed-off-by: Nicolas Boichat > --- > drivers/mfd/mt6397-core.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Applied for v4.21, thanks. -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog