From: Jani Nikula <jani.nikula@linux.intel.com>
To: Damien Lespiau <damien.lespiau@gmail.com>,
intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/4] drm/i915: Cleanup SHOTPLUG_CTL status bits definitions
Date: Thu, 13 Dec 2012 10:39:50 +0200 [thread overview]
Message-ID: <878v924a7d.fsf@intel.com> (raw)
In-Reply-To: <1355341841-4595-1-git-send-email-damien.lespiau@gmail.com>
On Wed, 12 Dec 2012, Damien Lespiau <damien.lespiau@gmail.com> wrote:
> From: Damien Lespiau <damien.lespiau@intel.com>
>
> Those status bits don't follow the usual pattern: _MASK (those bits are
> write 1 to clear, useful to select the value we want to read) and the
> values shifted by the same amount.
>
> Cleaned that that up when poking at the register for testing purposes,
> might as well upstream that cleanup.
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
>
> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
> ---
> drivers/gpu/drm/i915/i915_reg.h | 21 ++++++++++++---------
> 1 file changed, 12 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
> index f2a5ea6..f834804 100644
> --- a/drivers/gpu/drm/i915/i915_reg.h
> +++ b/drivers/gpu/drm/i915/i915_reg.h
> @@ -3558,27 +3558,30 @@
> #define PORTD_PULSE_DURATION_6ms (2 << 18)
> #define PORTD_PULSE_DURATION_100ms (3 << 18)
> #define PORTD_PULSE_DURATION_MASK (3 << 18)
> -#define PORTD_HOTPLUG_NO_DETECT (0)
> -#define PORTD_HOTPLUG_SHORT_DETECT (1 << 16)
> -#define PORTD_HOTPLUG_LONG_DETECT (1 << 17)
> +#define PORTD_HOTPLUG_STATUS_MASK (0x3 << 16)
> +#define PORTD_HOTPLUG_NO_DETECT (0 << 16)
> +#define PORTD_HOTPLUG_SHORT_DETECT (1 << 16)
> +#define PORTD_HOTPLUG_LONG_DETECT (2 << 16)
> #define PORTC_HOTPLUG_ENABLE (1 << 12)
> #define PORTC_PULSE_DURATION_2ms (0)
> #define PORTC_PULSE_DURATION_4_5ms (1 << 10)
> #define PORTC_PULSE_DURATION_6ms (2 << 10)
> #define PORTC_PULSE_DURATION_100ms (3 << 10)
> #define PORTC_PULSE_DURATION_MASK (3 << 10)
> -#define PORTC_HOTPLUG_NO_DETECT (0)
> -#define PORTC_HOTPLUG_SHORT_DETECT (1 << 8)
> -#define PORTC_HOTPLUG_LONG_DETECT (1 << 9)
> +#define PORTC_HOTPLUG_STATUS_MASK (0x3 << 8)
> +#define PORTC_HOTPLUG_NO_DETECT (0 << 8)
> +#define PORTC_HOTPLUG_SHORT_DETECT (1 << 8)
> +#define PORTC_HOTPLUG_LONG_DETECT (2 << 8)
> #define PORTB_HOTPLUG_ENABLE (1 << 4)
> #define PORTB_PULSE_DURATION_2ms (0)
> #define PORTB_PULSE_DURATION_4_5ms (1 << 2)
> #define PORTB_PULSE_DURATION_6ms (2 << 2)
> #define PORTB_PULSE_DURATION_100ms (3 << 2)
> #define PORTB_PULSE_DURATION_MASK (3 << 2)
> -#define PORTB_HOTPLUG_NO_DETECT (0)
> -#define PORTB_HOTPLUG_SHORT_DETECT (1 << 0)
> -#define PORTB_HOTPLUG_LONG_DETECT (1 << 1)
> +#define PORTB_HOTPLUG_STATUS_MASK (0x3 << 0)
> +#define PORTB_HOTPLUG_NO_DETECT (0 << 0)
> +#define PORTB_HOTPLUG_SHORT_DETECT (1 << 0)
> +#define PORTB_HOTPLUG_LONG_DETECT (2 << 0)
>
> #define PCH_GPIOA 0xc5010
> #define PCH_GPIOB 0xc5014
> --
> 1.7.11.7
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
prev parent reply other threads:[~2012-12-13 8:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-12 19:50 [PATCH 1/4] drm/i915: Cleanup SHOTPLUG_CTL status bits definitions Damien Lespiau
2012-12-12 19:50 ` [PATCH 2/4] drm/i915/hdmi: Read the HPD status before trying to read the EDID Damien Lespiau
2012-12-13 8:40 ` Chris Wilson
2012-12-13 11:11 ` Jani Nikula
2012-12-12 19:50 ` [PATCH 3/4] drm/i915/dp: Read the HPD status before trying to read the DPCD Damien Lespiau
2012-12-13 11:16 ` Jani Nikula
2012-12-12 19:50 ` [PATCH 4/4] drm/i915/dp: Don't log the DPCD if we are disconnected Damien Lespiau
2012-12-13 8:33 ` Jani Nikula
2012-12-13 8:39 ` Jani Nikula [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878v924a7d.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=damien.lespiau@gmail.com \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.