Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1783051rwb; Sun, 14 Aug 2022 12:10:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR7i42sT3HC2ls5bf7RpTOaXKQUe/I1Nn8SbGtJmhe16ZZ1lC72RHX5EYCS8AzpxSf5UJNk8 X-Received: by 2002:a05:6402:d06:b0:440:3e9d:77d with SMTP id eb6-20020a0564020d0600b004403e9d077dmr11108253edb.286.1660504206840; Sun, 14 Aug 2022 12:10:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660504206; cv=none; d=google.com; s=arc-20160816; b=HoZTaNJVrMrM8xZT+XzJlLzd7Ck/89wq4DFhFeIiYMqZPjz2I+USPoOy78PM/vM4rL jECiwe5d6C8ddUxASDbwXDAzvkEARsuhwFXgH92BxOE5MKhQOUoB/M6e+Nj2Dui0zrw6 PtfkeEbjK1bzTqK9N+U4uTFxXzMw6wOnJ4LqlQFHoFXKcy3sdnnphm7XNHU6NYiNZuLy UiMu1v2F1OfonEPmR10ofe6eXZTNOngxCkG79tSfphFRnf+6GyZE7JxWy0SIk0Dx07JL YarzGMmDLXrKZFqpUuSuMzSfeiiyVx/7wStQG3oNlGoxjd0Na+lQv/+WBkgr5KQs5+BY jkfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=dudlmWjuSuvNbi9ZYyo/rAhbjJyLDMtzGN5G53OzaMo=; b=GNND2nJLKp0hT8lKmeRb30dkp07m5tBK04vqtBtwXhay6oES85bar55xLY5u7qE6x9 nen5QN4g63RUcDWk3eqvs4yoB8wr7eblx6K35UYrsDX5+ktUFhwAc4KEkFkdLKdYyy5N MezRPPU6aqK4iftm8cctep04ffz1PEo1l8r0+doutNwam07UgQakAGM1BihLQHyXDIdL md98ufgYIHDb434vY1YweuGXHz9dCs3V8G69khVevna/aHATcxjjMm9C0rPRaLoLtQgK KVkI4PiTjzBvWrHWNyN46bBnRGF6Zlwv9A/PRFtaYgSjMRnGQ8oCN8XikWoY5yAr+JDN UM+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZcNgkuU+; 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 v3-20020a509543000000b0044301c6aca9si5941025eda.379.2022.08.14.12.09.41; Sun, 14 Aug 2022 12:10:06 -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=ZcNgkuU+; 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 S231965AbiHNSrI (ORCPT + 99 others); Sun, 14 Aug 2022 14:47:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229555AbiHNSrG (ORCPT ); Sun, 14 Aug 2022 14:47:06 -0400 Received: from mail-qv1-xf30.google.com (mail-qv1-xf30.google.com [IPv6:2607:f8b0:4864:20::f30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 078F9FD3; Sun, 14 Aug 2022 11:47:04 -0700 (PDT) Received: by mail-qv1-xf30.google.com with SMTP id l8so4139425qvr.5; Sun, 14 Aug 2022 11:47:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=dudlmWjuSuvNbi9ZYyo/rAhbjJyLDMtzGN5G53OzaMo=; b=ZcNgkuU+zWbAKcAGArBWE8maGMxvPQ7VlP0YNqDbjIPV8BeVbWwnoua6cHVFuLyH4l Y+eaEC5T+XPw1vLxXzcQsWDey3KX78uyEbjfuqi4pwC+42YiT39WsUA628D79tfh6K8d 4DY725D0GLL5UQ+8tL59nOSTxuD88uzXAM37WpK1T7DkyyJN4R0TRPKJW10UE5YXaqS6 qUDPl03aM301291lSSXaacqjwyNXXJDtlXWf0TNGiKDbQiFzQ0K9B20MCltUdnOy1i+Y z0mGQlMIyw7XXHzaEHp31ukbzY5PON8ezIqMqYl5d4JQW2i4XMjGkbiQjLyDVBSeOjLN 6u2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=dudlmWjuSuvNbi9ZYyo/rAhbjJyLDMtzGN5G53OzaMo=; b=3kaq1f6Xw6m8ZIKrT+earLk7Ycnznm/dQZcB6BJkq/EN5FXs5154Kf5HxrQJu5TRPP sCCCfOj37+LR2uJLFR0U4mKqPGqnHC6n0CcmNu2jTL3NMZYRZKNxDUoySfvN7LRI5zJG qNLQl2ER/DAxfjK75/n7OhJgC0rJxQ5chExksyvHBrLwQPbbgXEnoVqTJqckrowD1OUc JLkbRysiNC4Sn44N1qfULiw/HuCn33cvPxtuuD7JN6xYkGwyVml3d96bk390eFADYCXR dztk3ywYUo4QW4TVdKSxCU0tyN+REPxuW/dfK4+7MWKdMH5MrN5pfkWHQV6KaLCfZDlB PszQ== X-Gm-Message-State: ACgBeo2seqi0ZQqcIgZ+ATclJ0faLoMs8AxJirqpWWZOdH9T37XLv1Z6 18AGK7U4eE1VE5SVfMIJhbBHY7RSIhwixq1qsws= X-Received: by 2002:a05:6214:5290:b0:479:5df:e654 with SMTP id kj16-20020a056214529000b0047905dfe654mr10935326qvb.97.1660502823159; Sun, 14 Aug 2022 11:47:03 -0700 (PDT) MIME-Version: 1.0 References: <20220814080416.7531-1-khalid.masum.92@gmail.com> In-Reply-To: <20220814080416.7531-1-khalid.masum.92@gmail.com> From: Andy Shevchenko Date: Sun, 14 Aug 2022 21:46:26 +0300 Message-ID: Subject: Re: [RFC PATCH] Soundwire: Initialize multi_link with fwnode props To: Khalid Masum 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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 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 a property. Also commit message doesn't explain the relation to devlink. -- With Best Regards, Andy Shevchenko