Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3678087ybd; Tue, 25 Jun 2019 06:44:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZoc0b4+aI7mMFqmw0FsYkGhQXE3Old2RqQ56XuwTyyWucHWr0gUavOMi+y/paJmDlM1JH X-Received: by 2002:a17:902:b713:: with SMTP id d19mr43574330pls.267.1561470242711; Tue, 25 Jun 2019 06:44:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561470242; cv=none; d=google.com; s=arc-20160816; b=HXX2ijLs4HJLtBcx9YtvCF6HtQJ/RTSFDvnNJLCQ21lhpR6sUlWWUthsnbN6/Ju2gc WOs+XzoZd7F7GPmmuA7ueFST49f3lGS0hExV+aioSiOMLRiwYRfCnQ8Jm3hYTAMT3BrA hrKWZVuh78Xpl0WR6FhBd1MVBrbWZ6rtoJVxpxt185/96XFDX/bi9a5GubaZD4/4RRWE rX0v2K857y82QsNlE835e+9TTLqzdV+krU8DEAAPQ1Z+Rbdrnc66e5vICSAiLJ3Neyvn ubM7NStSBbYhMFnbi6dyNAEUpe0rB4Ahrnj3P45tATS+DWHfGtoqaWTmzEjZvyHcoKc0 KqgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Ax+PORRDF5RoK915AyUTwaS+d5M9LbK8fb+tq89Gb3c=; b=FJPqv13eycCvRetNmEpBIuxaSaDg3bY8fSszAyyLncKw8+NAFte84r/PysRgx6hey8 teY0ldF5oLNnpPho/fO0YZOEEPNq9uYqqJxi7Y4zRRE+6kjuc9fBqkdreYsH2WeK3MN7 1C7FJxLoGtEDjDsuyjzVHeZjnHxJydKwOW8oWT0PCEpexWTgjn0Xx0fp5axhSJKKL8eD i6/E6KBInOGzFisWfSz2eiHUAYO2Y9F7DnHG+W5KLQwFWv4D9q+BvyHzB+M2ZASZBdSu TusLdwlqGzi9sdeYKRmIb6TMPp335FmRQhOu+Nn9Uz5UEwh2wcJJdVMe4K6Dmtr5jd+o T/ag== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q8si14948645pfc.155.2019.06.25.06.43.46; Tue, 25 Jun 2019 06:44:02 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730616AbfFYNi6 (ORCPT + 99 others); Tue, 25 Jun 2019 09:38:58 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:57236 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729365AbfFYNi5 (ORCPT ); Tue, 25 Jun 2019 09:38:57 -0400 Received: from arch-x1c3 (unknown [IPv6:2a00:5f00:102:0:9665:9cff:feee:aa4d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: evelikov) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 706A9260D5B; Tue, 25 Jun 2019 14:38:56 +0100 (BST) Date: Tue, 25 Jun 2019 14:36:39 +0100 From: Emil Velikov To: Andrzej Pietrasiewicz Cc: Russell King - ARM Linux admin , linux-samsung-soc@vger.kernel.org, Joonyoung Shim , Maxime Ripard , Seung-Woo Kim , Maarten Lankhorst , linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Inki Dae , David Airlie , Kyungmin Park , Kukjin Kim , dri-devel@lists.freedesktop.org, Daniel Vetter , kernel@collabora.com, Sean Paul , linux-arm-kernel@lists.infradead.org, m.szyprowski@samsung.com Subject: Re: [PATCH 0/2] Associate ddc adapters with connectors Message-ID: <20190625133639.GA16031@arch-x1c3> References: <20190625100351.52ddptvb2gizaepi@shell.armlinux.org.uk> <817ccfba-754c-6a28-8d75-63f70605fd43@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <817ccfba-754c-6a28-8d75-63f70605fd43@collabora.com> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/06/25, Andrzej Pietrasiewicz wrote: > Hi Russell, > > W dniu 25.06.2019 o?12:03, Russell King - ARM Linux admin pisze: > > On Tue, Jun 25, 2019 at 11:46:34AM +0200, Andrzej Pietrasiewicz wrote: > > > It is difficult for a user to know which of the i2c adapters is for which > > > drm connector. This series addresses this problem. > > > > > > The idea is to have a symbolic link in connector's sysfs directory, e.g.: > > > > > > ls -l /sys/class/drm/card0-HDMI-A-1/i2c-2 > > > lrwxrwxrwx 1 root root 0 Jun 24 10:42 /sys/class/drm/card0-HDMI-A-1/i2c-2 \ > > > -> ../../../../soc/13880000.i2c/i2c-2 > > > > Don't you want the symlink name to be "i2c" or something fixed, rather > > than the name of the i2c adapter? Otherwise, you seem to be encumbering > > userspace with searching the directory to try and find the symlink. > > > > Thank you for your comment. So you imagine something on the lines of: > > lrwxrwxrwx 1 root root 0 Jun 24 10:42 /sys/class/drm/card0-HDMI-A-1/ddc \ > -> ../../../../soc/13880000.i2c/i2c-2 > > ? > Fwiw my Intel machine lists a number of i2c devices: /sys/class/drm/card0-DP-1/i2c-6 /sys/class/drm/card0-DP-2/i2c-7 /sys/class/drm/card0-eDP-1/i2c-5 Note: I haven't looked _if_ they relate to ones you're proposing here. One thing worth mentioning is, the ones I've seen are not symlinks to another sysfs entries. And there aren't any i2c nodes in /dev ... Just a random food for thought :-) HTH Emil