Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3213599ybz; Mon, 27 Apr 2020 12:00:44 -0700 (PDT) X-Google-Smtp-Source: APiQypIv9leN1Dni7VluZl3kXSlvoPOf2pmq1zSdf5J9AICkp5TLTxRSAWpsLDTwsph7oK3CMWs1 X-Received: by 2002:a17:906:78c:: with SMTP id l12mr19880372ejc.189.1588014044731; Mon, 27 Apr 2020 12:00:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588014044; cv=none; d=google.com; s=arc-20160816; b=mTCRxuKGZ8SrLPiq/2DqGEaUPJ1kh3VSMALHztAutKCWj/ZR/DqIj/l9v7ydsh6gA4 WvBrFNORdcJhDBuzcnNpJGxfm9zvPbTAByRGWILDoB4faYygsBR05bZpzwKps+4hHw9h 32DLWcV/yWmoxhFb8rykYiabl48xzI2uKi1H3aDosSta7NQdoy8aYr64A+1mKQSbvb5N 9ZC2vp0xa3icFRCVmp2Fw5pweGQo6cwSdD0EtS2nuUpGDaUOuAFkaAupgyJQtf7m0+CN zKt+gNV7UOlQLyapCuh51aJXVhFQmqpRp/iNrkyjvEZnht2cjjNqDoJp5Ov9LmV0mM4P xZwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:ironport-sdr:ironport-sdr; bh=rGvk21QRQMsOxQTPAy9OOIh+6QfhsRjmAP7EcyawW2s=; b=tAwX50Kfx+C1MFQ1Bi7jDzLigwRjBxaPH8Q/fpm+HikT2M6VwGjIPh/r9ighcQcYkj 74lmFv+7XXZ/UEliD8cjTYYX5ZIqkp9fS5lJgF+SdIKg1Rd9hyD5Amwpzt+5ZIo2PU+N THBsEVmzPKK2R/kg3eBmpfOZBpLUGJeGFwCQriyWFl1eSLrXpyKTilD5hPs+aSfUfvq/ AGjXu6gzN0GLqR6j9L8oU41I0IqFC6BN5nH+HeWlGLEP3V+Lwo/RkXJ0/R5pydlF0asc iBvKxIMuit9r5V61khZyJ39d7IKlYtAKA7Y2VgPnfZXrPvrh61bgg1Dh98Jr5shCmX3y LyQQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mh26si286649ejb.177.2020.04.27.12.00.20; Mon, 27 Apr 2020 12:00:44 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726508AbgD0S4d (ORCPT + 99 others); Mon, 27 Apr 2020 14:56:33 -0400 Received: from mga09.intel.com ([134.134.136.24]:22989 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726385AbgD0S4d (ORCPT ); Mon, 27 Apr 2020 14:56:33 -0400 IronPort-SDR: zlf9d9uYAcSATKoHyYLhhnEoQ1N3h4vEXIIY30uEE/4cv/9Gmr/IJWJm/2WqZys4ogIPJHMRGC Wc8hdWEylO9w== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2020 11:56:33 -0700 IronPort-SDR: xS5JlL4vBwEjAeyxOBw1yzPjRI4rbG6eNCk7vvICju1Ms07GnCA27am4N65H/iXU8l9gxoyGGR r7Et6egwICCQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,325,1583222400"; d="scan'208";a="431879622" Received: from marshy.an.intel.com (HELO [10.122.105.159]) ([10.122.105.159]) by orsmga005.jf.intel.com with ESMTP; 27 Apr 2020 11:56:32 -0700 Subject: Re: [PATCH] firmware: stratix10-svc: Drop unnecessary checking for and populating /firmware/ node To: Sudeep Holla Cc: linux-kernel@vger.kernel.org References: <20200421173256.34897-1-sudeep.holla@arm.com> <8ca3666f-8ff1-3c3c-d40b-81c024b37bdd@linux.intel.com> <20200423081149.GB18538@bogus> From: Richard Gong Message-ID: <2b2e29ec-ebbf-3ee6-acc9-3722a2fabbfb@linux.intel.com> Date: Mon, 27 Apr 2020 14:12:56 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20200423081149.GB18538@bogus> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sudeep, In our dts, firmware is not under root node. You can refer to arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi for details. This is why we need check and populate firmware node. Regards, Richard On 4/23/20 3:11 AM, Sudeep Holla wrote: > On Wed, Apr 22, 2020 at 04:50:00PM -0500, Richard Gong wrote: >> Hi Sudeep, >> >> I tried and couldn't load stratix10-svc driver with your patch on kernel >> 5.6. >> > > What exactly do you mean by not loading stratix10-svc driver ? > This patch doesn't change that part, the driver should still get loaded. > The change may affect probing part if for some reason the devices for > nodes under firmware are not populated which I still can't understand. > > Do you see any change under i/sys/devices/platform/firmware\:* with > and without this change ? > > Lots of drivers removed the code similar to this patch after the Commit > 3aa0582fdb82 ("of: platform: populate /firmware/ node from > of_platform_default_populate_init()") and continue to work fine. I am > interested to see what is different in stratix10-svc. > > -- > Regards, > Sudeep >