From nobody Fri Aug 1 12:37:09 2025 X-Original-To: dev-commits-src-all@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 4btlnx4wG9z63rBs; Fri, 01 Aug 2025 12:37:09 +0000 (UTC) (envelope-from git@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 4btlnx2qYgz3PjG; Fri, 01 Aug 2025 12:37:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1754051829; 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; bh=K2cYuFAufZ9V7r2h056+qV41rhFMezhxtLda0bpmF5g=; b=utPVlfTl6eZqAmXmHoDjfonkWgkVHWJXGXkCa34FGK54cKdu82ArP/a9VOyy4MN+Q62lNb oOJlD2FKIMhWNKiTF0F234ppzFMCYI1fXYGrvsrqdDzmrso+1cKByDbJiz5tdWkAA4Bxi7 b9HVR63rBQ4MN41mUb5u4FK6cSIhE9rrEzSBW2aaf57U23UWZXfOI4xfLAbhZqArhuvDL4 wFZxYyuqXxR+H6e0eLndu+nlIahSBsvfyFTZjljFAfqp1jtu/wthgoM0U+an8YzFYZb1p/ voGiXrZ8xkIrUKo0aFWUY1lMwhQGqc4y7NN8GPwAGltC+/YH+NP94wnt93nftA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1754051829; 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; bh=K2cYuFAufZ9V7r2h056+qV41rhFMezhxtLda0bpmF5g=; b=lckSzn+ESeGUz5st7IJijNc/N92u7yd6OvfdqxAVYi7YkpBWeGIUasOPL0YylYvDbRDQip zoTJ782hyLtGOG0BcgxmubQVJL4XanNG00wC2LLBwp6wZBa9XKlXxanb/qul/MXEHbOT/J LIbsuXZxya5Owcm+ty66xqqe4fXNVONBKLTmcaqvs/7YVIQIkqAILXiOEYYzrHpis5tOnq M4V0IrbjvqXoVXTODsLkQJ+dJ9g8uFhxL9ra2YX2TGWXZlIZr8Uypq6KH6/5Yc0RBa6VUd 0q22qlLnC/t93lmuNfLa90rcDAOUG8k3Rt4Hy5IqCbEs8MeREc712JXjkhWRyA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1754051829; a=rsa-sha256; cv=none; b=S7FJbG0kUskovBffRiPBpA5wgkjkRqviWI9nMwNmtCWwBZjghyV7f/jd1G5M3yCM+3NmQq oHY5XA4YAneBG3pajLmytOZ8AiWZD3iSdaf7mhM1m2pvjC71vGPM7pik9Ro1DTuhdVkvLn IPRdsG8fTvDCT/bqzkGEl0OHu22H2ZHSmk17G2R3f/Q60KW4bQtZTEnKAQDDASP+XqYLZI sSpmuTQmQOiRjtpz6EEMEeGQUBOVVoq8F3k5Q7FgNwDljI+Z+1u+2b0yyl+wmvH0US3L+p fAy5MU7iNOyxWlmCx0bj4rblxsQ/PcHhdElCzPLTh5LDUEpRYMkGioZyblhIIA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4btlnx2R1mznVG; Fri, 01 Aug 2025 12:37:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 571Cb9xB051960; Fri, 1 Aug 2025 12:37:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 571Cb9bF051957; Fri, 1 Aug 2025 12:37:09 GMT (envelope-from git) Date: Fri, 1 Aug 2025 12:37:09 GMT Message-Id: <202508011237.571Cb9bF051957@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Bojan =?utf-8?Q?Novkovi=C4=87?= Subject: git: 19643b415b2b - main - if_dwc: Ignore clk_set_assigned errors if "assigned_clocks" is not specified List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bnovkov X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 19643b415b2b93d1a1ed619f40f1a7ee2adebc0a Auto-Submitted: auto-generated The branch main has been updated by bnovkov: URL: https://cgit.FreeBSD.org/src/commit/?id=19643b415b2b93d1a1ed619f40f1a7ee2adebc0a commit 19643b415b2b93d1a1ed619f40f1a7ee2adebc0a Author: Bojan Novković AuthorDate: 2025-01-18 19:04:37 +0000 Commit: Bojan Novković CommitDate: 2025-08-01 12:35:54 +0000 if_dwc: Ignore clk_set_assigned errors if "assigned_clocks" is not specified dwc_attach will currently fail if clk_set_assigned fails, even if the "assigned_clock" property was not specified. Since there are platforms whose DTS files do not have this property (e.g. if_dwc_aw, if_dwc_socfpga), do not return an error if clk_set_assigned returns ENOENT. Reviewed by: manu Differential review: https://reviews.freebsd.org/D48529 --- sys/dev/dwc/if_dwc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/dwc/if_dwc.c b/sys/dev/dwc/if_dwc.c index 33657b33fe25..1b4b4be68747 100644 --- a/sys/dev/dwc/if_dwc.c +++ b/sys/dev/dwc/if_dwc.c @@ -535,7 +535,7 @@ dwc_attach(device_t dev) sc->aal = true; error = clk_set_assigned(dev, ofw_bus_get_node(dev)); - if (error != 0) { + if (error != 0 && error != ENOENT) { device_printf(dev, "clk_set_assigned failed\n"); return (error); }