Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3706762ybd; Tue, 25 Jun 2019 07:10:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqxw1ODTwfP/wA0VqiTOAOtAYO/yXuX/hBi7ZQwlC3mhotJ/k2txXWY9N+GDhV2E/S/yXrd2 X-Received: by 2002:a63:7e43:: with SMTP id o3mr39599890pgn.450.1561471812358; Tue, 25 Jun 2019 07:10:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561471812; cv=none; d=google.com; s=arc-20160816; b=n24Zb5p1Wi+hHw6eVw2fmg7XEF8JSLYG9d5oUMTm8PN44HF6CqF7fyuBc6wTEgxnO0 1AEnmFmJRl7S8JoHETgFoA6FL7hgWo4opkBLQAXuWCb00iVvxuMVXt5vNGvZXG+9LndK lM7ueVRCyiGWorvofj0cznlAOebbAMfctxZax5dGNGBy/aBIs4IXSD3Dipmh0PcmcGP0 3Sy1F+CBRXCTGc/ARWqu/uItccQCOL4QYu9SuyjxkZc4+vrvdEvCPOFAkskDc9MfAHgb 7pMeobY/HLasXEh/oLEp4A2m11Xqb7PiXhJO5789WsNbi0bVpcAho6ZtF5GEPQmBbz7p fpmg== 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:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=CAtg3PLJ+XKSV8dAF2QLAFWrkpUis1quRM8X3SddO/c=; b=PElXD0tCFg1pkBr3MN2tMOD7J1JVo5wR8PxfU+1A/Eu8f0pBSIt13SEwG+5a9Ionhy aqK5M/BHzBieprWeTnsLuvUtJCQPtaq8bPKg+Tu3ibTRQf4niTUM9hYIrJ7aoP5gKBXp zmDWEA9zJW4Q8NQT4zlQ/YNxbVz8le0YCTzZ3KBg22fhf4joMNP5YJ+0BMlJ90pFhprg xQuOS899e3GlacYzgnvSCkNYj7HQSmhQd4bkyaxfOe4vSRMRfwhqt6Joe/mavpOKMLTy QavdvYiM6f+AShGS29ndBRD73fmvmYWnW2Pij36FeG+OrHcuu6RSnBrFaAG4Nvev4pBB xYmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=DlsNVgfR; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f127si6426539pgc.370.2019.06.25.07.09.56; Tue, 25 Jun 2019 07:10:12 -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 header.i=@ffwll.ch header.s=google header.b=DlsNVgfR; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728703AbfFYOIB (ORCPT + 99 others); Tue, 25 Jun 2019 10:08:01 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:34017 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727807AbfFYOIA (ORCPT ); Tue, 25 Jun 2019 10:08:00 -0400 Received: by mail-ed1-f66.google.com with SMTP id s49so27399313edb.1 for ; Tue, 25 Jun 2019 07:07:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=CAtg3PLJ+XKSV8dAF2QLAFWrkpUis1quRM8X3SddO/c=; b=DlsNVgfRWTP8NpGGrX9t3Nbz1zo7ltZhwtKOk/Es+ZdbHwht+lr3TCIe70hcYOlrBR ABPEEparLAqoeRRvZ5Pzq1cEVMTiKJ3tiqSO4M7ZzKp6aqKBOmxw686MYovwaEFXhy8l NK+f1Jf6pSuG3cXFg7wdY+FYcdimxOYB8sVXQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=CAtg3PLJ+XKSV8dAF2QLAFWrkpUis1quRM8X3SddO/c=; b=lkPpjKtioO7WS6HhRJnMr6zwQ6fUIct6hASneSRMbWWhMsGe93sK0mWpY2vqzqR6eX WDtu3MrKGwZtpu1Z/HBWqNyWP0etqt3hpFN6L0fSoORC8cROGE8iQXsqOQRR1AKlLQzd PTfNcpXUu6LzMJMy+YqDG69Y2xkMFCsp8+XvaY9osM2uG+UAte723tivk0Neo1If8pbD Way7aS7SWzWs1s8eTQzzgzicjvZLwBSxlAlfegFR6KCDtDxSDkHvuOJL6wkI+xhRUNvH aao4KaaDvhXa8N/KBOj/1MrJP2Ke1g/i33ihxB9orvZj6dGMTMAdf/y7EF5aISkeDGzy kS/A== X-Gm-Message-State: APjAAAV4lmPxxoKg2ZsaBlxbwQXX0uBNGdkJWyxbl0Hb2/n5GqLG6oMW a8veBIqci7VMmYjXQzxJYu6ntA== X-Received: by 2002:a50:92e1:: with SMTP id l30mr77999218eda.141.1561471678547; Tue, 25 Jun 2019 07:07:58 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:569e:0:3106:d637:d723:e855]) by smtp.gmail.com with ESMTPSA id w17sm4594091edi.15.2019.06.25.07.07.56 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 25 Jun 2019 07:07:57 -0700 (PDT) Date: Tue, 25 Jun 2019 16:07:55 +0200 From: Daniel Vetter To: Emil Velikov Cc: Andrzej Pietrasiewicz , 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: <20190625140755.GT12905@phenom.ffwll.local> Mail-Followup-To: Emil Velikov , Andrzej Pietrasiewicz , 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, kernel@collabora.com, Sean Paul , linux-arm-kernel@lists.infradead.org, m.szyprowski@samsung.com References: <20190625100351.52ddptvb2gizaepi@shell.armlinux.org.uk> <817ccfba-754c-6a28-8d75-63f70605fd43@collabora.com> <20190625133639.GA16031@arch-x1c3> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190625133639.GA16031@arch-x1c3> X-Operating-System: Linux phenom 4.19.0-5-amd64 User-Agent: Mutt/1.10.1 (2018-07-13) 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 02:36:39PM +0100, Emil Velikov wrote: > 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 :-) Those are the i2c-over-dp-aux controllers. I think we want to list these too. Btw to make this more useful maybe some default implementations for get_modes which automatically dtrt, as a helper? Probably could use that to squash quite a bit of boilerplate. Otherwise I like this. Biggest problem I'm seeing here is rolling this out everywhere, this is a lot of work. And without widespread adoptions it's not terribly useful for userspace. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch