Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp604585pxt; Thu, 5 Aug 2021 07:24:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYSzillqgMTvk2/BPLLJrJRTCh6vgDZI9EoWi/OJu28ewcq5VkQ8N0aLoBmefPAjOdLzFr X-Received: by 2002:a05:6602:2099:: with SMTP id a25mr206653ioa.143.1628173441069; Thu, 05 Aug 2021 07:24:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628173441; cv=none; d=google.com; s=arc-20160816; b=Ouu6vjE70wd3WmFh/vttawZ28x/5v5DjptnnoAaT+EeGkCFjlMd/+jdWQ0QVHctfMM bFTY1YfqhIhZSbIqtHaEXiNm1k0cReQRNoq5O172OM2z5Zv5WXZpmokWslPAfLofArEx hABSp66GCcCnVny3r4c5vnqL2fQAkCnzBmbOMfJwZyc64bdBM5qf9wa83m19UmVnVxhP 3ey2lfgZzdo7oSAXYvVU57uVzmk5XvkILIXeJ4LAjAmMMIc+jUT/Mi3SrEYb1MRZYVI2 jxV+TFw3w2Au+Xp2bcWWIdcFcPdRLUmy1gaxqU+cpl/TTYf/FrzQTVzxsT/y/o5EjNOs 4/3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=o6l+0HCVwdFKPSNGNpE45TSpWyYqq7pqwi1msZsfIig=; b=sWCfqPX7D1EO7s8+OijICALPcOGjapvcn23dIsbn44n5gyoI1SzSE3NqJumdLwDhAQ cA1IO2WCSDF6cWcgs/cO+NblvWCe2+AGP8YQRrIMrlw0pgSPsrQM37bDwYti1L5eyj7J kePJmveq6jwDjiPZjvyMQoKSnq5ekQb31bRiUuFxn8x2/XbiAsHsbm2Klk6cb0mjSDMR ZJxRZOY6px9lVDK6orKZgYEOcmaaaNVBOfk3q791Ku+o5utRlqf/HEHMSfk7WsLiPkUT pRfWEWXVTgbfFVXq9blyCg04EI9I7siHFBWCx7M9jAe492rHVQsxptN/ddw+uPZwNIKS 469A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=M9QIG2V7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id k1si5700029ios.77.2021.08.05.07.23.48; Thu, 05 Aug 2021 07:24:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=M9QIG2V7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S236413AbhHENat (ORCPT + 99 others); Thu, 5 Aug 2021 09:30:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240827AbhHENas (ORCPT ); Thu, 5 Aug 2021 09:30:48 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1916C0613C1 for ; Thu, 5 Aug 2021 06:30:33 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id z4so6552688wrv.11 for ; Thu, 05 Aug 2021 06:30:33 -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; bh=o6l+0HCVwdFKPSNGNpE45TSpWyYqq7pqwi1msZsfIig=; b=M9QIG2V7JgG78B/X57JWy1N8s0g/1+U6ccvpCIp/upwAWwlUGgmnijeHzpYk16lEfw Sf4A19gK+4bXBUs7sGL/q6l+0Vhsf18ZVamPFW51XFa3hSMDGRb2+kezWbnolUhEfCVw PTwK5MWaG/zeFry/2ZKdhESqHGiFUJOGHIDYHik2guD3iqdRRWDKV6PsZqTRbTftxyw9 m1yFhOkrfj8xIY4v95aoc0RAkUkY8Y0mc3hh8csCJZ20FY8Dt3U8Y3nFsyTc4Y/yem9K chAW0/SpSurhniDIoDasXRs9RP26YCbpMG6o6qSqH44XqqMi9EpYj2y48jOuiygytyVY nmeg== 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; bh=o6l+0HCVwdFKPSNGNpE45TSpWyYqq7pqwi1msZsfIig=; b=YBu4npN6GbSzii/tjaIa/SezVRA2H5LnRqSa3gLgIPhfYqjU4QE0SrxNfTWLISWWuW EsQMi1rRz0a64zoRhXyMrO0ODMhcFVzQZ0MmG3g/N5y0Pgtf7RXBYrVOxSugCpMMo8B8 n1A7zutPzhU9I8nAXWapIuA/N/bSeS9In1Q6lSlcDp9K3uYEMtNht9udmSqqSDCPw5af Vji+czqCQB44k5SUJwVpkIyRM0kChhzmlR7L1ybtsOkBQztStkR0jxhekMtDINVv2COl 2V6aNMCWl1AH2kRZl/0vBklZZ9IfN8a5SaAJ+K0kVtH8D37283fv9goOOQKiXFKncAfk bNYA== X-Gm-Message-State: AOAM533aShEcVKyJEVJ2UJI+QvyP0EMrkH4JFIyhgWtxeGWD7L30aZNi Qo19GFwDSVwxq+1lzN6IBM5XtA== X-Received: by 2002:a5d:6ac4:: with SMTP id u4mr5361971wrw.166.1628170232208; Thu, 05 Aug 2021 06:30:32 -0700 (PDT) Received: from google.com ([109.180.115.228]) by smtp.gmail.com with ESMTPSA id x16sm6353936wru.40.2021.08.05.06.30.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Aug 2021 06:30:31 -0700 (PDT) Date: Thu, 5 Aug 2021 14:30:29 +0100 From: Lee Jones To: Matthias Schiffer Cc: Linus Walleij , Bartosz Golaszewski , Andrew Lunn , Andy Shevchenko , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/7] mfd: tqmx86: clear GPIO IRQ resource when no IRQ is set Message-ID: References: <65f9787ebd6725e90fad9ea7f936ee0d5712da94.1626429286.git.matthias.schiffer@ew.tq-group.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <65f9787ebd6725e90fad9ea7f936ee0d5712da94.1626429286.git.matthias.schiffer@ew.tq-group.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 16 Jul 2021, Matthias Schiffer wrote: > The driver was registering IRQ 0 when no IRQ was set. This leads to > warnings with newer kernels. > > Clear the resource flags, so no resource is registered at all in this > case. > > Fixes: 2f17dd34ffed ("mfd: tqmx86: IO controller with I2C, Wachdog and GPIO") > Signed-off-by: Matthias Schiffer > Reviewed-by: Andrew Lunn > --- > > v2: add Fixes line > v3: no changes > > drivers/mfd/tqmx86.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/mfd/tqmx86.c b/drivers/mfd/tqmx86.c > index ddddf08b6a4c..732013f40e4e 100644 > --- a/drivers/mfd/tqmx86.c > +++ b/drivers/mfd/tqmx86.c > @@ -209,6 +209,8 @@ static int tqmx86_probe(struct platform_device *pdev) > > /* Assumes the IRQ resource is first. */ > tqmx_gpio_resources[0].start = gpio_irq; > + } else { > + tqmx_gpio_resources[0].flags = 0; Strange - why is this !0 in the first place? > } > > ocores_platfom_data.clock_khz = tqmx86_board_id_to_clk_rate(board_id); -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog