Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751704AbdCAI5Y (ORCPT ); Wed, 1 Mar 2017 03:57:24 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:40450 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750787AbdCAI5V (ORCPT ); Wed, 1 Mar 2017 03:57:21 -0500 X-AuditID: b6c32a38-f79f06d000001a72-3e-58b68cecedf6 Subject: Re: [PATCH] usb: gadget: add RNDIS configfs option for Windows rndiscmp.inf compatibility To: David Lechner , linux-usb@vger.kernel.org Cc: Felipe Balbi , Greg Kroah-Hartman , linux-kernel@vger.kernel.org From: Krzysztof Opasiak Message-id: Date: Wed, 01 Mar 2017 09:57:10 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-version: 1.0 In-reply-to: <1488319114-10932-1-git-send-email-david@lechnology.com> Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpileLIzCtJLcpLzFFi42LZdlhTX/dNz7YIg28nRS2OtT1ht1jUIGbR vHg9m8XlXXPYLBYta2V2YPXYtKqTzeNT/0lWj/1z17B7fN4kF8ASxWWTkpqTWZZapG+XwJWx 5sp5xoI3nBVLT31ib2D8wd7FyMEhIWAicWq3XRcjJ5ApJnHh3nq2LkYuDiGBHYwSF35+h3La mST23XnHDlFlIvFuSwsTRGIOo8TkSc2MEM59RolPvVPBqoQFUiT6931hA7FFBJwlDt26ABZn FiiRuH/uOSvIajYBfYl5u0RBwrwCdhK3f39gBLFZBFQlbq0+BlYiKhAh0X9GHaJEUOLH5Hss IDangKvE1+anbBATHSUeLNrJCmHLS2xe85YZ5BwJgW52icWXp7FAfCkrsekAM8T9LhKHZx1j hbCFJV4d3wL1l7TEqn+3mCB6mxklOvY8Y4FwJjBKbFt3CKrKWuLPqolQm/kk3n3tYYV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qgXE/9+u3 7GucpC2sdG8tZpvVv2vXti0tp794v5Ba+tTo5LaH9TsYvy/fY3s57pP/+Z4wZ6/25ODY9b6T DjyJ/7eHYcnKA49OmJRfO8u+ZJ+bzQW53OarVZdWv/m5feLc6vQ96+6f4lVaXvBtT+gpVtfl R/VZzC4vV/TYYborbmG+7t1vUVaZuxaLKLEUZyQaajEXFScCAPN21qm4AgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170301085715epcas1p3ca3da1cf15e9834a948d1140445b6764 X-Msg-Generator: CA X-Sender-IP: 203.254.230.26 X-Local-Sender: =?UTF-8?B?S3J6eXN6dG9mIE9wYXNpYWsbU1JQT0wtU3lzdGVtIChUUCkb?= =?UTF-8?B?7IK87ISx7KCE7J6QG1NvZnR3YXJlIEVuZ2luZWVy?= X-Global-Sender: =?UTF-8?B?S3J6eXN6dG9mIE9wYXNpYWsbU1JQT0wtU3lzdGVtIChUUCkb?= =?UTF-8?B?U2Ftc3VuZ8KgRWxlY3Ryb25pY3MbU29mdHdhcmUgRW5naW5lZXI=?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjczOTY=?= CMS-TYPE: 101P X-HopCount: 7 X-CMS-RootMailID: 20170228215938epcas3p1c53372135c28efea6d2fe6055c098280 X-RootMTR: 20170228215938epcas3p1c53372135c28efea6d2fe6055c098280 References: <1488319114-10932-1-git-send-email-david@lechnology.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1233 Lines: 31 On 02/28/2017 10:58 PM, David Lechner wrote: > This adds a new configfs attribute named `use_ms_rndiscmp`. It is a > boolean value that is used to select the class/subclass/protocol used > by the RNDIS function interface association descriptor. By default, > this is 0x02 (Comm), 0x06 (Ethernet), 0xff (None). When the > use_ms_rndiscmp attribute is set to true, the values 0xef (Misc), > 0x04 (RNDIS), 0x01 (Ethernet) will be used instead. This class/subclass/ > protocol combination is recognized by the rndiscmp.inf file in Windows > Vista and newer and will cause Windows to load the correct RNDIS driver > without the need for a custom (signed) .inf file. > To be honest, I'm not very happy with this patch because it makes our ConfigFS interface inflexible. Let's assume that any other combination of this attributes will be needed in a future and then what we are going to do with use_ms_rndiscmp attribute? So instead of having single attribute which sets the whole triple of values to some hardcoded ones I would prefer to have one attribute per each of this values and allow user to set them to his own values from userspace. Best regards, -- Krzysztof Opasiak Samsung R&D Institute Poland Samsung Electronics