This patch is just the inverse of the previous one - if more than one device is present, just select the first one seen.
I'm going to go with the other patch since it's closest to what we were doing before, however I don't have strong preferences here. The main reason we went with the last busid before was for the use case where there is an on-board video chip, and the user has stuck in a second card that they'd prefer to be used. However, I think in these cases there is always going to be a primary device, so I don't think it is a relevant consideration any more.
Anyway, I'm posting both patches here and soliciting feedback on which would cover more cases in practice.
This patch is just the inverse of the previous one - if more than one device is present, just select the first one seen.
I'm going to go with the other patch since it's closest to what we were doing before, however I don't have strong preferences here. The main reason we went with the last busid before was for the use case where there is an on-board video chip, and the user has stuck in a second card that they'd prefer to be used. However, I think in these cases there is always going to be a primary device, so I don't think it is a relevant consideration any more.
Anyway, I'm posting both patches here and soliciting feedback on which would cover more cases in practice.