Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2250271rwb; Mon, 15 Aug 2022 01:34:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR6wnQXMNJbl+VNJ3gyt3omWtaT+nH/ysxkPKcIWXGFKyf6kK/v+gjE7NSYwyONNSeHcRbRi X-Received: by 2002:aa7:c790:0:b0:443:a086:6877 with SMTP id n16-20020aa7c790000000b00443a0866877mr5189663eds.84.1660552453969; Mon, 15 Aug 2022 01:34:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660552453; cv=none; d=google.com; s=arc-20160816; b=vbzRkmNN4m/JbhdFKEcB5Lbj9BI0Nv2y1RKnVKyQ0rlo8E3qXvayxuORRQgQDVKIUm BK8g16Ex8ELKdUIc4Iq2ljM6v2StqJFbLsXoIypfzBCu1iLhydi0dya+A+3VQTybKTud WqhFzdFKC4d1v44CJJ1LTCV+PMFDXa7topc5Tqzpy8z/Jbzj0JVlVNkRvIfy4h96Kvr7 mN0jOXICj8n46X+XVOfFY98FOB6QbY/tpcDeLIhWkrVK4NELnmXH0+kI54Va4rmMJcfp Pq9O/x3ezf0F6qLp/lwNzkxgbhUaTsFLBc8o5ZYvmHILU8gwS8PNtU59bdHp2trNLbqa ty4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Ha5MYL24mnc+LUvHX/D53QQ5wSKJeYFDoYJk8f/D9BI=; b=fKog3+w7E3GG1XGtcDU7JrJ2GJ0VU9ZpD2+eQ1/GeQK9TKlNQ7XM9WrHbE9TeYREkk 6naNdi1Vrl5LXHRXnecmALPYmZT1a9mkNd4zD387E8xZeX7Gj5S+ZSQJ/b69hoqL92lp zjhDArAyQj/YJoQ2N2psgSGwYnx3zPyynfJeymrAe0D+oWYjlPKCg/x0+G0lRHGab8Qe EhxtISnJMxq+QOnFUeR9rHD81NLwy6nBJkMJ/gStaiLri0lDexXigu9H7urMmf0jn9q2 6k/GZsP/BHUf6b9s4eWvZxzfDNBonllZ8cHePWApK8vIOhMm7HRCQtGwaTENCbZ1mhFg V3wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DlyKSGRe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id js1-20020a17090797c100b00734b2821879si7180177ejc.898.2022.08.15.01.33.48; Mon, 15 Aug 2022 01:34:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DlyKSGRe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231149AbiHOISl (ORCPT + 99 others); Mon, 15 Aug 2022 04:18:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230165AbiHOISk (ORCPT ); Mon, 15 Aug 2022 04:18:40 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 866111EEFB; Mon, 15 Aug 2022 01:18:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660551519; x=1692087519; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=0F0ny3POo01TN8PrWXSpbHLH0QJ4GeZOsaTCgDcIiKw=; b=DlyKSGRe4ZEkXDi/iEl2imdy/EmSb2sPnoUfSDZdGqIsCa+TSY3/Vuwa yJUWuqgILy5qu98koz/jYBmlghhcPeotbH4NJHW8aUTtwAhMNpaSsH66P GVYipqxnmcnekDxTvFRRrbGw4G0VehMNu6+R+v25OeqF176j9OvM60YsC 6XN0RlWifS6uPJ/7SXQyhPNdvgvaFkggcnf+hyGcJroJCaLRdkTJeD5E6 vW+Z138Br92IuErkfsSFI9Cl/L0ppw0z/CwmHlv3dKraQ+t8yY6A8lIHP iz91/TwcBEtXaXQQkO5IgzjmHzVg5qzgrYDfZzEqqP04Ly/d2rjcJr/uL g==; X-IronPort-AV: E=McAfee;i="6400,9594,10439"; a="274971002" X-IronPort-AV: E=Sophos;i="5.93,237,1654585200"; d="scan'208";a="274971002" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Aug 2022 01:18:38 -0700 X-IronPort-AV: E=Sophos;i="5.93,237,1654585200"; d="scan'208";a="674766312" Received: from szujuchn-mobl1.gar.corp.intel.com (HELO [10.252.50.152]) ([10.252.50.152]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Aug 2022 01:18:34 -0700 Message-ID: <741edbf0-5835-eb89-bb6a-69d7e0d00e36@linux.intel.com> Date: Mon, 15 Aug 2022 10:16:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.11.0 Subject: Re: [RFC PATCH] Soundwire: Initialize multi_link with fwnode props Content-Language: en-US To: Khalid Masum , Andy Shevchenko Cc: ALSA Development Mailing List , Linux Kernel Mailing List , ACPI Devel Maling List , linux-kernel-mentees@lists.linuxfoundation.org, Vinod Koul , Bard Liao , Sanyog Kale , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , "Rafael J . Wysocki" , Len Brown References: <20220814080416.7531-1-khalid.masum.92@gmail.com> <54dd86bd-416b-3048-9bd0-368afa3aaf2f@gmail.com> From: Pierre-Louis Bossart In-Reply-To: <54dd86bd-416b-3048-9bd0-368afa3aaf2f@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/15/22 06:28, Khalid Masum wrote: > On 8/15/22 00:46, Andy Shevchenko wrote: >> On Sun, Aug 14, 2022 at 11:31 AM Khalid Masum >> wrote: >>> >>> According to the TODO, In sw_bus_master_add, bus->multi_link is to be >>> populated with properties from FW node props. Make this happen by >>> creating a new fwnode_handle flag FWNODE_FLAG_MULTI_LINKED and use >>> the flag to store the multi_link value from intel_link_startup. Use >>> this flag to initialize bus->multi_link. >> >> ... >> >>>          /* >>>           * Initialize multi_link flag >>> -        * TODO: populate this flag by reading property from FW node >>>           */ >>> -       bus->multi_link = false; >>> +       bus->multi_link = (fwnode->flags & FWNODE_FLAG_MULTI_LINKED) >>> +               == FWNODE_FLAG_MULTI_LINKED; >> >> NAK (as far as I understood the context of the comment and the change >> itself). >> >> These flags are for devlink, we do not mix FW properties with those >> internal flags anyhow. The comment suggests that this should be az >> property. Also commit message doesn't explain the relation to devlink. >> > That is a good information to know. Thanks. > > I shall try to find out if I can somehow get multi_link's value from > fwnode in any other way and look into devlink in the process. > > If you have any suggestions regarding this TODO, please let me know. The suggestion is to remove the TODO and leave the code as is: the capabilities enabled for multi-link are required as part of the programming sequences, even when a stream uses a single link we still use the syncArm/syncGo sequences. Please don't change this.