Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5713615imm; Wed, 12 Sep 2018 09:58:45 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ3KPXq0kgu47uI7t1jDy4P8QgozyB6tvm2mVLlxtaIBt07w/hdK54shPO0i4D/FI51qA5z X-Received: by 2002:a62:4b14:: with SMTP id y20-v6mr3382071pfa.93.1536771525522; Wed, 12 Sep 2018 09:58:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536771525; cv=none; d=google.com; s=arc-20160816; b=s8ACNeL0gqAsB3oed+qhVf9xYxzbyBagnE9ZbsFnbIkkX3Onfjb6Ketomt0NpP+aQy ZSVzvzb7Cc2z2odXuTaTwJsq9Zm1et8i9L5XfGZTsSi1s0Txj0y5a3YBZqjNaaWiV4qT zH7quUUHQApX9hMOuDF/vXBCDbmxPPIbxa+NW7yg8n9jsqYNTgTsWINcYWAIAf8lGuKs jalPPLZVHeGwXvSUB2bXxPZGWeNKtR+8DLnwhXqbTeyY3xNoGk12QPtqIrbsBQo/9ZE2 S6PBXuaI7f/99dMIqgIlPQkuuPqEHMo0iqdfMCOThtQ33tINVSupMi15kP+nJ5xzScSJ 69gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=IG+NtV/LgmYSnkq9OSgaWHrWU8Qd0OfJskXm/4fZJQo=; b=bhaMh6jghy8Ye4K5HhFgyBUXIPScBI5Ai9P1vkdy76SToZmWEXe/zFqOxM4pgiqijs Fl8dgXPH4Lh+56UP3uXiLxNd0rEQyyVMzZqx7GZuJMaQnKCEbsdzoA7QUkElI7kH+7Kv hB5y4FTo2rh3e5pPSTg9gpT3Yvttkp63vOIFvZQROLKa7ljy9PcXlhshzbx+Y5sRNdDd SC6Y1arExS9blpXhkb5M8iZ+IpTtuw0X2aTzyyuiapqybYhzrpdgqwiCVU0nxqBqG6Cg lzOTSKxrIYTEnlEyvpBAcyvIFO68O0aVtyZKIsnIcuHBoHULSMy7dSoUAYufpATOFEks Wkvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Z9Wlg/gx"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a2-v6si1430780plp.199.2018.09.12.09.58.30; Wed, 12 Sep 2018 09:58:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Z9Wlg/gx"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728138AbeILWDe (ORCPT + 99 others); Wed, 12 Sep 2018 18:03:34 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:44756 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726521AbeILWDe (ORCPT ); Wed, 12 Sep 2018 18:03:34 -0400 Received: by mail-io1-f65.google.com with SMTP id 75-v6so748221iou.11; Wed, 12 Sep 2018 09:58:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IG+NtV/LgmYSnkq9OSgaWHrWU8Qd0OfJskXm/4fZJQo=; b=Z9Wlg/gxbn5ZZPnk73EEdKWOo1+XMFiajmhkiPB6rG8zyWskPhrhgbh8jfjHyu6lMM aTygphrtJiuS2t+IkZvHfDtMozUIJdrW4xwrb3Trs9pbPR0vbPeo9fWpJxS7fzWM0R4E sMrlU/8QT3z+dyl8FHRjr76DrbcV9hmJj0B7O/g8PT4nEgIHNaUYnaBi7IXEim4TPKnu tl933mUASfGE93FPuQcop7KFIwYg7vzeGLH2RPi7Y1uK2hFTBgDs4UXAoFZyx0/1y0Pp v1pKa2I7xA7xsTNtjB/8n2s6hc9kfOiDHWNMluE/Q1BFoh+aeJCwjZjHwvhXBHTcc7Zi YPWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IG+NtV/LgmYSnkq9OSgaWHrWU8Qd0OfJskXm/4fZJQo=; b=gt/Yf8PnCWVdZ5glNDg5SZQdBC7WxPkiZ6iJ7H9117ozwuubugVHzJhPyaFVKi7HYI UaBmW8rnoWLiPCEK3o95jf6kCS5CrY8NRyfJSzFUJ4Ae9ZOALMuc4ROLiWYs7HTM4jls QEgY3Gtb7FEY8CwoUMJFZKZw30/nBy5mQL3ox2ie+dNHmZN33hHgkjDAAhtj4eWQr46k r2F0bBYQYV71dYW8cSd1c6Og956wbeDVlID1QN9nsIA5AAPD8EzXDDgiXztpI4NeZwhb YvviTqvAJkA03TIH8LrPMoGiBT/itfwJDN+zn3RftHI9edlwEtQLRKOjDgUnhnUv7sF/ JqVw== X-Gm-Message-State: APzg51Az9t003GBxjr/qoKzjt8S4gioSbqCyqBgkWwc92bdf+YSAdwmJ HUMMlS4t8lhbmzDE+b/bj5R97zTGUsXx4BBK9BE= X-Received: by 2002:a6b:f201:: with SMTP id q1-v6mr2493724ioh.180.1536771489212; Wed, 12 Sep 2018 09:58:09 -0700 (PDT) MIME-Version: 1.0 References: <20180908125754.1947-1-kristian.evensen@gmail.com> <20180910103022.GR1089@localhost> <8ce10eef-f332-a1c0-e16e-fb1c2055131a@gmail.com> In-Reply-To: From: Kristian Evensen Date: Wed, 12 Sep 2018 18:57:57 +0200 Message-ID: Subject: Re: [PATCH] option: Improve Quectel EP06 detection To: Lars Melin Cc: Johan Hovold , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 12, 2018 at 6:32 PM Lars Melin wrote: > You have chosen a platform which has limited usb resources and want to > solve that problem by adjusting the device driver? No, you asked for a good reason for why disabling and not just ignoring an interface makes sense, and I think that supporting multiple EP06 on platforms with limited endpoints qualifies as a reason. My motivation behind this patch and modifying the driver, is to make the driver work with the different options/combinations supported by the modem. The platforms I am working on merely triggered the error and inspired the change. > Why don't you just unbind those interfaces which you are not using and > which are eating up your usb resources? As far as I know, unbinding interfaces from the driver does not free up the memory allocated to the interface by/on the USB controller. I also tried, just in case, and the output from lsusb is the same regardless of bind/unbind. Btw, the patch for the QMI driver has been accepted, since you mentioned that driver earlier. So the assumption about interface four is removed from there. BR, Kristian