Received: by 10.223.185.116 with SMTP id b49csp9034256wrg; Fri, 2 Mar 2018 12:07:11 -0800 (PST) X-Google-Smtp-Source: AG47ELv7eacOWzAdiTkkDsj7ku/wzob9+1ENzfvVHENkjlbnBnOungCq6+rT7vh1Mt6CSVGFftag X-Received: by 2002:a17:902:6c06:: with SMTP id q6-v6mr6368548plk.142.1520021230934; Fri, 02 Mar 2018 12:07:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520021230; cv=none; d=google.com; s=arc-20160816; b=QBYHehwV3+yHUMg1KvtM+kPNkwUlPC31qwaQRKu+zVUfYJo7ZeHOMLLud/9N34U8rJ 74eLQhH7hXEctMd0bsyeZD/+qWWkAM1asfb5Zu4LvcuPmg+ObT4SaeYsgHPRcomf5/5O rdL4dh/2pWgVgJCiZmzC8jA0PblwOvsajfcOIShs+p2LLyFRYrdxu2y0jctd8jwfqy9U NFkfFRf4+iaOFJBrj03ZVGNjZ4JONR/ipBgSnJ4e17V9AxvlP/4Z48/wrmLTJ5NbB07B T+ly+BEE0Xkl5gRmDcjih1ks2zHjHcZ5EwTklfYKjrqztPokavNwqU+T/A/qw4+3mr/O qWgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=Boicry2xmJbk0oXpnbLlWRhoUhMBtXQF9UZBSUgFiHw=; b=Ta7Y1EWBtzoJRPKOLb3c7+CZKYBUenJ9CpRWVgzkf+fi56jmSGZYHkcFT2Y5tVro6x WQPuCRrUSOARfiCyEe10NszGUScfIjpUmoTp7GqkTe0mnnkt8ke9ziWD/XgwItXytJS9 7IMgm5FmJIKOy358Cb+asNdVfQ9sGz67wZnhRhSV+cXDM338GsBnNQ/snBo2Wf5FM07B uWLEttCPfuBkDFJOeOeGXzUZlz9Aa+3IxyPHjemITqGk4M7/YMynhybgPGnhuQdiLZP6 x2ErBtD+PbdV4StsVL8lJYETj5eSlNbQjoC8roVqmGsofpyZbSw0yR3fF9Q/69X/wukJ Bmmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JkMIvr44; 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 e1si4394300pgq.413.2018.03.02.12.06.52; Fri, 02 Mar 2018 12:07:10 -0800 (PST) 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=JkMIvr44; 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 S1425373AbeCBQyo (ORCPT + 99 others); Fri, 2 Mar 2018 11:54:44 -0500 Received: from mail-wr0-f193.google.com ([209.85.128.193]:45015 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423840AbeCBQym (ORCPT ); Fri, 2 Mar 2018 11:54:42 -0500 Received: by mail-wr0-f193.google.com with SMTP id v65so10751697wrc.11; Fri, 02 Mar 2018 08:54:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Boicry2xmJbk0oXpnbLlWRhoUhMBtXQF9UZBSUgFiHw=; b=JkMIvr44ZJj7Orl8PNgSZqvKQJS2XKaynLs8tDeh/QDZDYAN/iBIKnJ7A+zWBz8hDF FMiDgg1vaKtpJjfFXRcYMtXS+EVlkMMq+c6R8pvrzC9YN47VigB/KA4Y7zCQKTkl4SGy w4GLR7BW4sm9pJMphoVVZJ1ZgSJXacWcB5ICZM5i3pwl2le+mLfdp8eeWCXKAnSi+o+r XD0Rxr3EDZBM+WK+cSAvAOarxP9vPX2IIkjUfep4TjzDQwIPdY6o6VCTokHYJ9IACHmy uaHI7FJ12IOmFqiudVaEU6BM2cA+OkMVx/wzFQAMccWKLfh/gikdFLKaZnPlMnrjTC2M Uxxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Boicry2xmJbk0oXpnbLlWRhoUhMBtXQF9UZBSUgFiHw=; b=St0UobYZplttu0EDC6PX6CNto7B1pbG455v0Fd6y8G2Q3cTcx4IhutT8G6rkY3UnTN Gi+9e/V+8uWPDcONTkdVmoWU0Q+cVszQE7viq82ZVAwmr4JSZLCdOczcv2dMnC/cGUXY UBBweTyaAbN4fvpR04TgMHq0AUptLeCJ+EAcGJnYF8mRoi+m7hQFFivJr0NXkjA/1zSb u4jPimch/IqIlKNNsT4fg/4+WHsFLGpqTlDzPBQTzj19CUXr0fOJ4fITmYbaXyU+r+vy 5UwOehNaesS6ymbfZe44STDAk+Rl2Ynv2rsefqO55NYxOEAQP9fmwDuLVGwWnHGtFreP xojw== X-Gm-Message-State: APf1xPBorvGxRPNu2XdgoVCIiBS2QHjlDG+oozJo69X249hlkF8H0q2U EaBtBVwcvKwKsZ3G1K8Ck/k= X-Received: by 10.223.163.85 with SMTP id d21mr5546613wrb.105.1520009681149; Fri, 02 Mar 2018 08:54:41 -0800 (PST) Received: from pali ([2a02:2b88:2:1::5cc6:2f]) by smtp.gmail.com with ESMTPSA id d5sm1923535wma.18.2018.03.02.08.54.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 02 Mar 2018 08:54:40 -0800 (PST) Date: Fri, 2 Mar 2018 17:54:39 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Merlijn Wajer Cc: Bin Liu , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Ivaylo Dimitrov , linux-omap@vger.kernel.org Subject: Re: usb: musb: "(null)" in sysfs mode file after disabling a gadget (and at other times, system hangs) Message-ID: <20180302165439.62xw4slhhupy4vy5@pali> References: <20180302152712.GA22262@uda0271908> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="kbba6go523codbpi" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --kbba6go523codbpi Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Friday 02 March 2018 17:47:52 Merlijn Wajer wrote: > >> I would expect it to state "b_idle" instead of "(null)". > >=20 > > Actually, I'd like to see (null) whenever a gadget driver is not loaded, > > which indicates a gadget is not bound to the udc. >=20 > Hm... Sounds fine to me. I'm using this mode in combination with the usb > phy (vbus property) to detect if the phone is detect to a 'dumb' charger > of a PC, but I can just always have a gadget loaded -- same as before, > really. For detection if wallcharger or pc usb charger is connected, there is isp1704_charger driver. It uses some standard ULPI interface. It reports current_max and type (DCP - dedicated, CDP or just usb). --=20 Pali Roh=C3=A1r pali.rohar@gmail.com --kbba6go523codbpi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQS4VrIQdKium2krgIWL8Mk9A+RDUgUCWpmBzQAKCRCL8Mk9A+RD UkciAJ9Q8KL6azfkLa9MCs6XjsP48qPTFgCgqhEEsflewq3nkYVu/ILmxF2paLc= =qUKz -----END PGP SIGNATURE----- --kbba6go523codbpi--