Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp544750ybb; Thu, 28 Mar 2019 07:32:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqxDY39z6GKrY/IfWTCN7eiIQYoEfBHcPpZr7TlDmRWbWmjvZ6UHfbNmXzK7ub+g82TYCrI1 X-Received: by 2002:aa7:820c:: with SMTP id k12mr17503214pfi.177.1553783539476; Thu, 28 Mar 2019 07:32:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553783539; cv=none; d=google.com; s=arc-20160816; b=gciISWEi6/beAgJzcAKNHq10MbDyoqgij2HLYBTdxXKSlyq6DoQeRIHV8NvE6fp5ip yq6k4jEKSdLAIT8ysJpTWf4ykrSCltZqOqcePr6OMEkvI+8liGAma90ucbp9ElobP6tf kbv2i7+qUQrrUslZrDZnwomfpfeLbX6m3bV9Jn1G1FcCVqd7Jf+SVQ6VdsbpGoltTdKF O/1W5fwmsOkuOHdSRmqnOEZxg6qj1RtC8bfXdAuf4beFODxoPY2/p5Q21/EkGD6ExGbX IRcjozfKv3a+p8o18veplgnLQt/ngVjcBf6INiV9mRVa9nk+FwO4frgY9kaqHNGj4LeN rmqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=3S36uN06t6hu4ob7QvMwmkwpcM+ZIMDH9rbyzhpEx4w=; b=nBkB9TkWmfYOqr3cLsth6DPqt/FZjIu/89nF7vAdJ2GNwHPPrSsUGSElSz8shDcY8T TIomilOjWRQ6RPO6VCK84ozlli1sGq17SRYpeG64Zpw9e39BlqHVqTqTPfoDT0ZyIQQi GKTWiW13k6DpJ//BlgG91ewPhXwr/7Miz3QDgkaPzZTMFSvjctniJJkr7dac9CfKz6C7 WlvMlac3m3mykrp9hEsCdYY5XNOQ+30ap1BUL9Xm24sasuES8kPI6jddFBbmQVU46IrY xMcjkhORCeRMQRYcZHOch8Gn30nU6ECdk+31k/Fb5IGzuFdlWyBTG/e8MwAYaKL5WiGi yE1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=HkADOGq1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f22si21397146plr.57.2019.03.28.07.32.03; Thu, 28 Mar 2019 07:32:19 -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=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=HkADOGq1; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726414AbfC1O3y (ORCPT + 99 others); Thu, 28 Mar 2019 10:29:54 -0400 Received: from mail-it1-f196.google.com ([209.85.166.196]:32844 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725939AbfC1O3x (ORCPT ); Thu, 28 Mar 2019 10:29:53 -0400 Received: by mail-it1-f196.google.com with SMTP id v8so8506028itf.0 for ; Thu, 28 Mar 2019 07:29:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=3S36uN06t6hu4ob7QvMwmkwpcM+ZIMDH9rbyzhpEx4w=; b=HkADOGq1Ia+BRnLgB/khPXUqjMX+JUC/yKnFzJ3kztx45IwMNrRmtvV7G9NCOS1zHb SLMySb59DwH45WGbuUrhmEb06flZdz6HchUVBz5z7Bpk8CDxKR/zehOwOMi0y8Kci3n5 egPjkpIwV6VL0TAkwNKffi1zDNd+xYVaTvOOBxtgoXW/XMBqDQbuA44s4bDJkkEKEcK1 VeRyPlfiAUBJ2uetuGidgnMcD0lyzaT2WaqJnoQ2ZYhkB9YjH+cqBnuSYjJVCuwmBFgW x3dtDPKp4P0D1n5eCvkbGXk9dOv5pjLzodBzuauSiXdAB/zGnvshyLAsoZEzE9XaTpiq YnxA== 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:content-transfer-encoding; bh=3S36uN06t6hu4ob7QvMwmkwpcM+ZIMDH9rbyzhpEx4w=; b=lPqposouzj55gwULZnYOcT7dFU8N4wljhxiAOnXdToZqwyIELFBKlPMGNF7Wb+spMu bx040WozH5CK3PzgjVkQ9qMGKXPXtyt2U6n1ixpZZPMn/1C8T8PZIFnq9Pu8HIyM9ofq TTPQ2gB/qSlBmB3u8bfC0r5OueiXML0lDUydprQ/4pybUoinrHBgwgiMtt1H1j7OPA1V xcDg1cc89at5LdCRc8Mf7fgH3ywGOJXFzVzaRsm9ra6ZgOvlL5MPfjI1ypyJZlvSbKyS RwUAiNGKocUFZU6WupSDqram1A+BuAVVmD5orEZPecvJNhPUK3U1dBbPZ/JQSkMstd42 ZtoA== X-Gm-Message-State: APjAAAVbGikdLDVPxZPR71Sbmx90JeG63SLnq7ThtW++4xUPzZ5cFAFU FVFOcBX0DoBGgZeUpMoHMqyoE+1mBQVlLSObz6sjPA== X-Received: by 2002:a02:5341:: with SMTP id n62mr30460530jab.57.1553783393099; Thu, 28 Mar 2019 07:29:53 -0700 (PDT) MIME-Version: 1.0 References: <3d7f7814-6184-96c6-8087-6373a489ebc0@ti.com> In-Reply-To: From: Bartosz Golaszewski Date: Thu, 28 Mar 2019 15:29:42 +0100 Message-ID: Subject: Re: [PATCH 0/3] ARM: davinci: ohci-da8xx: model the vbus GPIO as a fixed regulator To: Alan Stern Cc: Sekhar Nori , Kevin Hilman , Greg Kroah-Hartman , Linux ARM , Linux Kernel Mailing List , linux-usb@vger.kernel.org, Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org czw., 28 mar 2019 o 15:11 Alan Stern napisa=C5= =82(a): > > On Thu, 28 Mar 2019, Sekhar Nori wrote: > > > >> Can you document why the current solution is not optimal? Is it to m= ake > > >> future device-tree conversion for these boards easier? Or? > > >> > > > > > > It's sub-optimal from the HW modeling in SW PoV - it is in fact a > > > regulator enabled/disabled by a GPIO. Also: it's code duplication as > > > currently we check if the vbus GPIO exists and then use it or check i= f > > > the regulator exists and use this as the second choice. The third > > > patch actually shrinks the driver. > > > > I see now that the driver supports controlling the VBUS gpio as > > regulator already. Something I should have caught in review last time > > around. > > > > I agree this patch is an improvement. Lets see what Alan feels. > > I'm not an expert on this stuff, but the patch looks reasonable. > However, I do wish that in the devm_request_threaded_irq() call, the > indentation of the continuation lines was left unchanged. > I don't think it's possible - the function name is longer and the first line exceeds the 80 characters limit. I can put all the parameters below the function name if you prefer that? Bart > Alan Stern > > > Also, reg_enabled member of da8xx_ohci_hcd structure seems to be pretty > > useless considering regulator API already has use counting. Can you tak= e > > a look and remove that too as an added bonus. > > > > Thanks, > > Sekhar > >