From patchwork Tue May 11 14:42:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loic Poulain X-Patchwork-Id: 434218 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp3890635jao; Tue, 11 May 2021 07:33:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNjPjvq411AW1QeSz6kTQ6z9tXL3QhyuLjGTnu+gpd1MUByWHWXKsIgyqG2+9iDq+T1MZE X-Received: by 2002:a02:a388:: with SMTP id y8mr16726484jak.26.1620743609952; Tue, 11 May 2021 07:33:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620743609; cv=none; d=google.com; s=arc-20160816; b=mHhHbRyMRZL/yZOs9J5RH2xzi482BHogv1BmEtejlNxVK5kqS9co7hGBN6U2xqch2X +MFb2cHet37nctmcvfneyNDb4H49k9iUUCWuGU1OUqxhg0EzBgjkUWle4DBVKOUj+VPh GXJNq0/c7OIRQosEVVK5KQcBjrbDw5lHQt4GSljBJb97qsI/JtGxOiLiLSUCjHW4Rfne Ua4eMMQaeVQkmDnuns5s5S4VpoNBdfAQrLLv8YqlS3Q6rm9xtp2plrZ1+5eomXMrwCh+ 4qOD2gWq3L5kXZF2D8YheKjzJEHQ0Za2xzNqxf5bm8I0ApIiYQbRxioOstdcLXE/GF+x bSig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=/b8VYNRk0jePTJBarCozJxGSdSmdkQELnsloLn9GeSE=; b=BO7YbHppjutjBjx7p7apiW27XIwjTxMcwWIfdH1gVMTsP5rnzuYv7htOpVwSIhtcV4 vgJXEL6Dy6tY68MVlwXW4qkjBV+vpuVjx0kYHk9KaYYEDTGHl0+cawdsqzFZ1J7q8fQV uJuXW4uoSp22qsnOxIVv+JdPJe2AUbss+E0xaYxEIQItafl4Y+eMN9sBOCZFJKYHllx1 WWtVY6TiNiCWgMLwkMxmhIM1awqEVBwuz2x2mIEz2JYFAxPIA3bBFkVPTp/kHIZHQvSu r9/bMr3aDS6wU971IVl6gFRZrY3tFnX33Xi8JJGWeEeBJy4O4Nxl5QMIGvWNZKDMXKHQ TatA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=psfP3Hwf; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y20si12405263ioj.68.2021.05.11.07.33.29; Tue, 11 May 2021 07:33:29 -0700 (PDT) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=psfP3Hwf; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231797AbhEKOea (ORCPT + 8 others); Tue, 11 May 2021 10:34:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231590AbhEKOe2 (ORCPT ); Tue, 11 May 2021 10:34:28 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2B21C061574 for ; Tue, 11 May 2021 07:33:21 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id v12so20359899wrq.6 for ; Tue, 11 May 2021 07:33:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=/b8VYNRk0jePTJBarCozJxGSdSmdkQELnsloLn9GeSE=; b=psfP3HwftSOIBsYQ46vIPksoAAbK9Myk0jsTygUyGMPodYSEEWoRkMcc5G+KaB+1Dy XXEwDWeTkP91szTYmbS7n0wUywAPcQb45Y/8MbqeULzT+roFM+aR2r/YKqb5f5YjBaUP WnqgTLa22cSIpRG6loC8DSKfCif8xBz2JpHuuTtqIroEOONX0LbG+ewFOjoG1W+Z9cy+ xJFCY5jUuuvjgbBqUEUxHjhOxKaLz977mElFxJ+QREzda8G8wYHFXZ1IHwbjqJ/cIuZm zpeOLs869SEaNoStI4+DMzZ97jZW8WsRW+XJA+ViyUgmfv0OfwR8svjX3NhzXApYts7i c0tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=/b8VYNRk0jePTJBarCozJxGSdSmdkQELnsloLn9GeSE=; b=I9QS8uAkQkMfQGdGaSefNufWR9nWnDhc1yNt0M50HMfJAAO4WXXKAAFd2d3eH1xITJ GHQz/CHa5gI/D1ZseeIKqKpLOUfRxGlC5XX5cHxoL9OVxUmnd+xKjdmVnp3M65VbBvYo ySreqXbFZmaOS23jN0fZhgGiNCctjrJqUMhdbZoVoBaQcUttrYJy4Uf9MGd56mYS8/W7 W39OOVWaSiXMS3ZEEesKwiAA7zUXfKWyjJdp4c7LUUX9iWqdDd7UzoXikT+g81kMw/CB pdxXprtL9DTOI6FFJUE5+GFtYgoUlFOOuN5Wgp5Wwb3pc8E7vNzVZVYwvcBXbllGJq+W V/Fg== X-Gm-Message-State: AOAM530gZptwNBHKA79Ktf5pHtOYq6qgVn0S241HjJL8cRTn5EO3NA8r byN0YnkjdoJuGj6BUZJsrB+XxA== X-Received: by 2002:adf:ef92:: with SMTP id d18mr39377147wro.413.1620743600319; Tue, 11 May 2021 07:33:20 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:82c:5f0:ddef:1d66:be88:86cc]) by smtp.gmail.com with ESMTPSA id j13sm27773018wrw.93.2021.05.11.07.33.19 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 May 2021 07:33:19 -0700 (PDT) From: Loic Poulain To: oliver@neukum.org Cc: kuba@kernel.org, davem@davemloft.net, bjorn@mork.no, netdev@vger.kernel.org, aleksander@aleksander.es, Loic Poulain Subject: [PATCH net-next v2 1/2] net: wwan: Add unknown port type Date: Tue, 11 May 2021 16:42:22 +0200 Message-Id: <1620744143-26075-1-git-send-email-loic.poulain@linaro.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Some devices may have ports with unknown type/protocol which need to be tagged (though not supported by WWAN core). This will be the case for cdc-wdm based drivers. Signed-off-by: Loic Poulain --- v2: Replace CDC specific port types change with that change include/linux/wwan.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/include/linux/wwan.h b/include/linux/wwan.h index aa05a25..7216c11 100644 --- a/include/linux/wwan.h +++ b/include/linux/wwan.h @@ -15,6 +15,7 @@ * @WWAN_PORT_QMI: Qcom modem/MSM interface for modem control * @WWAN_PORT_QCDM: Qcom Modem diagnostic interface * @WWAN_PORT_FIREHOSE: XML based command protocol + * @WWAN_PORT_UNKNOWN: Unknown port type * @WWAN_PORT_MAX: Number of supported port types */ enum wwan_port_type { @@ -23,7 +24,8 @@ enum wwan_port_type { WWAN_PORT_QMI, WWAN_PORT_QCDM, WWAN_PORT_FIREHOSE, - WWAN_PORT_MAX, + WWAN_PORT_UNKNOWN, + WWAN_PORT_MAX = WWAN_PORT_UNKNOWN, }; struct wwan_port;