From nobody Thu Nov 28 18:33:20 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XzlLT0Gj6z5f5rK for ; Thu, 28 Nov 2024 18:33:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XzlLS4yybz4hSZ for ; Thu, 28 Nov 2024 18:33:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732818800; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vlPv4fZ9TybnT3eHtEr0hahBd171QaMR78fkeaxEeWY=; b=Hz6kD3BMOC11O5YfpQYnZ+TkPCSAswOYb+QseKVFA/Tj/LQlsTo5myxM159Gw9U25oa36w aCH3wmo9X3o0lwefTptWWQ5D8O6AwcBga95cSWLiy3FnH12O3HAhYC4K9/bWlBD8T99z0l g9aeusVGECYnEHlVwyVoh9zLEAwA7g29/CtBQ+j7trypZinamr7Q9+HXFgFeUaXSdFlHsV 68FsJJgTMeEXmbCW9tJy9trIe7baBt018j63iKxaAzOZYSUyCu7JFVu1Q0tfthrbQLH0aG vaMiCoWjJxe1vAAh65Dvd+aunv13KJfRfFUwVs2GpWhL4M8OJjRq88WRGTZ71A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732818800; a=rsa-sha256; cv=none; b=ngM8BHUnpJzEDVR95VR3GJZcyblBJAkuBMY2f6jJiiLXTTSgYtz7ADgDcslucwl1bOceq/ QP2OaF1UzKOuWN7MPXqAQ4lyO60aSFG17sJBeLndEod1CWu5GRFhidU9zCNtKwPtcQ3UPZ elkE/BaEURfWMvLJZFEMi+Rin8bcmEIT8hInOQbkIOAjuyBLs8Cr9/mGqGfbyhN3CbAJ1W iL9nAlX8umPeiFM2NxKIze26OvE+Bft27/HrVY6hUlnhd8eRnZBaAr2GS+AN5/+hjf5n/K MruhdQm/uZL/wmOQZviAS0z2qB69j99/XyPgJn/024Z4cM6cxqluIG5m0i+aHg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XzlLS4b0hzq4s for ; Thu, 28 Nov 2024 18:33:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4ASIXKun028565 for ; Thu, 28 Nov 2024 18:33:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4ASIXKK5028563 for bugs@FreeBSD.org; Thu, 28 Nov 2024 18:33:20 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 262690] "driver bug: Unable to set devclass" for atrtc Date: Thu, 28 Nov 2024 18:33:20 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jfc@mit.edu X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262690 --- Comment #5 from John F. Carr --- If I boot verbose I see atrtc: atrtc-1 already exists; skipping it This message comes from devclass_alloc_unit. printf("%s: %s%d already exists; skipping it\n", dc->name, dc->name, *uni= tp); So *unitp =3D=3D -1. Variable int unit =3D *unitp; was initialized to -1, or DEVICE_UNIT_ANY. So this BUS_HINT_DEVICE_UNIT ca= ll must have happened. /* Ask the parent bus if it wants to wire this device. */ if (unit =3D=3D DEVICE_UNIT_ANY) BUS_HINT_DEVICE_UNIT(device_get_parent(dev), dev, dc->name, &unit); The printf is guarded by if (unit !=3D DEVICE_UNIT_ANY) so BUS_HINT_DEVICE_UNIT must have assigned a unit number. This macro invok= es a bus_hint_device_unit method. There are only three of these, one each for isa, pci, and acpica. --=20 You are receiving this mail because: You are the assignee for the bug.=