Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp811341ybm; Tue, 21 May 2019 04:04:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqzlDwCjTnc4nAI3JxiQfMr0VK4PjMfUnnhMMzsoL5rMTvPmpKv4uicStXZlLwf7ktRYT28n X-Received: by 2002:a63:7989:: with SMTP id u131mr72358389pgc.180.1558436658354; Tue, 21 May 2019 04:04:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558436658; cv=none; d=google.com; s=arc-20160816; b=axBhSGIAPOWWa/FqSYYCljzGF4q+a7dWRdx3/BaDBDjV3lqqdngLzplNjnROEtn+5D qUlOP+zuURNmu62fVatmZI3gLOwItuU51r3qjrMSzNu1JU6pjmtgr/asCan9/kTM8Fzo PfRyjHgzh5m7ngHoP4czEeP/2lq4nO6FmHvNA4OecDpQ+qQUJ5HT0JB1BacRnSmJqji7 aY8YgMlru65vq4ohhOdEN5pyykW1o0a+aM2WqcuJKf72LjnS1XAq9iIVzF0q9/h5wacZ UQ+F5i3jk0W5avcuAa+EEay2eJLY0cz4E7qlnfgak6Vz71HE2T+t36ishi886x5NDbMO D0mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=JiOuebsbWgjEjp0a4XhtJdVmmGWnCnRTxg69qCcOtsY=; b=yXy8kNMvmslmRtTnR6jJDKIq3pgzTHhsfjNLrVgcVC4WbRcFnY71qBUiFkYYy+oYSH f9yQoC9chneeJDCiS4vi0Q0LoSKDVUSpq+Qh+7I1ITZ96JY/SaKFBlkMclz0RCPshqJG YK8YB9lO/vothkHWHAosd/gKjKIfX8FLqiHo9NzlFpwcg/kjv0eTd0OSjLU7gG1ZnI1U Rm1jyrAZEo9s73DGzL3UO+/uxay1TseKJ5SB2Egoe8J+Ncvuer59WbDf62tkeLx+2OoF Au5BkS4tdiM/bEGtgI1gbB8eqlWXDRppyU4ecTeY+L4rSRB8TXklvrVZtU4r37cfKbs0 YNXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ZvRBIPtf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y7si18887064pgp.299.2019.05.21.04.03.59; Tue, 21 May 2019 04:04:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ZvRBIPtf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727926AbfEULCP (ORCPT + 99 others); Tue, 21 May 2019 07:02:15 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:33484 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726138AbfEULCP (ORCPT ); Tue, 21 May 2019 07:02:15 -0400 Received: by mail-lj1-f196.google.com with SMTP id w1so15492208ljw.0 for ; Tue, 21 May 2019 04:02:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JiOuebsbWgjEjp0a4XhtJdVmmGWnCnRTxg69qCcOtsY=; b=ZvRBIPtfv2tQxLEbXHDCKUrcnh/NVGQfK3ADpUqQQBHq1gYARpxa+eRJtDdzIgJu00 kldlfPB4RQNBEqY7t9xCcYTx60nZQBUNINx3FuZLkV4uQquWRRo0ZPQVLb4Gmk2L8dfh USl8OwxlE0Lwfu33/W2BA31HSvaLTnOEeLrf1CWKLuutF2ytufBEwqs16ms8qN0neyLc +KOZj1m8EZx3foz/XKFg3yT3ele5AQZCLu7ZTBo9lCedes1ZgP7k8FK8ofFAumM/oNfz MuSoRVwe5VBd9AnIjHJGGJFnPOxeYVrX8VYOq1+YDhFfQguqeHkycLU5DZGaPjTGM2s/ c3LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JiOuebsbWgjEjp0a4XhtJdVmmGWnCnRTxg69qCcOtsY=; b=Uz0ce6iGmPdLqP44obEf79R7BWUDeHoJBokCpshAq04geX3+VEY8jhs8cpg6IVcukB au9n688J4TA6ACH5dzHblxZLNpyDWs5OIWrGiemXulaDWc3UoPG6MW9GaiVv639CJdF7 x/J11Zu1/LNo8W37Meqtza4sc5zVUD91UyZ9ogdEkMsO6uBY1hh599DMXJRSt7aO++bx btEaaDVepHvuN33qJfTBswin2d9KbSijN6/Hgl1hroN8LMe2PSbRggEL+/XQysZLepmL AjkOWBLBgCK8oL3dRe3qN7VjfIs6/Vy5WkDWjsTEmIkr0nlf2OxiRPRI4vNASqX1xOqw mvzA== X-Gm-Message-State: APjAAAUFMVsfhzQa4y/pyVn+N7ibFzdX/pwUz1dZtfViJOX3MGtvm/fG xRWXEJ7bSxI+6PtGJZcC0p6bWeoBdajU/iKf1hacEQ== X-Received: by 2002:a2e:2b58:: with SMTP id q85mr41770277lje.179.1558436532542; Tue, 21 May 2019 04:02:12 -0700 (PDT) MIME-Version: 1.0 References: <20190517154256.255696-1-darekm@google.com> In-Reply-To: From: Dariusz Marcinkiewicz Date: Tue, 21 May 2019 13:02:01 +0200 Message-ID: Subject: Re: [PATCH v6 1/3] media: cec: expose HDMI connector to CEC dev mapping To: Hans Verkuil Cc: linux-media@vger.kernel.org, hans.verkuil@cisco.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 20, 2019 at 12:25 PM Hans Verkuil wrote: > > It's a bit unusual since it uses the Synopsys bridge, but not the Synopsys > CEC driver (it has its own meson cec driver). > > The first thing I noticed is that I did not get any connector info. > I think that the root cause of that is that you forgot that there are > several drm drivers that call cec_notifier_get() instead of cec_notifier_get_conn(). > > I think all those calls to cec_notifier_get() in drm drivers should be replaced > by cec_notifier_get_conn() where the second argument is NULL, but the third argument > should contain valid connector info. > > A quick grep gives me the following drivers that need work: > > drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > drivers/gpu/drm/exynos/exynos_hdmi.c > drivers/gpu/drm/i2c/tda998x_drv.c > drivers/gpu/drm/sti/sti_hdmi.c > drivers/gpu/drm/tegra/output.c > I am afraid that just replacing cec_notifier_get with cec_notifier_get_conn won't necessarily make this information available, as, e.g. looking at tegra, those would also require some reshuffling of the code so that notifier is created once connector is initialized. Btw. I've updated dw-hdmi.c and tda998x_drv.c to use cec_notifier_get_conn, so at least those 2 will be covered. > The second thing I noticed is that patch 2 gave me a new kernel warning, but > I'll do some more testing for that and reply to patch 2/3 once I know more. > I hope this is fixed in v7. Thank you for your testing and best regards!