Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp6469079imd; Wed, 31 Oct 2018 12:11:09 -0700 (PDT) X-Google-Smtp-Source: AJdET5ej/RJ2FnhQBt+uH6/Ti/D2ASvJd2VxJ3DNno1cR+wcog5uTkXkFDY/+1mkW/GlELiEJ+Gb X-Received: by 2002:a17:902:8342:: with SMTP id z2-v6mr4537011pln.147.1541013069922; Wed, 31 Oct 2018 12:11:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541013069; cv=none; d=google.com; s=arc-20160816; b=mCUDNBiwU5sQGbCCWUMiSh3pN8WcUS2BFa1dtChCNS8vga9DS72TkyUh24pgMTgYXT wXlMh+v1tPFhjiy1Sh1d4o98G6ZqKQptNUitujpdM2SuHEd20W+wmt+/jUY5a+FnKjHj xLAguRBH8wAm95Lr5zvTBgsHq9Aqp8kng/r4uDfg7KERkaxGOP3u4RJBkeHslXcOz4nR ByDx7as7tf4SMHRanTWSbfRty8hFdYtIhFuPjOhLk9fhUHjsnmnH0bOv69cbW+shEx8Y 4P1PSUsAPNqdRolrO+zLgKk8/gTk1FYbGk+rkQRuDkP4GJQYx9+4FjmLLioUF/ub1jaZ KhAg== 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=QP5rF20Pi8ovO+yfvRL/Hfllt8etyhwLu79wOuGYgL0=; b=aUcAYuEBGwX4wSrzlpSqnHg/2QWzBVRD0MTRcLPHhXGAdRuWoGGR/K1NeAFq6Tfa1H AP2+nbgr0mZnEgER/CPxpj6eQ7Sz70N8U8/gaRAgyoHtC5mXy6v4VxI5QhFhKq0Z1sSx 6PsXtT5GBVFOk6aSeGXlkMgdfGyFa188WQn/AO1opf0XQg2e9q6alx9s76eFUDniLUic 6B0/nxhVzepPwDEDwpSpFxZW2EtwEQbMg5/J5H5Fn2MUU45xt/9u7eBpexUH2SVyIYyL 0UlwDpl6YsDP1QffDynukEyjlPMhZWLGttdIn+/ooY6xJ6wXa6dFTImTNnh0/FDu6Ma5 uPBg== 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 f3-v6si18260098pld.186.2018.10.31.12.10.52; Wed, 31 Oct 2018 12:11:09 -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 S1726230AbeKAEJY (ORCPT + 99 others); Thu, 1 Nov 2018 00:09:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52292 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726124AbeKAEJY (ORCPT ); Thu, 1 Nov 2018 00:09:24 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8C3683082E07; Wed, 31 Oct 2018 19:10:02 +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 0EB4210018FB; Wed, 31 Oct 2018 19:10:00 +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: <20181031161300.vzk6nsyyyvjukqxz@gofer.mess.org> References: <20181031161300.vzk6nsyyyvjukqxz@gofer.mess.org> <12108.1540984768@warthog.procyon.org.uk> <20181031104912.s3tqjl3u43ou3kwo@gofer.mess.org> <20181030223249.dhwhxdjipzmjxzsy@gofer.mess.org> <153778383104.14867.1567557014782141706.stgit@warthog.procyon.org.uk> <20181030110319.764f33f0@coco.lan> <8474.1540982182@warthog.procyon.org.uk> <13768.1541001100@warthog.procyon.org.uk> 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: <9073.1541013000.1@warthog.procyon.org.uk> Date: Wed, 31 Oct 2018 19:10:00 +0000 Message-ID: <9074.1541013000@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Wed, 31 Oct 2018 19:10:02 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sean Young wrote: > device_create() will register the device in sysfs and send uevent. So, your > original udev rule/code will not work, since it always would read > a mac address of 0, as proposed_mac is not populated when the device is > announced. That is, unless udev is scheduled after the mac is read. I guess that must be what is happening as it does seem to work for me. > I think the device_add/device_create() which triggers the uevent should be > delayed until everything is available. Is it possible to switch vb2_dvb_register_bus() and dvb_register_ci_mac() in dvb_register() in cx23885-dvb.c - or does that prevent the firmware from loading? And I'm guessing this change would have to be applied to all drivers? David