lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAF4BF-T3do2jFYu_n_JXSOn8P8mk=_Z4XzKo_VfTK=-dskX4WA@mail.gmail.com>
Date:   Fri, 24 Jul 2020 16:02:23 -0400
From:   Christopher Friedt <chrisfriedt@...il.com>
To:     Vaishnav M A <vaishnav@...gleboard.org>
Cc:     greybus-dev@...ts.linaro.org, linux-kernel@...r.kernel.org,
        Greg KH <gregkh@...uxfoundation.org>, arnd@...db.de,
        johan@...nel.org, elder@...nel.org, robh@...nel.org,
        mchehab+huawei@...nel.org, davem@...emloft.net,
        Jason Kridner <jkridner@...gleboard.org>,
        Drew Fustini <drew@...gleboard.org>,
        robertcnelson@...gleboard.org, rajkovic@...roe.com,
        zoran.stojsavljevic@...il.com
Subject: Re: [PATCH] RFC : mikroBUS driver for add-on boards

Hi Vaishnav!

On Fri, Jul 24, 2020 at 8:06 AM Vaishnav M A <vaishnav@...gleboard.org> wrote:
> +enum mikrobus_protocol {
> +       MIKROBUS_PROTOCOL_SPI = 0x01,
> +       MIKROBUS_PROTOCOL_I2C = 0x02,
> +       MIKROBUS_PROTOCOL_UART = 0x03,
> +       MIKROBUS_PROTOCOL_SPI_GPIOCS = 0x04,
> +       MIKROBUS_PROTOCOL_I2C_MUX = 0x05
> +};

We've already chatted about this off-list, but I just wanted to post
here as well so other readers are aware.

Given that MikroBus will be layered on top of Greybus and will use
Greybus Manifests, and that there is a related change [1] for the
Greybus Manifest tool (manifesto), and given that other, non-mikroBUS,
form factors may want to re-use the "[device-descriptor N]" tag, I
think it would make sense to use

[device-descriptor];
protocol = [cport protocol]

instead of

[device-descriptor];
protocol = [mikrobus protocol].

As you mentioned, there is no specific mikrobus i2c protocol, and the
protocol field is really just an enumeration.

If there are no other technical issues aside from that, I think it
would make sense to use the Greybus CPort protocol enumerations
instead of introducing a new one that is less generic.

That's the only significant critique I have.

Otherwise, great work and thank you for your contribution!

[1] https://github.com/projectara/manifesto/pull/2

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ