Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4105726yba; Wed, 17 Apr 2019 04:52:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqxq5v9noZNalqV1y+33g0y9bagm5EwpBcL0J73FIwhYo0oOHVAbzJTpvOFCOFeRz0tyczqJ X-Received: by 2002:a62:14d7:: with SMTP id 206mr86977705pfu.162.1555501952352; Wed, 17 Apr 2019 04:52:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555501952; cv=none; d=google.com; s=arc-20160816; b=yN76jzBtONh+7aAxYa6oipl09YWpb24MyT3hM5dDo3vvB/VatwSInd4V5Rs0pzykXf mJwz6TgQxaJCEhOJdOwpGKJES3bdFiuj2OunKiX0CMI+lQ05GhVzb23fBb9JcamZw9H0 iNFa41cYKxiPtxO2+JSpATBGidLN2Of9g4kqL0lxT3QHYNIauWRA3GanvIWwDaSaIk6h ZOWY2etk3oOXFXKTl/DN8gMhi6yqFI48qcuNUHclYAynAAKMi3lWN5zha9+ZglEmyfqk DjcbwqpgeJ50a+6yE0IlzQu7RAo4yFHCjJqAukvF6NASwRbwC6XeRXklX6TnSEeJBJV4 lgNw== 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=qXkceclKYogbXCLoeXJVlPi06thLC4AnNmyU4U76yv0=; b=LbCbtpqZf0iMvmeC34BGw0U8BJ1zUwIH9yIGIXuyQmsjWhBHUm0BUOioY4ibKuk0oi YNZ17sA7/sifQQILYurcXvNQxuKOK70wWn3NEIesyoYhdVrZs0l1lo9HvCLw4I8UNqNT fEtEECv9FY/hHXSWGHRPGP/y7ILClCPsI7biLzpsQyqWInsFv0SudL2RiG7nv1DgwYQf kxLd/w1m+H2T33zYlSA77G15LzxdB3eh46E6Nixmv1hDO8m/8RyeL4b2DqYYzN7QUxZZ wLBJ0VzmE7Oe9YsuNJkwJauFlVBUeXa2sjiU6KZSFs4DPHggRMYSOXG3a6ulgDs+XTfw 9E1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Y+URAciQ; 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 q1si48608021pgh.396.2019.04.17.04.52.16; Wed, 17 Apr 2019 04:52:32 -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=Y+URAciQ; 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 S1732004AbfDQLue (ORCPT + 99 others); Wed, 17 Apr 2019 07:50:34 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:38766 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729522AbfDQLue (ORCPT ); Wed, 17 Apr 2019 07:50:34 -0400 Received: by mail-wr1-f66.google.com with SMTP id k11so31572954wro.5 for ; Wed, 17 Apr 2019 04:50:33 -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=qXkceclKYogbXCLoeXJVlPi06thLC4AnNmyU4U76yv0=; b=Y+URAciQ+M8cmBS5dBKlsu+WhtMaPf7js4UjsiWn1RNagP6DfNTkIXBZB65yVLFgx1 dfs8AA+IZNEDxXIoinkKYo6Wi9cQOGMHfjmmmkEJrhY7KKaVPNZDH+80n5ihOJWzFr2o TaUwx+enLeKiPx35cCrIV84XH4UDS45GpApGV0pQQAHQR3MOYxdKQzdQoUFZyfz1qTH4 Csd0SmPg4Qd5K9YNCql477FVYlcBWULpCJit8zGrX7sf9MfdU1TRCScRsGZiM8H6chuV F+hen7472dLNuWdAumgrbuynaBeC14h3zR2N0qCysuU2dnzse3z4VnbaYD2WSnmXKgY9 tDiw== 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=qXkceclKYogbXCLoeXJVlPi06thLC4AnNmyU4U76yv0=; b=mt64P9w3ZPZH6VK2TKFf1cd24Fa820Hz6ZnKe2VZITQ2x1MuT5y7P8N7fGJ/oPGhQv NVUU8IG9I4JiXLwKUXwa7jwDwtGaIxZQhCMXHVHzpuDXBrif0nV3BYH/yA56vya4EjQb HiZY2boA8IzVzL66tX4pBp23bQi9imrG/RJ3F77rgD5OnwtPGzjt/xg3MFgyV1W57lAq gsLIOXoN6xJYx6yhAZQLA17/90Xa8xYs1nR0SEs/aE9ile45WatR2cjdhDmO4VuQkDAK gShxbBb4S06tzivOEykLG7nsYQMDLrYB2mhaM+i6LmmwzSfMrc5jEbTL177a1cdCXRMz Fseg== X-Gm-Message-State: APjAAAVmoB5zVEuObSDnyf9R4/eH4qXJbK/YrafrQ/j2e7ODDNVe2cju zhvAIKGmi6/iOmXEHZxcRfI= X-Received: by 2002:a5d:62cc:: with SMTP id o12mr2266249wrv.142.1555501832488; Wed, 17 Apr 2019 04:50:32 -0700 (PDT) Received: from 5WDYG62 (static-css-cqn-143221.business.bouyguestelecom.com. [176.149.143.221]) by smtp.gmail.com with ESMTPSA id f128sm3778167wme.28.2019.04.17.04.50.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Apr 2019 04:50:31 -0700 (PDT) Date: Wed, 17 Apr 2019 13:50:25 +0200 From: Romain Izard To: Alexandre Belloni Cc: Daniel Lezcano , Arnd Bergmann , Alexander Dahl , Sebastian Andrzej Siewior , linux-kernel@vger.kernel.org, Thomas Gleixner , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 9/9] misc: atmel_tclib: do not probe already used TCBs Message-ID: <20190417114934.GA28520@5WDYG62> References: <20190415150856.9384-1-alexandre.belloni@bootlin.com> <20190415150856.9384-10-alexandre.belloni@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190415150856.9384-10-alexandre.belloni@bootlin.com> 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, Apr 15, 2019 at 05:08:56PM +0200, Alexandre Belloni wrote: > The TCBs that have children are using the proper DT bindings and don't need > to be handled by tclib. > > Cc: Arnd Bergmann > Signed-off-by: Alexandre Belloni > --- > drivers/misc/atmel_tclib.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/misc/atmel_tclib.c b/drivers/misc/atmel_tclib.c > index 194f774ab3a1..c1f5aba1c6f2 100644 > --- a/drivers/misc/atmel_tclib.c > +++ b/drivers/misc/atmel_tclib.c > @@ -111,6 +111,9 @@ static int __init tc_probe(struct platform_device *pdev) > struct resource *r; > unsigned int i; > > + if (of_get_child_count(pdev->dev.of_node)) > + return 0; > + > irq = platform_get_irq(pdev, 0); > if (irq < 0) > return -EINVAL; This lead to a panic during shutdown, as tc_shutdown is called on the device that has not been initialized and it has not been designed for this. -- Romain Izard