Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2106263rwb; Sun, 14 Aug 2022 21:37:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR5TUhlSiQqTZMIujIs83pgRwgRkmpKdEt1bcnh3vzMx2eIpjkn3ZgQkeZtigNCfIyv8rnTn X-Received: by 2002:a05:6402:cb7:b0:440:ad7e:5884 with SMTP id cn23-20020a0564020cb700b00440ad7e5884mr13405384edb.382.1660538270186; Sun, 14 Aug 2022 21:37:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660538270; cv=none; d=google.com; s=arc-20160816; b=mjlaiyxLgU2cJlSjbNdYclyVeGhwV+pZPnr9n1Jb1aD5WgR7ju2+BcLzEMpFP2vPl3 rEM31amvCjjehUXSL5It+xKwF3F0qBZo7PLQBvtYWQHMP4HMzq8kMxEZosnL2ThhDsFp 77jEnJddzRW4R/UUj6NJPMiNpMgFWeTLxZeijOHREPiW3lP+quFjOdwbt3pcFb9O1tFY L4oHMiBXH8IwiyqDoTmie4SUIWFEyAhPDSiefXELLViTUx2oVzWcCKF1GPfBRx0a0jc+ HixXOue/fxc2m5a/aRaCA+MyqLeTzRzeCwKd8/VdAue6OrMK6UHinkDdRNhvF51fNhCU QUmA== 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=AxntZ5boEdqFqlgnkvj7nx9yV31SjrqxErxj02VUkgI=; b=shJyhJgpXMc2X9YNn0rutM3IegSLLypx58sXANXDDoNjfnHu2z1PmNuY7Fxz+9cOPN Y4VwIIDVAe6KH/JWi5ZJ8/bRXx4GhCLcco4RF8Ypvnn8SdVJUwkcTL4dRd3LeNgPoJfn YOq6ahLQjO8EE1/SDV8tDu2bI5KTl78dbmmWiC89YsS7s5MhznxcSODtgOCcN0NKNs51 V+UBr2pdDAKGgdoMuE1JcMNLm9nud048OcfajQSwKonHRudE/4jjrgTawTyKjOkRxuVE avF2/3frk2ovxx7ZmaCklNLHapIGKjOIETSsTl+OwrEj/mT5HBHq73ZlINixs9KLU6/a CSsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=EiZ46NWg; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g26-20020aa7d1da000000b0043be1f48544si6285755edp.130.2022.08.14.21.37.24; Sun, 14 Aug 2022 21:37:50 -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=@gmail.com header.s=20210112 header.b=EiZ46NWg; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240434AbiHOE2R (ORCPT + 99 others); Mon, 15 Aug 2022 00:28:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230237AbiHOE2P (ORCPT ); Mon, 15 Aug 2022 00:28:15 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8335512772; Sun, 14 Aug 2022 21:28:14 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id gj1so6048364pjb.0; Sun, 14 Aug 2022 21:28:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=AxntZ5boEdqFqlgnkvj7nx9yV31SjrqxErxj02VUkgI=; b=EiZ46NWgWvaPrWGZpEefUGH8iyYRrNyxPcZFIYYXH1N8zjQloB6tCImzZpIVPLxywV vvyyCkK9dDeDt7iSwYZs5PMf3Bp037GUBrBFN01bWAJ72NpP06EtdZlV1FKXm653cwX1 wo8o5GLfryMyJ+1ZnsFNTEeTf+sdzRGnYhiiFAJbNzKyCg7cKOTj46KZPv9lhejF+hys +f0JYi+/ciwR5SdnaOiW3IGj7nqdcuHuml0Nonjl2N2YXx4U61l5YaMx4ic3xRYZWWQO 0F+OC0HTjyGxpiJOuxcqqEGO1U3lt/938nOLcJ09iB5MjBqOQuLp7rZmVVIdZOKk/eEe m0Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=AxntZ5boEdqFqlgnkvj7nx9yV31SjrqxErxj02VUkgI=; b=g/fcRF4hGHBbIe2wP0x+Am+GHCkgqdtghjvSdJk4/pKMfitHXsUfrZM9TII2DEIvhd L/k8V5sNGaxKSUx3uXImTgR+Yw4EqCUWgtqUSBho/k0FhO9lI5tRsI+zCUR6/rk6Uyml 3rcuARDEUIfmrbuxX2yxTnY/D/9gVxoujKIJJZMCUMiJQHQY1gborxoAzoMEfLf/phO7 ggeNaPUKylWqKbpYekODw310vLB9Bcr3qiA9KANb0VUw0d07XcwqqwfAJ/0Sm+ZIAAvN NEgCNxbBhcwp5Q4q2/O5yqJfPT2T1SXJb27MyiMeqNHcTxVNndwOsvfOs4ZjY0F19fEe pJRQ== X-Gm-Message-State: ACgBeo1A2zgoAHipwCKRf3x+qpUvHhsPGDLfuySZ3OknxqU2kaXWLVNN dszM3bWKDj3H60S8jNPidBg= X-Received: by 2002:a17:90b:4b91:b0:1f4:e116:8f1 with SMTP id lr17-20020a17090b4b9100b001f4e11608f1mr16664416pjb.121.1660537693908; Sun, 14 Aug 2022 21:28:13 -0700 (PDT) Received: from [192.168.0.110] ([103.159.189.148]) by smtp.gmail.com with ESMTPSA id e6-20020a170902d38600b001709b9d292esm6118545pld.268.2022.08.14.21.28.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 14 Aug 2022 21:28:13 -0700 (PDT) Message-ID: <54dd86bd-416b-3048-9bd0-368afa3aaf2f@gmail.com> Date: Mon, 15 Aug 2022 10:28:05 +0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [RFC PATCH] Soundwire: Initialize multi_link with fwnode props Content-Language: en-US To: 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 , Pierre-Louis Bossart , Sanyog Kale , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , "Rafael J . Wysocki" , Len Brown References: <20220814080416.7531-1-khalid.masum.92@gmail.com> From: Khalid Masum In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, 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 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. Thanks, -- Khalid Masum