From owner-freebsd-arm@freebsd.org Mon Sep 7 00:30:49 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 429F63E492B for ; Mon, 7 Sep 2020 00:30:49 +0000 (UTC) (envelope-from thomas-bsd@skibo.net) Received: from guinea.birch.relay.mailchannels.net (guinea.birch.relay.mailchannels.net [23.83.209.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bl8MX0czHz4gdx for ; Mon, 7 Sep 2020 00:30:47 +0000 (UTC) (envelope-from thomas-bsd@skibo.net) X-Sender-Id: dreamhost|x-authsender|thomas-bsd@skibo.net Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 5732C70019D for ; Mon, 7 Sep 2020 00:30:45 +0000 (UTC) Received: from pdx1-sub0-mail-a50.g.dreamhost.com (100-96-22-78.trex.outbound.svc.cluster.local [100.96.22.78]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id B6BA87002F4 for ; Mon, 7 Sep 2020 00:30:44 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|thomas-bsd@skibo.net Received: from pdx1-sub0-mail-a50.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.9); Mon, 07 Sep 2020 00:30:45 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|thomas-bsd@skibo.net X-MailChannels-Auth-Id: dreamhost X-Bored-Decisive: 5e97d6442f1736f8_1599438644960_412527284 X-MC-Loop-Signature: 1599438644960:1837341313 X-MC-Ingress-Time: 1599438644960 Received: from pdx1-sub0-mail-a50.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a50.g.dreamhost.com (Postfix) with ESMTP id 4A46DB39DE for ; Sun, 6 Sep 2020 17:30:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=skibo.net; h=date:from:to :subject:message-id:mime-version:content-type; s=skibo.net; bh=Y oHzFkv1k+Vx09rwRRWmEkrpzgs=; b=wcjRgYYoOLBNkFg29/le2MC8/HtYwWPeZ HHy0yKaXiOZhOX1S+fGYz9aHYd6KGHFnXj28uUMYzXariUr6Ok8K7UvKk5org3aD e2Z5O+XhATJt0Xc5AvNULHyFbdiyMPy46U7xZ2Bz1MdoJJ10cLR0l943XyORTu9h s8ykEu1sik= Received: from bentley (c-98-35-230-191.hsd1.ca.comcast.net [98.35.230.191]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: thomas-bsd@skibo.net) by pdx1-sub0-mail-a50.g.dreamhost.com (Postfix) with ESMTPSA id 9A4C5B39D4 for ; Sun, 6 Sep 2020 17:30:43 -0700 (PDT) Date: Sun, 6 Sep 2020 17:30:39 -0700 X-DH-BACKEND: pdx1-sub0-mail-a50 From: Thomas Skibo To: freebsd-arm@freebsd.org Subject: ti_scm_syscon driver Message-ID: <20200907003039.GA45956@bentley> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduiedrudegkedgfedvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkgggtugesthdtredttddtvdenucfhrhhomhepvfhhohhmrghsucfukhhisghouceothhhohhmrghsqdgsshgusehskhhisghordhnvghtqeenucggtffrrghtthgvrhhnpedvheegleehgeefuefhfeeuteevveejudeuudduuedvhedvffettdfhheelieethfenucfkphepleekrdefhedrvdeftddrudeludenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopegsvghnthhlvgihpdhinhgvthepleekrdefhedrvdeftddrudeluddprhgvthhurhhnqdhprghthhepvfhhohhmrghsucfukhhisghouceothhhohhmrghsqdgsshgusehskhhisghordhnvghtqedpmhgrihhlfhhrohhmpehthhhomhgrshdqsghsugesshhkihgsohdrnhgvthdpnhhrtghpthhtohepfhhrvggvsghsugdqrghrmhesfhhrvggvsghsugdrohhrgh X-Rspamd-Queue-Id: 4Bl8MX0czHz4gdx X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=skibo.net header.s=skibo.net header.b=wcjRgYYo; dmarc=none; spf=pass (mx1.freebsd.org: domain of thomas-bsd@skibo.net designates 23.83.209.79 as permitted sender) smtp.mailfrom=thomas-bsd@skibo.net X-Spamd-Result: default: False [-2.54 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; R_DKIM_ALLOW(-0.20)[skibo.net:s=skibo.net]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:23.83.208.0/20]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.001]; DMARC_NA(0.00)[skibo.net]; DKIM_TRACE(0.00)[skibo.net:+]; NEURAL_HAM_SHORT(-0.57)[-0.568]; RCVD_IN_DNSWL_NONE(0.00)[23.83.209.79:from]; NEURAL_HAM_MEDIUM(-0.98)[-0.975]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:36483, ipnet:23.83.208.0/21, country:CA]; MID_RHS_NOT_FQDN(0.50)[]; MAILMAN_DEST(0.00)[freebsd-arm]; RWL_MAILSPIKE_POSSIBLE(0.00)[23.83.209.79:from] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Sep 2020 00:30:49 -0000 Hello. I am testing some code I have developed to provide the Zynq boards with a real clock driver and update the other device drivers to use the clock infrastructure. It is also supposed to allow us to use "upstream" gnu dts files. But, I ran into a problem booting a GENERIC kernel on my Zybo. The ti_scm_syscon driver, which has the "syscon" compatibility string, grabs the zynq-slcr node before my driver. The compatibility property for the node in the GNU dts file is; compatible = "xlnx,zynq-slcr", "syscon", "simple-mfd"; I fixed the problem by having my probe routine return DEVICE_PROBE_SPECIFIC. But, the DEVICE_PROBE(9) man page seems to say I shouldn't do this. Also, I see a lot of device nodes in other boards that have "syscon" along with their more specific driver name. Aren't they going to run into problems too if the ti_scm_syscon driver matches them? Should the ti_scm_syscon driver use a lower priority return value in its probe routine? --Thomas Skibo