Re: [PATCH] usb: usb3503: Convert to use GPIO descriptors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Linus,

On 06.12.2019 14:43, Linus Walleij wrote:
> On Fri, Dec 6, 2019 at 12:43 PM Marek Szyprowski
> <m.szyprowski@xxxxxxxxxxx> wrote:
>
>> arch/arm/boot/dts/qcom-mdm9615-wp8548-mangoh-green.dts: invert RESET
>> gpio polarity (to ACTIVE_LOW), not sure about INTN gpio
> AFAICT INTN should be set to ACTIVE_HIGH if it is working with the
> current code in the kernel.
>
> However it is pretty confusing with the "N" at the end of INTN,
> indicating negative polarity. Maybe it means something else,
> I haven't checked the datasheet. Maybe all boards have inverters
> on these lines so they come out active high.

Well, this line is indeed active low. The datasheet names it 'int_n'. 
However I think it makes sense to keep it as ACTIVE_HIGH, because the 
'n' is already in the gpio name (and dt binding). In contrary, the reset 
gpio pin/binding is named without the 'n', thus I want to clarify it as 
active low. The datasheet names it 'reset_n'.

If you are okay with this approach, I will send a patchset fixing 
polarity in DTS together with your patch converting the driver to gpio 
descriptors with the fixup for the reset gpio polarity.

Best regards
-- 
Marek Szyprowski, PhD
Samsung R&D Institute Poland




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux