Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1329552imm; Fri, 28 Sep 2018 16:33:08 -0700 (PDT) X-Google-Smtp-Source: ACcGV606Ap5UQziXEzSd/DgEfWhsFgkJdIRIYJ1Z9wUjWR3IJ1aPpzSVuUTf5/6vQEbE63YHevr+ X-Received: by 2002:a17:902:8f93:: with SMTP id z19-v6mr737775plo.263.1538177588583; Fri, 28 Sep 2018 16:33:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538177588; cv=none; d=google.com; s=arc-20160816; b=RTfyIbRHJ5m+v0qUxNSLd9GsTWf0w0iDYKZGAwM7CbwWQzAmrwqKGX/RoLyJg4QIaV CTmMBJ6xltQCx9+LLzLjfC9cH57sNN4yz8wINrOcvDCVsSKN/guUeoUcGf08B+kmfTUo bAcsJvoPY2v4kx3H09YVCPsVpJa77UThx2szqpz3dx5ZBTZHqSRn95dSX1dnvrd2EbYJ SkT3smfx4MTvr7SrZnuttgpaGsnuKuLx25Ucb6kvOogLyRV6WxYlPDG+zH2kWaRCWTqT ZpVF5BPtMMad+g1ErNKoVW9IqbM+qCdExdmORZrK6CkKTPhb9l4x4g9nwP0I4d2uDqMi pOsQ== 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=TG59PWsjc1/L1DPpI8msTki+CENLSaFu5iNEATjte3A=; b=HTpgehc6kca3UAgIIGtHjY3tCqHvSTof5ctE79pFK8j+OUnnAoALRSCTwcPak3R2TS Z+A3VwRcWYAC2rGbmFDkYNodDDZhBz6CfWWj2Vp7j7jcGZBihD4sA4c0EQoXDJWBL/we MBA2tovqlzY1xFLNkJCEn66om852G2udhe2C+pgqE583HgQuw8/hM907wwuVr5xxvV8q I65kgh7uNfjb5394930iEBk6WAxQi5+FeXLML2gqF+LMO3VITANs4Af6VElJ0NSogwbG R7miTwQOfwnUzuVbTBCRFmHPZZ6cIs5ho7H5kpJGAYYUFp2bzCjkIufNc12wLrzt77fu 7ixg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R2PRwxs0; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n1-v6si5980916pfe.66.2018.09.28.16.32.53; Fri, 28 Sep 2018 16:33:08 -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=@linaro.org header.s=google header.b=R2PRwxs0; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727388AbeI2F6v (ORCPT + 99 others); Sat, 29 Sep 2018 01:58:51 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:45888 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726762AbeI2F6u (ORCPT ); Sat, 29 Sep 2018 01:58:50 -0400 Received: by mail-wr1-f65.google.com with SMTP id q5-v6so1487964wrw.12 for ; Fri, 28 Sep 2018 16:32:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TG59PWsjc1/L1DPpI8msTki+CENLSaFu5iNEATjte3A=; b=R2PRwxs0uYO+FqVTzO2VujduMC0iSD2ol+9f3i/FBC1rULSC69KI60rzhCMkOXBszt uYN/zY0C1jZMPnhvQBvMaJR4+ZSxXaRXbFiW9OepGKsBYbSesf8D8zfBd8B+n7wPk9QB sTcGf7iwljimnHybCKsj4PWaoCYYgXSuisSjs= 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=TG59PWsjc1/L1DPpI8msTki+CENLSaFu5iNEATjte3A=; b=Ih512KjhYk9IDlF+W4HtlUh0dGWxpz63Q1o11LwFf1RlOW6QrK5//dqom7Chgqn3gz laOaVBn5jLYkkuhqO/k2iok0Er+XVBqe693bXShcBt3osAMS8vc3sTS1TrfBKn/PYTOM 4daE27aIeuSgFUwQdfAaqc8J85eo5foJAIiBxgXHwFvpBq6kdRPpyVomK9B5W7JE38q1 ITuF1KnvHndUmXn6caiABmAfJUbh8dycGpdG25LOsFWIrQ4gsuSuepq+6A6UxS5Cg+ND oh4NKH7G1PHS2SRYcpJbd7Hk4LTUQ0gaDgwvAx0pcZlj1TopZNmkERPddp5EClxu/wk/ h+nA== X-Gm-Message-State: ABuFfohLcOs8mu1UBbYJpsZu/DBtn8UBQznZVer5zqwAlXTy7DIC3HLV TPv5QTYNNAutMJidvOGqfPxp/lcefF1sTHtLHoQ= X-Received: by 2002:adf:f88d:: with SMTP id u13-v6mr439031wrp.311.1538177565883; Fri, 28 Sep 2018 16:32:45 -0700 (PDT) MIME-Version: 1.0 References: <20180906122436.25610-1-linus.walleij@linaro.org> In-Reply-To: <20180906122436.25610-1-linus.walleij@linaro.org> From: John Stultz Date: Fri, 28 Sep 2018 16:32:33 -0700 Message-ID: Subject: Re: [PATCH v7] regulator: fixed: Convert to use GPIO descriptor only To: linus.walleij@linaro.org, Anders Roxell Cc: lgirdwood@gmail.com, broonie@kernel.org, Linux Kernel Mailing List , jmkrzyszt@gmail.com, shc_work@mail.ru, haojian.zhuang@gmail.com, aaro.koskinen@iki.fi, rppt@linux.vnet.ibm.com, robert.jarzmik@free.fr, philipp.zabel@gmail.com, zonque@gmail.com, marc.zyngier@arm.com, jacopo@jmondi.org, geert+renesas@glider.be, rmk+kernel@armlinux.org.uk, Tom Gall 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 Thu, Sep 6, 2018 at 6:01 AM Linus Walleij wrote: > > As we augmented the regulator core to accept a GPIO descriptor instead > of a GPIO number, we can augment the fixed GPIO regulator to look up > and pass that descriptor directly from device tree or board GPIO > descriptor look up tables. > > Some boards just auto-enumerate their fixed regulator platform devices > and I have assumed they get names like "fixed-regulator.0" but it's > pretty hard to guess this. I need some testing from board maintainers to > be sure. Other boards are straight forward, using just plain > "fixed-regulator" (ID -1) or "fixed-regulator.1" hammering down the > device ID. Hey Linus, Anders recently noted a regression in -next when running HiKey, where USB fails to function. I took a look and could reproduce this as well, and after some unsuccessful muddling about in the usb changes, I bisected it down to your commit here (specifically efdfeb079cc3 in -next). I'm not sure exactly why this would cause trouble, but I suspect it has something to do w/ the cable-detect OTG to host-hub switch on the HiKey. Anyway, I just wanted to raise this with you so it can get sorted out before that patch hits mainline. thanks -john