Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp551520ybb; Thu, 28 Mar 2019 07:40:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqyxzuKwvbV6KbDluXZM5CtnzbD4cmdj+rgcSesZzLRTnfsE3/hJ91q45gHnnDWkrfU4sctL X-Received: by 2002:a65:64d5:: with SMTP id t21mr39503711pgv.266.1553784018960; Thu, 28 Mar 2019 07:40:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553784018; cv=none; d=google.com; s=arc-20160816; b=KsyI0bVkEIgPdc5jMwFuCbvz3iUGeOmUaVZc/ckltVYOOym3nlaYFPforY42e0ONA9 fg/DypFL9I5j8oMguiqer6JWjG3DBaPR8Kf15SWCXHINsHA/STVCXVEDaCwn/xJj+/1H SFEE1ANe9UByw+hTnQ+j367fgP67zUxz1JOcnKwuPaQhASovv8rzRz2UaoCfuh+T/5Sf uGXO9QT4ik7cPacR9QyWi6La0euU03i+ZhFDkYBWOGhlMyJpcx4HiN2oPYhePyCM2ETJ 6IWX29nDGqYLD+xx0wTfJmJgPzCwU+Fivr7wv7qKGoH4r9QIig/PZDyf9R1Xh5LftkjW 9hJA== 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:mime-version :message-id:in-reply-to:subject:cc:to:from:date; bh=ZA4OmQWNrtVDJMva9nNKaITKk/Pa2up7S7YnmWeXB6Y=; b=A43CeAybjrggWlTdSiv4VNuOkmslLeobKPQ7bnRRLsORK9Ua+qax/XQIs0vfJzKA+4 Ng85XKkpRAvCWl1atVtN1z04r75ppbJF4/ypCJ3bDURpRw69DAYXB69fwJ5gPRufdakI +MIToVEsP8ImwDGRKF1pNySOfacUarzD6kHVkyLLDOf1AhjQyYqylTpi34BDi1LXWpNW jg2+iTSTUvAlVJH9DDYNX9V4bm3cx/ie6gOF/EiexE9EW/gfr3B0KI1taL9eZyAY1vPP xVJLcpWQO4w7mDq07G7EamP9s6pc5nklepHj8VCQ7KsnmXBIdwpXhnQzlBQTkrS8GFW6 IOrQ== ARC-Authentication-Results: i=1; mx.google.com; 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 f3si22004322plf.300.2019.03.28.07.40.03; Thu, 28 Mar 2019 07:40:18 -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; 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 S1726488AbfC1OiE (ORCPT + 99 others); Thu, 28 Mar 2019 10:38:04 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:53422 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726243AbfC1OiD (ORCPT ); Thu, 28 Mar 2019 10:38:03 -0400 Received: (qmail 2706 invoked by uid 2102); 28 Mar 2019 10:38:02 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 28 Mar 2019 10:38:02 -0400 Date: Thu, 28 Mar 2019 10:38:02 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Bartosz Golaszewski cc: Sekhar Nori , Kevin Hilman , Greg Kroah-Hartman , Linux ARM , Linux Kernel Mailing List , , Bartosz Golaszewski Subject: Re: [PATCH 0/3] ARM: davinci: ohci-da8xx: model the vbus GPIO as a fixed regulator In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 28 Mar 2019, Bartosz Golaszewski wrote: > czw., 28 mar 2019 o 15:11 Alan Stern napisaƂ(a): > > > > On Thu, 28 Mar 2019, Sekhar Nori wrote: > > > > > >> Can you document why the current solution is not optimal? Is it to make > > > >> 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 if > > > > 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? Which line the arguments go on doesn't matter. But increasing the amount of indentation, like the patch did, makes the whole thing less readable, IMO. It makes everything end up crammed against the right margin. Alan Stern