Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp5879545imd; Wed, 31 Oct 2018 03:37:20 -0700 (PDT) X-Google-Smtp-Source: AJdET5dBNsvDV/iKa/KJ8BGdZAkceW1HeZ1ISfIuGHOQitxKy5vikR/hZCbqX+52DFmI9BXAYhI8 X-Received: by 2002:a63:7044:: with SMTP id a4mr2518991pgn.359.1540982240268; Wed, 31 Oct 2018 03:37:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540982240; cv=none; d=google.com; s=arc-20160816; b=Kyqkn5+V01PJ72eFxWQvw/ppgsoBFNsBqtBEH7ep0XLq6ibgq3EIrlk3heXjt6bEvJ 6e6fDa+gN92xt6+AGXCv/YTx7yIzSMTRN+2hF9H/VmWDLnRuagOOKYJ2j/IRXEBZVqX5 ZBM6renq8OrJe0OXE4pNJ1Sjw09DTYnDjJpNxiB4tEnZKwSnLp8tKGFaRTGZk9W3UWE8 00z7a2IdRvrk3Z5B2isQtMA4khalxUXvuh8EDCgz490vwBjUjC3qLb3cdicZ6+Zqy6rR y+IBlpmZ3hrBPc9KrYR97KpAG6MamN2S5khjM0rv43Qf27n00hC9ADbRl5MlZ6/M70yq scoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-id:mime-version :subject:cc:to:references:in-reply-to:from:organization; bh=8ZqHJDuaiVXn99qLdVWljl2LBsIL30tJ+kbw/nfp1d0=; b=indA0hYmuYV6fbpdW/57p7BJDucmD90TUG+NjY1QctS/EAaMvy+gh4wPgLPxNHoSSV VAljk+rpstF98kt8DJjSJKcHbxQdBY/WM83U+DXn3wkuiQD8qyChuuSmRsnnewK7+89J dWnyUMi4qgmjdFrPfNrFnnGJzuBFjhruErM7VGDEXOgCOMD7REwM8Xj60Y9CofKQ6fEI pHbIrL2r+ugyo6wynndW9ZXo2kaZEwvOZvohr8TH3FPTERzFzTStKWpx0PqADsgvFK45 rs4HnAX/VSA5uRLSNfZISNYoyA5KTevUprq2NNapy7VEsUH3C6d0KvkzN7wc2EsRel/E BGsQ== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f39-v6si27707912plb.149.2018.10.31.03.37.05; Wed, 31 Oct 2018 03:37:20 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728625AbeJaTd5 (ORCPT + 99 others); Wed, 31 Oct 2018 15:33:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43802 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727852AbeJaTd5 (ORCPT ); Wed, 31 Oct 2018 15:33:57 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C0D5E2D7E0; Wed, 31 Oct 2018 10:36:24 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-113.rdu2.redhat.com [10.10.120.113]) by smtp.corp.redhat.com (Postfix) with ESMTP id D159718686; Wed, 31 Oct 2018 10:36:22 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20181030223249.dhwhxdjipzmjxzsy@gofer.mess.org> References: <20181030223249.dhwhxdjipzmjxzsy@gofer.mess.org> <153778383104.14867.1567557014782141706.stgit@warthog.procyon.org.uk> <20181030110319.764f33f0@coco.lan> To: Sean Young Cc: dhowells@redhat.com, Mauro Carvalho Chehab , Michael Krufky , Brad Love , mchehab@kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dvb: Allow MAC addresses to be mapped to stable device names with udev MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <8473.1540982182.1@warthog.procyon.org.uk> Date: Wed, 31 Oct 2018 10:36:22 +0000 Message-ID: <8474.1540982182@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Wed, 31 Oct 2018 10:36:24 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sean Young wrote: > > > Devices have a MAC address available, which is printed during boot: > > Not all dvb devices have a mac address. How do I tell? If it's all zeros it's not there? > Devices without a mac address shouldn't have a mac_dvb sysfs attribute, > I think. I'm not sure that's possible within the core infrastructure. It's a class attribute set when the class is created; I'm not sure it can be overridden on a per-device basis. Possibly the file could return "" or "none" in this case? > The dvb type and dvb adapter no is already present in the device name, > I'm not sure why this needs duplicating. They can be used with ATTR{} in udev rules. I'm not clear that the name can. > With this patch, with a usb Hauppauge Nova-T Stick I get: > ... > ==> /sys/class/dvb/dvb0.demux0/dvb_mac <== > 00:00:00:00:00:00 I can't say why that happens. I don't have access to this hardware. Should it have a MAC address there? Is the MAC address getting stored in dvbdev->adapter->proposed_mac? Maybe it's not getting read - on the card I use it's read by the cx23885 driver... I think... The nova-t-usb2.c file doesn't mention proposed_mac. David