Re: [PATCH 2/3] mci: mci-core: set the DEVFS_IS_MCI_DEV flag

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

 



On 06.05.21 15:07, Marco Felsch wrote:
> On 21-05-06 14:06, Ahmad Fatoum wrote:
>> Hello,
>>
>> On 06.05.21 13:22, Marco Felsch wrote:
>>> Set the new introduced flag to be able to check if the cdev is an
>>> mmc/mci device.
>>>
>>> Signed-off-by: Marco Felsch <m.felsch@xxxxxxxxxxxxxx>
>>> ---
>>>  drivers/mci/mci-core.c | 1 +
>>>  1 file changed, 1 insertion(+)
>>>
>>> diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c
>>> index 017f25d35f..c0fbcb385f 100644
>>> --- a/drivers/mci/mci-core.c
>>> +++ b/drivers/mci/mci-core.c
>>> @@ -420,6 +420,7 @@ static void mci_part_add(struct mci *mci, uint64_t size,
>>>  	part->size = size;
>>>  	part->blk.cdev.name = name;
>>>  	part->blk.cdev.partname = partname;
>>> +	part->blk.cdev.flags |= DEVFS_IS_MCI_DEV;
>>>  	part->blk.blockbits = SECTOR_SHIFT;
>>>  	part->blk.num_blocks = mci_calc_blk_cnt(size, part->blk.blockbits);
>>>  	part->area_type = area_type;
>>
>> This is called for hardware partitions, like boot and general
>> purpose partitions.
>>
>> For boot partitions, the later commit is wrong. I don't know what the default
>> file name for mmc GPP block partitions is, Jürgen?
> 
> Arg right, the boot partition name scheme differs. For GPP there should
> be seperated devices, don't know that directly.
> 
> Should we first add the support for MMC_BLK_DATA_AREA_MAIN only? This is
> the most tested path.

Ack.

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux