diff options
| author | Mark Brown <broonie@kernel.org> | 2024-10-22 23:18:45 +0100 | 
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2024-10-22 23:18:45 +0100 | 
| commit | 5ddc236d094d496bcd1e78aaa88bdde530073b6f (patch) | |
| tree | 2435f76086b7bbf9739c05411baa2f1520cd9618 /drivers/mmc/core/queue.c | |
| parent | 0d214f27c0e3d9694284c95bac1502c2d247355b (diff) | |
| parent | 602ff58ae4fe4289b0ca71cba9fb82f7de92cd64 (diff) | |
regulator: init_data handling update
Merge series from Jerome Brunet <jbrunet@baylibre.com>:
This patchset groups the regulator patches around the init_data topic
discussed on pmbus write protect patchset [1]
[1]: https://lore.kernel.org/r/20240920-pmbus-wp-v1-0-d679ef31c483@baylibre.com
Diffstat (limited to 'drivers/mmc/core/queue.c')
| -rw-r--r-- | drivers/mmc/core/queue.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/core/queue.c b/drivers/mmc/core/queue.c index d0b3ca8a11f0..4d6844261912 100644 --- a/drivers/mmc/core/queue.c +++ b/drivers/mmc/core/queue.c @@ -388,7 +388,8 @@ static struct gendisk *mmc_alloc_disk(struct mmc_queue *mq,  	blk_queue_rq_timeout(mq->queue, 60 * HZ); -	dma_set_max_seg_size(mmc_dev(host), queue_max_segment_size(mq->queue)); +	if (mmc_dev(host)->dma_parms) +		dma_set_max_seg_size(mmc_dev(host), queue_max_segment_size(mq->queue));  	INIT_WORK(&mq->recovery_work, mmc_mq_recovery_handler);  	INIT_WORK(&mq->complete_work, mmc_blk_mq_complete_work);  | 
