From patchwork Fri Feb 14 05:04:44 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grant Erickson X-Patchwork-Id: 13974493 Received: from mail5.g24.pair.com (mail5.g24.pair.com [66.39.139.36]) (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 8D82F1487FA for ; Fri, 14 Feb 2025 05:04:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=66.39.139.36 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739509494; cv=none; b=ddEd8LSDcgkX+uZ6BdQeyyRJn44Sp1MsHGDLauXqGzEgCxQrqEv2sa4Pdu6vc8Y2d7kAkD30vMVjRy47UR3HoOBqDcADTDeyhojKx8EMcr1XXWPQq2LkjDkFe9zkFBZ+t2bWu3GIt724Sdke9J7Yey6WROfIx7VNS9gio6w5UCg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739509494; c=relaxed/simple; bh=BOjh6BbY3gmEz2aVzixjVsKqCAX013D8zE0gTMLRqds=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TYzQiYgHCrnpSDOp3ZhNDIJ4nLd5p103ftqufKeqJ2Tv1/aVCraZCOOxy5fAgUjgUjfeAfcfJ3cI0pnIbkuR5Yr7o0KnZ1l9Vd+SjxnEjKbM1+ySx1Wl95VZIcOZhJAJnSaRPPSwRnkTRHxmhFgVkHLgel1aD85cSvSysMOTwU8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nuovations.com; spf=pass smtp.mailfrom=nuovations.com; dkim=pass (2048-bit key) header.d=nuovations.com header.i=@nuovations.com header.b=aJdZ9jPd; arc=none smtp.client-ip=66.39.139.36 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nuovations.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nuovations.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nuovations.com header.i=@nuovations.com header.b="aJdZ9jPd" Received: from mail5.g24.pair.com (localhost [127.0.0.1]) by mail5.g24.pair.com (Postfix) with ESMTP id A918C164A7B for ; Fri, 14 Feb 2025 00:04:51 -0500 (EST) Received: from localhost.localdomain (c-24-6-12-99.hsd1.ca.comcast.net [24.6.12.99]) (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 mail5.g24.pair.com (Postfix) with ESMTPSA id 5F890125167 for ; Fri, 14 Feb 2025 00:04:51 -0500 (EST) From: Grant Erickson To: ofono@lists.linux.dev Subject: [PATCH v3 3/7] qmi: Added device options parameter to 'qmi_qmux_device_new'. Date: Thu, 13 Feb 2025 21:04:44 -0800 Message-ID: <0e9adb66276124d2bebf2f54c6138959dc8068fa.1739509438.git.gerickson@nuovations.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: ofono@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuovations.com; h=from:to:subject:date:message-id:in-reply-to:references:mime-version:content-transfer-encoding; s=pair-202401062137; bh=BzRC/MPEuWrn1WIK740cPG2Pr1K+5r5gWLIEtdkDGqY=; b=aJdZ9jPdzC47EviSu6L0lE7Zy+uJmrgF924EGA7fb/bszySKQN1B10i8MAnQu4gPzVPNafGWApSUWUaz+0LNQuymx7G4GpF1MRmsQRAKFvU5UubP5qyfBI9bEkxvkPi4FmDmnL1VrODcDm/Uuud/mpuFS508a3mZcFzX36hbsZ7pZSPFqNYRSpiJ3tHfbUkBHo0ZDmpHaL4/2ZgPh6Psf9c14ZQRRchemm3QvkGP9gUARp6dGNehvTXkSIlROfp5WRCpAf287Wh1NTEdC95jktz8Q+GDrePNJsHr8xqG99jsbUlgijw/3VQGVePmyVbvJBjj53xgO0UqaF54tcvmWw== X-Scanned-By: mailmunge 3.10 on 66.39.139.36 An optional pointer to immutable device options that may alter the default behavior of the QMI driver for the instantiated device. --- drivers/qmimodem/qmi.c | 3 ++- drivers/qmimodem/qmi.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/qmimodem/qmi.c b/drivers/qmimodem/qmi.c index 10dbdaac8bf6..bbe6440abe0f 100644 --- a/drivers/qmimodem/qmi.c +++ b/drivers/qmimodem/qmi.c @@ -1567,7 +1567,8 @@ static const struct qmi_transport_ops qmux_ops = { .write = qmi_qmux_device_write, }; -struct qmi_qmux_device *qmi_qmux_device_new(const char *device) +struct qmi_qmux_device *qmi_qmux_device_new(const char *device, + const struct qmi_qmux_device_options *options) { struct qmi_qmux_device *qmux; int fd; diff --git a/drivers/qmimodem/qmi.h b/drivers/qmimodem/qmi.h index 4ba27847176f..09b551d74823 100644 --- a/drivers/qmimodem/qmi.h +++ b/drivers/qmimodem/qmi.h @@ -107,7 +107,8 @@ typedef void (*qmi_qrtr_node_lookup_done_func_t)(void *); typedef void (*qmi_service_result_func_t)(struct qmi_result *, void *); -struct qmi_qmux_device *qmi_qmux_device_new(const char *device); +struct qmi_qmux_device *qmi_qmux_device_new(const char *device, + const struct qmi_qmux_device_options *options); void qmi_qmux_device_free(struct qmi_qmux_device *qmux); void qmi_qmux_device_set_debug(struct qmi_qmux_device *qmux, qmi_debug_func_t func, void *user_data);