diff mbox

[resubmit,2/2] spi: fsl-espi: make use of max_msg_size in spi_master to handle HW restrictions

Message ID 565CB0C0.9060104@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Heiner Kallweit Nov. 30, 2015, 8:25 p.m. UTC
Propagate the 64K message size limitation allowing client drivers
to deal properly with this limitation.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
 drivers/spi/spi-fsl-espi.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Mark Brown Dec. 1, 2015, 2:19 p.m. UTC | #1
On Mon, Nov 30, 2015 at 09:25:36PM +0100, Heiner Kallweit wrote:
> Propagate the 64K message size limitation allowing client drivers
> to deal properly with this limitation.

Please don't submit patches into the middle of existing threads, it
makes it very confusing trying to work out what the currently proposed
patches are:

   8592 N T 11/22 Heiner Kallweit (2.1K) ?                   ? ??>[PATCH 2/3] mt
   8593 N C 11/22 Michal Suchanek (0.5K) ?                   ? ? ??>
-> 8594 N T 11/22 Heiner Kallweit (0.9K) ?                   ? ??>[PATCH 3/3] sp
   8595 N T 11/30 Heiner Kallweit (1.7K) ?                   ? ??>[PATCH v2 1/2]
   8596 N T 11/30 Heiner Kallweit (0.9K) ?                   ? ??>[PATCH resubmi
   8597 NsF 11/22 To Heiner Kallw (1.4K) ?                   ??>Re: RfC: Handle

I *think* the two messages from yesterday are supposed to be a single
patch series but they're buried in the middle of a huge thread at the
same level as some older patches and for soem reason have different tags
(one of which is "resubmit" which is really just adding noise).
Heiner Kallweit Dec. 1, 2015, 6:53 p.m. UTC | #2
Am 01.12.2015 um 15:19 schrieb Mark Brown:
> On Mon, Nov 30, 2015 at 09:25:36PM +0100, Heiner Kallweit wrote:
>> Propagate the 64K message size limitation allowing client drivers
>> to deal properly with this limitation.
> 
> Please don't submit patches into the middle of existing threads, it
> makes it very confusing trying to work out what the currently proposed
> patches are:
> 
>    8592 N T 11/22 Heiner Kallweit (2.1K) ?                   ? ??>[PATCH 2/3] mt
>    8593 N C 11/22 Michal Suchanek (0.5K) ?                   ? ? ??>
> -> 8594 N T 11/22 Heiner Kallweit (0.9K) ?                   ? ??>[PATCH 3/3] sp
>    8595 N T 11/30 Heiner Kallweit (1.7K) ?                   ? ??>[PATCH v2 1/2]
>    8596 N T 11/30 Heiner Kallweit (0.9K) ?                   ? ??>[PATCH resubmi
>    8597 NsF 11/22 To Heiner Kallw (1.4K) ?                   ??>Re: RfC: Handle
> 
> I *think* the two messages from yesterday are supposed to be a single
> patch series but they're buried in the middle of a huge thread at the
> same level as some older patches and for soem reason have different tags
> (one of which is "resubmit" which is really just adding noise).
> 
Sorry, my mail template referred to the discussion thread.
I'll resubmit.



--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/spi/spi-fsl-espi.c b/drivers/spi/spi-fsl-espi.c
index c27124a..773bbab 100644
--- a/drivers/spi/spi-fsl-espi.c
+++ b/drivers/spi/spi-fsl-espi.c
@@ -670,6 +670,7 @@  static struct spi_master * fsl_espi_probe(struct device *dev,
 	master->cleanup = fsl_espi_cleanup;
 	master->transfer_one_message = fsl_espi_do_one_msg;
 	master->auto_runtime_pm = true;
+	master->max_msg_size = SPCOM_TRANLEN_MAX;
 
 	mpc8xxx_spi = spi_master_get_devdata(master);