From patchwork Fri Jun 5 21:19:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 187570 Delivered-To: patches@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp2736829ilo; Fri, 5 Jun 2020 14:19:32 -0700 (PDT) X-Received: by 2002:a17:90a:2647:: with SMTP id l65mr5227543pje.20.1591391972048; Fri, 05 Jun 2020 14:19:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591391972; cv=none; d=google.com; s=arc-20160816; b=giP1peMY9Iz7QY4S90zbwftbBqKozVT3YI5Rbnwj3o9CiDITbTIReyHdEJejuJN86j tg8gS+xcaIz+J4Ef4xeq2YaEH5hMnoFiUSLrnHNnbYHze9NCNl9mYel3gF+TMFVoDwLV DJAUUKXlON5vhYHkKZJtv9vAWHByBJ1jHsulBwzbY31gaYGXaiIXu+UGJT/RuqBNrUuQ NaC+6NmF75JVWDh+G/fmMLd32pjwpQDsPg9qOH6SWTqTdfbv2Eamw4wDniSpGHvva7Dc thRIpmfS0cMmjIdGYxyi0PFLIjy15CLktaoSKv4/Tun4q4t6bs8y0VjsmoXug+psUbAd /UIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature; bh=/DT8KaqdvTHpY2pdkwC/qpDtPEs0oqYy0DlmoYI6060=; b=Of756aZSTNUvj7J0GrWLtWGhbR3Wc6ynHXV15717FEyXnXOhHpMl6l8osq1s9/kUmf J5sWk90M1ssYUGkTr8u75oCuN77hMt2NjGg5DZ8nmPMu5jFqPoV7OsGwxf5SwH5CCgkr SQCZ5kzJndVTPxnQyyTq3E/UNA5K86IGlu6N1ZKGN01UiM8WisCyMnGKCyuTETCGGtoq 853UjbTUKMUL37WuKnAjti0G6Fes2s1/aMwgJhqM19bxUtZhp5BHtemj2z4QfuR+YSWl ZcA3TOFubyN1/LFxo71HZeadFJ3Gc5uqjIGu2iyTVRGwY100O2Ye5rElLEbJCvL/x7Uh 7vXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="D0W/A4TI"; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id m12sor12278818pjq.31.2020.06.05.14.19.31 for (Google Transport Security); Fri, 05 Jun 2020 14:19:32 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="D0W/A4TI"; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=/DT8KaqdvTHpY2pdkwC/qpDtPEs0oqYy0DlmoYI6060=; b=D0W/A4TIxeMbHVU7mcGxqr9tmsLnd9fwjOIfXwwAiqDbXhQKlm82IeqQVIAKcBM3aj 8CxseH4wDPHoMGwc86GrKxUEwfF6dr8VVVl0l1GusyAqeJqTF8M+jHpLpdsloiYHIxDo EXkgKHYsBGFvSZ3EQw+G1l47XUh7kJgE58QFvsGHY+uQv7EiE/9enrDAuDqIXiAUbOfS 1J7Y7ryh6pXGHV4AagqtrHQAopBw4F3zmOa6GK3H0+DLuJMUHiMMsn+Z97CmBnEbs/sc 7JDKhCu/EmG1hQkwct5nYnEFnw2fBNsOSPgXfqG4BaFYmx9BkUuKQqmcQe5AJuHg6aNd dGvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=/DT8KaqdvTHpY2pdkwC/qpDtPEs0oqYy0DlmoYI6060=; b=EBS1MuCIDb9xS2UQJdnORfS83yw/NAfvoabZEV9AWduJjvEj2ncdBGBXrxgMbln0Ok Nxlpju/06pyeoU7MwNGwwSh0Ds2BeXnh//IXX9mVV8sB7xsQoV6cjs+kZqNkWtXyONG2 C01W1cLs4MQqUglfQ8UI9OQtl6PbDcjEVQQy0DVr8dcHEWA1o7m4cCznxcZ3FngFlVqz I3vFJCW3G4uoHroYA0+I7q9L/TuWHcazmuezGY621M6UX7Jjbpq9TrEe+kT/B8O0iSx3 OTYHHdsBB3kxchHiegudRh6xpnUfbIBrNqHuCqVvPhK6CsTJyEINqB5PE5LBC1BrxdCU 4Buw== X-Gm-Message-State: AOAM5328V9yp/lf0Gi9ItWcj4V5Kl0xBajbmhC/xc+1WxAU7b+ta0xcd MCOqMRSe1JyTnEyPPC2RKosn4ARz X-Google-Smtp-Source: ABdhPJzJZXzNp787muuA7EB3j0sZ07R24oGZ7ooutcPi22eAqHT6ton+M88dLERu90HuIw9ZOFDMgA== X-Received: by 2002:a17:90b:19ce:: with SMTP id nm14mr4929980pjb.23.1591391971562; Fri, 05 Jun 2020 14:19:31 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id k126sm472302pfd.129.2020.06.05.14.19.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jun 2020 14:19:30 -0700 (PDT) From: John Stultz To: lkml Cc: Saravana Kannan , Srinivas Kandagatla , alsa-devel@alsa-project.org, John Stultz Subject: [RFC][PATCH] slimbus: core: Set fwnode for a device when setting of_node Date: Fri, 5 Jun 2020 21:19:25 +0000 Message-Id: <20200605211925.87873-1-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 From: Saravana Kannan When setting the of_node for a newly created device, also set the fwnode. This allows fw_devlink to work for slimbus devices. Cc: Srinivas Kandagatla Cc: alsa-devel@alsa-project.org Signed-off-by: Saravana Kannan Signed-off-by: John Stultz --- drivers/slimbus/core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/slimbus/core.c b/drivers/slimbus/core.c index 526e3215d8fe..44228a5b246d 100644 --- a/drivers/slimbus/core.c +++ b/drivers/slimbus/core.c @@ -163,8 +163,10 @@ static int slim_add_device(struct slim_controller *ctrl, INIT_LIST_HEAD(&sbdev->stream_list); spin_lock_init(&sbdev->stream_list_lock); - if (node) + if (node) { sbdev->dev.of_node = of_node_get(node); + sbdev->dev.fwnode = of_fwnode_handle(node); + } dev_set_name(&sbdev->dev, "%x:%x:%x:%x", sbdev->e_addr.manf_id,