Re: [PATCH v3 6/7] drm/bridge: tc358767: Add precious register SYSSTAT

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

 



On Tue, Dec 12, 2023 at 8:53 AM Alexander Stein
<alexander.stein@xxxxxxxxxxxxxxx> wrote:
>
> This is the single register which clears its value upon read operation.
>
> Signed-off-by: Alexander Stein <alexander.stein@xxxxxxxxxxxxxxx>
> ---
>  drivers/gpu/drm/bridge/tc358767.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
>
> diff --git a/drivers/gpu/drm/bridge/tc358767.c b/drivers/gpu/drm/bridge/tc358767.c
> index 152a6dc916079..93fa057eca8dc 100644
> --- a/drivers/gpu/drm/bridge/tc358767.c
> +++ b/drivers/gpu/drm/bridge/tc358767.c
> @@ -2070,6 +2070,15 @@ static const struct regmap_access_table tc_volatile_table = {
>         .n_yes_ranges = ARRAY_SIZE(tc_volatile_ranges),
>  };
>
> +static const struct regmap_range tc_precious_ranges[] = {
> +       regmap_reg_range(SYSSTAT, SYSSTAT),
> +};
> +
> +static const struct regmap_access_table tc_precious_table = {
> +       .yes_ranges = tc_precious_ranges,
> +       .n_yes_ranges = ARRAY_SIZE(tc_precious_ranges),
> +};
> +
>  static const struct regmap_range tc_non_writeable_ranges[] = {
>         regmap_reg_range(PPI_BUSYPPI, PPI_BUSYPPI),
>         regmap_reg_range(DSI_BUSYDSI, DSI_BUSYDSI),
> @@ -2093,6 +2102,7 @@ static const struct regmap_config tc_regmap_config = {
>         .cache_type = REGCACHE_MAPLE,
>         .readable_reg = tc_readable_reg,
>         .volatile_table = &tc_volatile_table,
> +       .precious_table = &tc_precious_table,
>         .wr_table = &tc_writeable_table,
>         .reg_format_endian = REGMAP_ENDIAN_BIG,
>         .val_format_endian = REGMAP_ENDIAN_LITTLE,
> --
> 2.34.1
>


Reviewed-by: Robert Foss <rfoss@xxxxxxxxxx>




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux