Received: by 10.223.148.5 with SMTP id 5csp6571964wrq; Wed, 17 Jan 2018 15:48:33 -0800 (PST) X-Google-Smtp-Source: ACJfBou0ZDgEdcTyFmRcKaAJHMsjSuYnhKfcMoKiegTHjj3u1OhUWxm1l4b8SI63J8w+b5b0yjJc X-Received: by 10.99.123.27 with SMTP id w27mr24360124pgc.49.1516232912951; Wed, 17 Jan 2018 15:48:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516232912; cv=none; d=google.com; s=arc-20160816; b=MLUho6HuFzYZc0e1kREVHzMdxPjzrdsU7iwkb6NzTIkmBw4lZrFcrD0gKG3FTgyPPj euIu5GJv457yVGZ2k1HLA9UML32XwnipRK2nOSblVRKSl0IphuEcmZHdNuD2uLqCGyUc NpAGihdZx4r6s2XLl0v5wRzdWSrSnYC77OpUrQP6l+IQ2Sl9AtA2Ojnw5tvios0zOhAG RS/kbs2jJOUuHyDLk9jAqJHsHG1+70dUstLfqEAVRlAh6eNoiiK5UKjWd/JdlEswY4sg eiM2W4+9gq1QWK1UGXKOzajGw2518p+imrvTiyvF37M1vQued/AuFTFhnwMJq5j4tykC CA7A== 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:arc-authentication-results; bh=GLlmiZvvrcMWi2hmKrxwQjYxknGt1x27+KPWjdhTuN0=; b=gLqNspOtP5AE2X5dy2P2lurW+S4MN2WKJl6FCMpFrWr53Amld4boajveySU5V6nhPe 4llvaK+J9jeye3fDiMOFkbuUKQdNGAdWCpKpFNiymF2cYMjpgNUr2IRpp9/EaKDI5btJ ZNKSdqlxQ5TxHE+fcJpLN3KFTAXtFNTZtQT4xpcK6BhHUhJ+X77+zFtMfMmKUDuojNuH Jc2EXAAFzTnU9dTLUL9CazeTvh7Shj8vwMFzvMxtEl8gQ3NZAQONOHu2IlovluqPOcux lz+UuITvWSR2BCATFj+E5nXzk+Aw2Ux8VjcmeKGoxDe896fCbiDlY6dHKJsY811Jrl2A 1ArA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cMrwTEi6; 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 c74si5353443pfj.339.2018.01.17.15.48.19; Wed, 17 Jan 2018 15:48:32 -0800 (PST) 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=cMrwTEi6; 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 S1754631AbeAQXri (ORCPT + 99 others); Wed, 17 Jan 2018 18:47:38 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:39382 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754591AbeAQXrg (ORCPT ); Wed, 17 Jan 2018 18:47:36 -0500 Received: by mail-pg0-f68.google.com with SMTP id w17so6574602pgv.6 for ; Wed, 17 Jan 2018 15:47:36 -0800 (PST) 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:in-reply-to:user-agent; bh=GLlmiZvvrcMWi2hmKrxwQjYxknGt1x27+KPWjdhTuN0=; b=cMrwTEi6jRevifcXggSNh6lp72GLXBp3qcDn2oeXtHtKD0PnPsrWKOcPQZ81JwaQFL M0vWt+teoWYfx7rl+uT5MEWpVkmzrMIGSkZsZBdUz4Q1BgyKPRkJV925ewx5zhJTVJkN msYKXocMRVFQMpXCElGNaJ9IcHvFVDwNyhmrE= 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=GLlmiZvvrcMWi2hmKrxwQjYxknGt1x27+KPWjdhTuN0=; b=jiJ42VGRiDSDR1MNwH4/Mk7yyq2ksmOKFWU3O47Qe6LCZfKyhbJzm9kQlhsGNf0gfi g17ciJfJIQQEJGS+mJ60Sz+MohKddCvUgBfVXkvmLMXFcwzGm9rVGTc4fJBSxCtfnczJ a47sPyEWK0rokiZjEmc+XuTH+6pkhNeoy45lkwfe3eke+rM7TJk8Wu5cc/7ITeoVbsWF 403c4yc694RjfFIKqXL/Ime2CBuIWrZl+6ELHQqHAQ+LEXaJKMMDlsYUnXnMorkQVPGO x0QQvwpmo5smyrjBOt/wwYAdlXsUGDPp8hphU9/VPRGv8kd8CqrDwD3BhX3BqOg+SzPG lsSg== X-Gm-Message-State: AKGB3mIEP3G1KRzoDpFJqY8hDfgULhqZynxD1iwBcwO3bYyAguqsASaR ZLH+3cdOPw7JEYOnH2MR0e/xKA== X-Received: by 10.98.31.72 with SMTP id f69mr35401570pff.196.1516232856217; Wed, 17 Jan 2018 15:47:36 -0800 (PST) Received: from localhost (75-27-143-205.lightspeed.austtx.sbcglobal.net. [75.27.143.205]) by smtp.gmail.com with ESMTPSA id v15sm11384210pfa.68.2018.01.17.15.47.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Jan 2018 15:47:35 -0800 (PST) Date: Wed, 17 Jan 2018 17:47:34 -0600 From: Andy Gross To: Bjorn Andersson Cc: Loys Ollivier , David Brown , linux-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, Jerome Brunet , Stephen Boyd Subject: Re: [PATCH v3] firmware: qcom: scm: Fix incorrect of_node_put calls in scm_init Message-ID: <20180117234734.GA4402@hector> References: <1513345214-22835-1-git-send-email-lollivier@baylibre.com> <20180116164549.GE478@tuxbook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180116164549.GE478@tuxbook> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 16, 2018 at 08:45:49AM -0800, Bjorn Andersson wrote: > On Fri 15 Dec 05:40 PST 2017, Loys Ollivier wrote: > > > When using other platform architectures, in the init of the qcom_scm > > driver, of_node_put is called on /firmware if no qcom dt is found. > > This results in a kernel error: Bad of_node_put() on /firmware. > > > > These calls to of_node_put from the qcom_scm init are unnecessary as > > of_find_matching_node and of_platform_populate are calling it > > automatically. > > > > Remove the calls to of_node_put() on fw_np. > > > > Fixes: d0f6fa7ba2d6 ("firmware: qcom: scm: Convert SCM to platform driver") > > Suggested-by: Stephen Boyd > > Signed-off-by: Loys Ollivier > > Hi Loys, > > Your patch is correct! We are however removing all this logic from > qcom_scm_init() in v4.16. > > See: > https://git.kernel.org/pub/scm/linux/kernel/git/agross/linux.git/commit/?h=for-next&id=3aa0582fdb824139630298880fbf78d4ac774d3c > https://git.kernel.org/pub/scm/linux/kernel/git/agross/linux.git/commit/?h=for-next&id=3aa0582fdb824139630298880fbf78d4ac774d3c Yeah sorry for the delay in response. I pulled in the second part of a separate fix that removes all that code from the qcom_scm. It made more sense to do it automatically from the base code. Andy