mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Javier Martinez Canillas <javierm@redhat.com>
To: Amit Barzilai <amit.barzilai22@gmail.com>
Cc: airlied@gmail.com, andriy.shevchenko@intel.com,
	conor+dt@kernel.org, devicetree@vger.kernel.org,
	dri-devel@lists.freedesktop.org, krzk+dt@kernel.org,
	linux-kernel@vger.kernel.org, maarten.lankhorst@linux.intel.com,
	mripard@kernel.org, robh@kernel.org, simona@ffwll.ch,
	tzimmermann@suse.de
Subject: Re: [PATCH v3 3/3] drm/ssd130x: Add SSD135X_FAMILY and SSD1351 support
Date: Tue, 11 Aug 2026 16:18:52 +0200	[thread overview]
Message-ID: <875x1gpwoj.fsf@ocarina.mail-host-address-is-not-set> (raw)
In-Reply-To: <20260811122603.30773-1-amit.barzilai22@gmail.com>

Amit Barzilai <amit.barzilai22@gmail.com> writes:

Hello Amit,

> Hey Javier,

[...]

>
> So for v4 I propose:
>
> - Keep ssd130x_write_cmds() writing SSD13XX_COMMAND per byte as it does
>   today, so there is no change to I2C or SPI wire behaviour anywhere in
>   the series.
>
> - Still do the ssd130x_write_cmd()/ssd130x_write_cmds() unification as
>   its own prep patch, as you asked. It removes the duplicated variadic
>   loop and gives a single place for the check below.
>
> - Add a bool cmd_params_are_data to ssd130x_deviceinfo, checked after
>   the first byte is sent to decide how to send the parameters. If it is
>   set, the parameters go through ssd130x_write_data(); otherwise the
>   existing byte-by-byte loop is used.
>
> - Drop the separate SPI transport patch entirely.
>
> The comment in the core will be phrased in the core's own terms this
> time: parameters go on the data path rather than as further command
> bytes, without mentioning D/C or any other transport-specific
> information.
>

Thanks for the explanations. Since you have given a lot of thought of this
I trust your judgement and agree with your plan. Let's see how the patches
look once you post them.

> Apologies for going back on something I already agreed to. If you still
> prefer it in the SPI layer I will do it that way and fold in the 0x00
> control byte change, with the I2C framing change called out in the
> commit message, but I wanted to flag the breakage before building on it.
> I have already implemented the fixes for most of the other comments
> locally. Once we settle this, I will submit the finished v4.
>

No need to apologize, I appreciate the deep thought and willing to not
break the I2C devices already supported.

-- 
Best regards,

Javier Martinez Canillas
Core Platforms
Red Hat


  reply	other threads:[~2026-08-11 14:18 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-04  8:09 [PATCH v3 0/3] drm/ssd130x: Add support for the Solomon SSD1351 OLED controller Amit Barzilai
2026-07-04  8:09 ` [PATCH v3 1/3] dt-bindings: display: Add " Amit Barzilai
2026-07-04  8:09 ` [PATCH v3 2/3] drm/ssd130x: Change SSD133X color format to RGB565 from RGB332 Amit Barzilai
2026-07-16  8:36   ` Javier Martinez Canillas
2026-07-22  3:47     ` Amit Barzilai
2026-07-04  8:09 ` [PATCH v3 3/3] drm/ssd130x: Add SSD135X_FAMILY and SSD1351 support Amit Barzilai
2026-07-16  9:35   ` Andy Shevchenko
2026-07-22  3:57     ` Amit Barzilai
2026-07-16 10:23   ` Javier Martinez Canillas
2026-07-22  7:19     ` Amit Barzilai
2026-07-22  7:52       ` Javier Martinez Canillas
2026-08-11 12:26         ` Amit Barzilai
2026-08-11 14:18           ` Javier Martinez Canillas [this message]
2026-07-06 10:46 ` [PATCH v3 0/3] drm/ssd130x: Add support for the Solomon SSD1351 OLED controller Javier Martinez Canillas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875x1gpwoj.fsf@ocarina.mail-host-address-is-not-set \
    --to=javierm@redhat.com \
    --cc=airlied@gmail.com \
    --cc=amit.barzilai22@gmail.com \
    --cc=andriy.shevchenko@intel.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=robh@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=tzimmermann@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®