Re: [PATCH v3] iommu/arm-smmu-qcom: Rework the logic finding the bypass quirk
From: Johan Hovold
Date: Wed Mar 15 2023 - 10:11:27 EST
On Wed, Mar 15, 2023 at 07:07:30PM +0530, Manivannan Sadhasivam wrote:
> On Wed, Mar 15, 2023 at 09:38:42AM +0100, Johan Hovold wrote:
> > On Wed, Mar 15, 2023 at 01:29:58PM +0530, Manivannan Sadhasivam wrote:
> > > On Wed, Mar 15, 2023 at 08:37:32AM +0100, Johan Hovold wrote:
> >
> > > > > +static int qcom_smmu_cfg_probe(struct arm_smmu_device *smmu)
> > > > > +{
> > > > > + u32 smr;
> > > > > + int i;
> > > > > +
> > > > > + /*
> > > > > + * Limit the number of stream matching groups to 128 as the ARM SMMU architecture
> > > > > + * specification defines NUMSMRG (Number of Stream Mapping Register Groups) in the
> > > > > + * range of 0-127, but some Qcom platforms emulate more stream mapping groups. And
> > > > > + * those groups don't exhibit the same behavior as the architecture supported ones.
> > > > > + */
> > > >
> > > > Please fix your editor so that it wraps lines at 80 columns, which is
> > > > still the preferred (soft) limit.
> > > >
> > >
> > > If exceeding 80 columns end up making the comment more readable (fewer lines),
> > > then why should we limit ourselves?
> >
> > Exceeding 80 column for comments does generally not improve readability.
> >
>
> It all depends on the perspective/preference... But I can limit to 80 columns
> here.
No, this is not about preference. The soft limit is 80 columns and a
valid reason for breaking that for comments would be, for example, if
you have a long URL or something which does not fit within that width
(and not just personal preference).
Johan