From nobody Mon Feb 9 21:19:10 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EBFC525A32A for ; Wed, 30 Apr 2025 10:12:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746007943; cv=none; b=os99yGcms/w42kzlZihidZhuuzrlWXaIiWb5XmvH4b7EmhOPiONDc0a6awoeWKD+H8iD0C4IRN7dZikWnuaxj3a5BrZ/VtZzdrp4HcFOnkUVGdutb32CScZG12BYXPNzTk0tTovzMHR41DqyHdfhFWFnPMfa7IV5V6vxIdWVCEw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746007943; c=relaxed/simple; bh=ecy6qqaWhM2xobngJ8fvS5peWhfAmVtAcOtECYDOYpw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KvFd63swOej+SkE/V2EkimvinbrjjN2gd3MejS/aGrta1jaX8jT1F9YFanDmLxl8hcBZ90+QNDvpybGkxl5IVGBmVWhpFTLTmZ+F8ecbGXdTwyWjbUzpes7RRvs64uDxZ+RXpMMDG2d8FsnZ3IncWM6nKrIiAn+m3wqjQHtTtuA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=XnAck9fM; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="XnAck9fM" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1746007940; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Djj8tsy+Ba85/DDYqso23/cXw9EWu4CIgtP3vOGRebo=; b=XnAck9fMZyFrvN1r8OSs+tjuUcNimVFH5H33s48lR6gTDHGMfsoXJ+nXiX4VM+ZojP8G38 fmoK0v/eHzqUFFoOz7wFHAzWyFAcx+fFhRCJcwS5vhiLEvy5g5jGsYanrwCEBR4cSp6fab k5mYZDWLCtHc+7Z0JbWwrn9jsYp8U3o= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-509-UUO7kGRMOp2Up6SB1LyAMg-1; Wed, 30 Apr 2025 06:12:17 -0400 X-MC-Unique: UUO7kGRMOp2Up6SB1LyAMg-1 X-Mimecast-MFC-AGG-ID: UUO7kGRMOp2Up6SB1LyAMg_1746007935 Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 648CC19560AA; Wed, 30 Apr 2025 10:12:15 +0000 (UTC) Received: from p16v.luc.cera.cz (unknown [10.44.33.50]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id B53BA1956094; Wed, 30 Apr 2025 10:12:10 +0000 (UTC) From: Ivan Vecera To: netdev@vger.kernel.org Cc: Vadim Fedorenko , Arkadiusz Kubalewski , Jiri Pirko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Prathosh Satish , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Simon Horman , Lee Jones , Andy Shevchenko , Michal Schmidt , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: [PATCH net-next v6 8/8] mfd: zl3073x: Register DPLL sub-device during init Date: Wed, 30 Apr 2025 12:11:26 +0200 Message-ID: <20250430101126.83708-9-ivecera@redhat.com> In-Reply-To: <20250430101126.83708-1-ivecera@redhat.com> References: <20250430101126.83708-1-ivecera@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 Content-Type: text/plain; charset="utf-8" Register DPLL sub-devices to expose the functionality provided by ZL3073x chip family. Each sub-device represents one of the available DPLL channels. Signed-off-by: Ivan Vecera --- v4->v6: * no change v3->v4: * use static mfd cells --- drivers/mfd/zl3073x-core.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/drivers/mfd/zl3073x-core.c b/drivers/mfd/zl3073x-core.c index 050dc57c90c3..3e665cdf228f 100644 --- a/drivers/mfd/zl3073x-core.c +++ b/drivers/mfd/zl3073x-core.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -755,6 +756,14 @@ static void zl3073x_devlink_unregister(void *ptr) devlink_unregister(ptr); } =20 +static const struct mfd_cell zl3073x_dpll_cells[] =3D { + MFD_CELL_BASIC("zl3073x-dpll", NULL, NULL, 0, 0), + MFD_CELL_BASIC("zl3073x-dpll", NULL, NULL, 0, 1), + MFD_CELL_BASIC("zl3073x-dpll", NULL, NULL, 0, 2), + MFD_CELL_BASIC("zl3073x-dpll", NULL, NULL, 0, 3), + MFD_CELL_BASIC("zl3073x-dpll", NULL, NULL, 0, 4), +}; + /** * zl3073x_dev_probe - initialize zl3073x device * @zldev: pointer to zl3073x device @@ -826,6 +835,16 @@ int zl3073x_dev_probe(struct zl3073x_dev *zldev, if (rc) return rc; =20 + /* Add DPLL sub-device cell for each DPLL channel */ + rc =3D devm_mfd_add_devices(zldev->dev, PLATFORM_DEVID_AUTO, + zl3073x_dpll_cells, chip_info->num_channels, + NULL, 0, NULL); + if (rc) { + dev_err_probe(zldev->dev, rc, + "Failed to add DPLL sub-device\n"); + return rc; + } + /* Register the device as devlink device */ devlink =3D priv_to_devlink(zldev); devlink_register(devlink); --=20 2.49.0