Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3579055ybd; Tue, 25 Jun 2019 05:09:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqzfv3Ni9Psx/zc++IBwRWx33/e/2sRGPceYFUaVI/hHCm9KBcTO4O4R2LONmaC3TgTUx/qQ X-Received: by 2002:a17:90a:bb0c:: with SMTP id u12mr32022202pjr.132.1561464598094; Tue, 25 Jun 2019 05:09:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561464598; cv=none; d=google.com; s=arc-20160816; b=ou1Chc9zCR6yqBqS/SjQvxCYbu4xfQwegUO1gsg9tbM9Q9L47lfVjQp6qTAG8Wy1dm rfY1N9fohBoWN8D1qkV0RPBsDHJcCTaSyfRuyO4jvuzc48JZJfhZyU7OqQw1GnCKqqzH hK+cQZZ765Rm7MvASHTg08jKnhzcZH9wNswj3uNvIJEvIZyPcsSKWYwK41Fh4He0SKM+ t+6w7NCX2nFGVtglrPbc+CevEkXQU6yMi8ZtSbwznP2PD2PdHg9IY58YbUZwVNS6Pl9Z XgUFa9dLbb9JfSceV/o2bxSopNIH+BChGKhfM/QdfWp8wuqQDWcEl283bd+yTSRIqPlw /DwA== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4yfZs4/ThCrYgiLeGh1TAYd7N0nWcLtcO65UGF7jKL8=; b=glm4sAQ2A0/Y5s4kbX4pJ9ZkSieFKcNjSphhQ0EqAV8Mab3nkuEARTMQ9BkptrjCXE MpFlNNUKa0EBtMWYDwDpbKyrr/BfWQoi1KdYIbGGHpGHORlfowW7MECo8CMfFAB37BUk u+0meiDHTjmRrnsKJUfmsv/PcdblTfTIdQ9QK5Gm8eTPsyRx6docqqIHfcomHOwCNI8l ayHokvjtGB+F1sIdZpwyjmJM30pSFbydEknzSXEXlgH/ZTk39Fj4JAlGpPfuFz/ch9QZ jS/3OJSavQ7twCiODo5dADI/0nWneW5JhyBZvWvWeGASHm93Ub7+lNkdtDeLwfNt1bsM 4X6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=oq9m6q3K; 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=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ay6si195668plb.203.2019.06.25.05.09.42; Tue, 25 Jun 2019 05:09:58 -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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=oq9m6q3K; 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=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731826AbfFYKED (ORCPT + 99 others); Tue, 25 Jun 2019 06:04:03 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:49824 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726421AbfFYKEC (ORCPT ); Tue, 25 Jun 2019 06:04:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=4yfZs4/ThCrYgiLeGh1TAYd7N0nWcLtcO65UGF7jKL8=; b=oq9m6q3Kox2FooWO0Am5oLHJe PMDVQvjbOGmV6+EYXqlzy8VtHHsxUohQbJxIq+DHgSBclpN7gExON5bgBKujZ0sI7rvjDkU3UY887 OZDcLMu3WE6t4afKI08sesNCKe0LUFC6/t47IwTf/2iuKdIKA9jsDU3wcomZnjvha2ol8p+haHlU7 /dT8CmadCWsevk94t4cKTN5Zr1GANzIWDzJ97URuA3SdVn8l4nBr+SNmDzMByaxdVJ4dFbxrwOyek WojKMosB8ZZmGVBTZPB9jxzmH0f4OtSpeFO44AohUYXHvUsxQC5adtmJbSPGXnZ2eKLbzdwb0Vflr Oo6B1aEiA==; Received: from shell.armlinux.org.uk ([2001:4d48:ad52:3201:5054:ff:fe00:4ec]:58978) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1hfiIw-0005g7-K5; Tue, 25 Jun 2019 11:03:58 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.89) (envelope-from ) id 1hfiIq-00077V-3W; Tue, 25 Jun 2019 11:03:52 +0100 Date: Tue, 25 Jun 2019 11:03:52 +0100 From: Russell King - ARM Linux admin To: Andrzej Pietrasiewicz Cc: 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: <20190625100351.52ddptvb2gizaepi@shell.armlinux.org.uk> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up